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-spillway

v0.1.26

Published

Scaffold a front end of your own on Spillway CMS: `npm create spillway@latest` writes a Next.js, Astro, Nuxt or SvelteKit starter with routing, SEO, menus, redirects, search, a language switcher, the brand, previews and webhook revalidation wired up.

Readme

create-spillway

A front end of your own on a Spillway CMS site, in one command. MIT licensed.

npm create spillway@latest my-site
# or
pnpm create spillway my-site

It asks for the framework, your Spillway site's address and, optionally, an API token for draft previews, then writes a starter that renders the site's published pages and keeps itself up to date:

  • Next.js (App Router): Spillway's block library; every published path prerendered and revalidated by tag when Spillway's webhook arrives, draft mode previews.
  • Astro (server output on the Node adapter): Spillway's block library; every page rendered on request, kept in an in-memory cache the webhook purges, cookie previews.
  • Nuxt (Nuxt 4): the block area as Spillway renders it in HTML, inside Vue pages; an in-memory cache the webhook purges, cookie previews.
  • SvelteKit (SvelteKit 3, Node adapter): the block area as Spillway renders it in HTML, inside Svelte pages; an in-memory cache the webhook purges, cookie previews.

Each has one catch-all route for every published path and a 404 for the rest, Spillway's redirects, the SEO data (title, description, canonical, hreflang alternates, Open Graph, JSON-LD), the main and footer menus, a search page with suggestions while visitors type, a language switcher on a site with several languages, the site's brand through @spillway-cms/brand, previews from release share links or drafts, a revalidation route that verifies the webhook signature, sitemap.xml and robots.txt. Each starter's README lists its files and the setup steps. Members (sign-in on the front end) come later, with Spillway as an OpenID Connect provider.

Options

npm create spillway@latest my-site -- --template astro --url https://cms.example.org --yes

| Option | What it does | | --- | --- | | [dir] | The folder to create; it must be new or empty (a .git folder is fine) | | -t, --template <next\|astro\|nuxt\|sveltekit> | The starter | | -u, --url <url> | The Spillway site's address | | --token <spw_...> | An API token with content.view_drafts, for draft previews | | --deploy-url <url> | The address the front end will have once deployed; with a token that has site.settings, the command adds the webhook rules pointing at <url>/api/revalidate | | --setup-token <spw_...> | A token with site.settings for those rules, used once and never written to disk (without it, --token is tried) | | --no-brand | Do not fetch the brand stylesheet | | -y, --yes | Do not ask; take the defaults (Next.js, my-spillway-site) for what the flags leave out |

Without a terminal (in CI) it never asks. The address, the token and two generated secrets (for the webhook rules and the preview route) go in the starter's env file (.env.local for Next.js, .env for the others), which its .gitignore keeps out of version control. With --url it fetches the brand stylesheet; when the site cannot be reached the starter keeps a placeholder and its first build fetches the brand. With --deploy-url and a token that has site.settings it adds the webhook rules. Nothing else touches the network.

After it runs

  1. cd my-site, install, and run the dev server.
  2. Unless the command added them, in Spillway, under Site settings → Notifications, add Webhook rules for published, unpublished, deleted, menu changed, redirects changed, site settings changed and brand published, pointing at <your front end>/api/revalidate with the SPILLWAY_WEBHOOK_SECRET from the env file.
  3. Deploy it with the same variables and SITE_URL set to its public address.

See the headless docs for the API, the adapters and how revalidation works.