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

create-writbee

v0.1.0

Published

Scaffold a blog powered by the Writbee content API.

Readme

create-writbee

Scaffolds a blog wired to your Writbee project — routes, metadata, a feed, a sitemap and your key already in place.

npm create writbee@latest my-blog

It asks where the blog should live, which framework to use, and for an API key, then writes the project, initialises a repository and installs the dependencies.

Templates

| --template | What you get | | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | next | Next.js App Router and Tailwind 4, reading through @writbee/next: cached server reads, a publish webhook that clears them, and a build that fails if the secret key is ever imported into a client component | | astro | A static Astro build on @writbee/core alone, no adapter package and no framework CSS — every read happens while the site is being generated |

Both come with an archive, a post page, rss.xml, sitemap.xml, robots.txt, a 404, canonical URLs and Open Graph tags, and dark mode that follows the reader's system setting.

Options

Everything can be answered up front, which is what makes this scriptable:

npx create-writbee my-blog --template next --key sk_live_... --no-install

| Option | | | ------------------------ | ------------------------------------------------------------------------------- | | -t, --template <name> | next or astro. Asked for when omitted | | --api-url <url> | The API, including its /api prefix. Defaults to https://api.writbee.com/api | | --key <sk_...> | Written into the project's env file, which is gitignored | | --package-manager <pm> | npm, pnpm, yarn or bun. Defaults to whichever one ran the command | | --no-install | Skip installing dependencies | | --no-git | Skip creating a repository | | -y, --yes | Take every default without asking |

With no terminal to ask in — a CI job, a pipe — every unanswered question falls back to its default, and the directory becomes required rather than prompted.

Note the -- in npm create writbee@latest my-blog -- --template astro: npm needs it before it passes flags through. npx create-writbee does not.

Pointing at a local API

npx create-writbee my-blog --api-url http://localhost:8000/api --key sk_test_...

The URL only ever lands in the project's env file, so changing your mind later is a one-line edit rather than a re-scaffold.

Working on it

npm install
npm run build -w create-writbee
node packages/create-writbee/dist/index.js /tmp/trial --template next

Templates are copied verbatim, so they stay runnable in place — the only things the CLI rewrites are the name in package.json and the env file it writes from your answers. Dotfiles ship with an underscore (_gitignore) because npm strips a real .gitignore out of a published package, and are renamed back on the way out.