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

blog-kit-local

v0.6.1

Published

Filesystem-backed local content adapter for `blog-kit`.

Downloads

575

Readme

blog-kit-local

Filesystem-backed local content adapter for blog-kit.

Use this package when you want editable MDX files without running a CMS or database. It is useful for starter apps, documentation sites, demos, and local editorial workflows.

It can also store uploaded editor media in a local directory and return public URLs for the host app to persist in MDX content.

Install

pnpm add blog-kit-local blog-kit-core

Content Conventions

  • Posts are stored as slug.mdx files in a content directory.
  • Post metadata is stored in frontmatter.
  • Categories are stored in _categories.json by default.
  • Draft state is represented through the isDraft frontmatter field.

Common frontmatter fields:

  • id
  • title
  • slug
  • excerpt
  • categoryIds
  • tags
  • coverImageUrl
  • isDraft
  • authorId
  • publishedAt
  • createdAt
  • updatedAt

Example

import { createLocalAdapter } from "blog-kit-local";

const adapter = createLocalAdapter({
  contentDirectory: "/absolute/path/to/content/blog",
  mediaDirectory: "/absolute/path/to/public/blog-media",
  mediaBasePath: "/blog-media"
});

const draft = await adapter.editorial.createPost({
  title: "Local draft",
  slug: "local-draft",
  excerpt: "Editing local MDX content.",
  content: "# Hello world",
  categoryIds: [],
  tags: ["local", "mdx"],
  isDraft: true
});

Media Uploads

const asset = await adapter.media.uploadMedia({
  fileName: "hero.png",
  contentType: "image/png",
  data: new Uint8Array(await file.arrayBuffer())
});

The returned asset.url can be inserted into MDX content or stored as a cover image URL.

When To Use It

Use blog-kit-local when you want the editor to write real files during local development. Use blog-kit-supabase when you need a shared remote backend, auth integration, and relational content storage.