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

@freewrite-cms/framework

v0.2.3

Published

Standalone Next.js + MDX framework for documentation, API reference (OpenAPI), blog, and changelog sites. The rendering engine behind the freewrite-cms docs themes — usable on its own.

Readme

@freewrite-cms/framework

The standalone Next.js + MDX rendering engine for documentation, API reference, blog, and changelog sites. It's the core that powers the freewrite-cms docs themes (Aurora, Fern, Cedar, Mono) and the freewrite-docs CLI — but it has no backend, no database, and no product lock-in. Point it at a folder of MDX files and a docs.json, and you have a docs site you can deploy anywhere Next.js runs (Vercel, AWS Amplify, a Node server, a container).

Most people don't install this directly — they run npx @freewrite-cms/cli init my-docs, pick a theme, and get a ready-to-deploy project. This package is for building your own theme or wiring the engine into an existing Next.js app.

What it gives you

  • MDX rendering with GFM, :::callout directives, and Shiki syntax highlighting (<Mdx>).
  • A docs.json content model — Mintlify-style tabs → groups → pages, with anchors, navbar links, nested pages, and versioning hints. Pure, no IO.
  • OpenAPI → API Reference — parse a JSON/YAML spec into a normalized model, derive navigation from tags, and render endpoint pages with a "Try it" playground, cURL samples, and response schemas (./openapi, ./api-reference).
  • A Mintlify-grade MDX component kitCallout/Note/Tip/Warning, Card/CardGroup, Tabs, Steps, Accordion, CodeGroup, ParamField, ResponseField, Frame, and more (./components).
  • A themeable layout shell<DocsShell>, <Sidebar>, <TocList>, <Pagination>, driven entirely by CSS variables so a theme is mostly tokens (./docs-shell).
  • Client-side search (Cmd-K, fuse.js) and a feature-flagged Ask-AI widget (./search-dialog, ./ask-ai).
  • Standalone CSS (./styles.css) — no Tailwind required in the host app.

Install

npm install @freewrite-cms/framework

The package ships TypeScript source, so let Next.js transpile it:

// next.config.ts
const nextConfig = { transpilePackages: ['@freewrite-cms/framework'] };
export default nextConfig;

Quick use

// app/docs/[[...slug]]/page.tsx
import { loadDocsConfig, loadDocPage } from '@freewrite-cms/framework/content';
import { findDocPage } from '@freewrite-cms/framework/nav';
import { Mdx } from '@freewrite-cms/framework/mdx';
import '@freewrite-cms/framework/styles.css';

export default async function Page({ params }: { params: Promise<{ slug?: string[] }> }) {
  const config = loadDocsConfig();
  const slug = (await params).slug?.join('/') ?? '';
  const meta = findDocPage(config!, slug || config!.navigation![0].pages[0].slug);
  const page = loadDocPage(meta!.file);
  return <Mdx source={page!.content} />;
}

Content lives under content/{docs,blog,changelog} (override the root with DOCS_CONTENT_ROOT). The docs config is content/docs/docs.json.

Subpath exports

| Export | What | | --- | --- | | . | nav model, search index builder, slug redirects, OpenAPI types/helpers, FRAMEWORK_VERSION | | ./content | filesystem loaders: loadDocsConfig, loadDocPage, loadBlogPosts, loadOpenApiSpec, extractHeadings | | ./nav | DocsConfig, docTabs, listDocPages, docNeighbours | | ./openapi | parseOpenApi, normalizeOperations, operationNavGroups, curlExample, sampleFromSchema | | ./mdx | <Mdx> | | ./components | the MDX component kit + mdxComponents() | | ./docs-shell | <DocsShell>, <Sidebar>, <TocList>, <Pagination>, <Breadcrumbs> | | ./api-reference | <ApiReferenceView>, <ApiPlayground> | | ./search · ./search-dialog | search index + Cmd-K dialog | | ./ask-ai | <AskAi> (feature-flagged AI assistant) | | ./theme-toggle | <ThemeToggle> | | ./styles.css | base structural CSS + design-token defaults | | ./subscribe-form · ./analytics-script · ./reactions · ./comments | optional, bring-your-own-backend widgets |

Compatibility

docs.json is the standard config filename; a freewrite.json of the same shape is also read for backward compatibility, as is the legacy FREEWRITE_CONTENT_ROOT env var.

License

MIT. See PUBLISHING.md for release + contribution notes.