npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@fayz-ai/plugin-blog

v0.12.10

Published

[experimental] Fayz SDK — blog / articles plugin (website surface)

Readme

@fayz-ai/plugin-blog

A headless blog surface — post list + article page — you drop into any Fayz website.

npm license

Status: beta — pre-1.0. Ships a public website surface (blog list + post detail) running on bundled mock/seed data, with a Supabase-backed provider seam included and evolving. No admin UI in M1 (the host owns website navigation). APIs may change before 1.0.

Marketing sites need a blog, and every one ends up rebuilt from scratch. plugin-blog is the reusable version: a headless, SEO-ready blog you compose into a Fayz website as a bundle of { manifest, Provider }. It ships the public read surface — a /blog list and a /blog/:slug article page — plus the data seam behind them, so the host site owns layout and navigation while the plugin owns posts.

It follows the "website plugin" (Model A) pattern: instead of a defineSaas plugin, createBlogPlugin returns a manifest (with public routes), an app-root Provider, and the resolved data provider. Drop the routes into your router, wrap your app in the Provider, and you have a blog.

What's inside

  • Public routesGET /blog (list) and /blog/:slug (detail), both guard: "public", mounted under a configurable basePath. Their components load lazily, so a host that never mounts them (a storefront on the SDK's router adapter, a TanStack Start host) never downloads them — or the react-router they are written against
  • ComponentsBlogList, PostDetail, PostCard, AuthorAvatar, on their own door: import { BlogList } from '@fayz-ai/plugin-blog/components' (they are bound to react-router-dom; the main entry is router-free)
  • HooksuseBlogPosts, usePost, and useBlogContext
  • Data seamcreateSafeDataProvider picks createSupabaseBlogProvider when configured, else createMockBlogProvider seeded from your seed posts
  • SEO — per-page useSeo with og:site_name, plus organization + breadcrumb JSON-LD
  • Byline + i18n defaults — configurable defaultAuthor, siteName, and pt-BR list/back labels

Install

npm install @fayz-ai/plugin-blog

Peer deps: react, react-dom, react-router-dom. Runtime dep: @fayz-ai/core.

Usage

import { createBlogPlugin } from '@fayz-ai/plugin-blog'

const blog = createBlogPlugin({
  basePath: '/blog',
  siteName: 'Acme',
  defaultAuthor: { name: 'Equipe Acme' },
  seed: { posts: [/* ... */] },
})

// blog.manifest.routes -> spread into your website router
// wrap your app tree in <blog.Provider> so the routes resolve their data

Part of the Fayz SDK

A website surface plugin. Pairs with @fayz-ai/plugin-sites and the storefront/website scaffolds; complements @fayz-ai/plugin-payments in composing bespoke marketing sites from curated plugins.