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

v0.3.0

Published

Scaffold a SvelteKit book: cover, content pages, optional glossary/index/authors/topics, with timeline or spectrum continuum.

Readme

create-sveltekitbook

Scaffold a SvelteKit book in seconds.

npm create sveltekitbook@latest my-book

You'll be walked through a handful of choices, then a working SvelteKit project drops onto disk. npm run dev and the book is live.

See it

sveltekitbook-tour — a sample book that explains the format itself. Source: AndyGauge/sveltekitbook-tour.

By Degrees — U.S. policy mapped on a −5..+5 spectrum. The first book built on this format.

What you get

Always:

  • Cover page (/)
  • Content pages (/NN one per section)
  • View-transition-animated left/right navigation
  • Wheel + touch swipe + keyboard nav
  • The sveltekitbook runtime as a dependency

Structure — how sections are grouped:

  • flat (default) — one linear sequence of sections, page numbers run end-to-end
  • chaptered — sections grouped into chapters; reader gets a chapter rail, chapter intros, [/] keys to jump between chapters, and a chapter-grouped contents page. Page numbering stays linear across the whole book; chapters are derived from each section's chapterId. Mutually exclusive with timeline / spectrum continua.

Chaptered sections can also use a steps array — a strict prose / code / prose / code rhythm, one step at a time:

{
  title: 'Push',
  gesture: '...',
  steps: [
    { prose: 'First we mutate the list...', code: 'fn push(&mut self) { ... }', lang: 'rust' },
    { prose: 'Then we hand back the new head...', code: '...', lang: 'rust' }
  ]
}

If steps is present, the renderer pairs each prose chunk with its code block in order. Use it for tutorials and code-led explainers.

Continuum format — the axis every page lives on (flat structure only):

  • none — flat sequence, no viz
  • timeline — pages carry a year, rendered as dots on a decade axis
  • spectrum — pages carry a spectrum integer, rendered as colored dots across a −N..+N ramp with per-page palette shifts

Optional rooms (checkbox each):

  • Contents — grouped list of every section (recommended)
  • Glossary — define terms once; reference them from any body with [[term]] and they auto-link
  • Index — cross-reference page listing every occurrence of every indexed term
  • Authors / Sources — citation hub (matronae-style)
  • Topics — thematic grouping (déjà vu-style)
  • About / Colophon — front matter
  • Continuum page — standalone full-width timeline or spectrum viz

Editing the book

Content lives in src/lib/outline.js. Every section is a plain object — add fields, reorder, drop. Page numbers are assigned automatically by the sort order you define.

Routes live in src/routes/. They're yours — edit freely.

Sibling: create-sveltekitslides

create-sveltekitslides is the slide-deck counterpart. Same scroll model, same outline.js philosophy, different chrome — every slide is a long page where the projected slide sits above the fold and rehearsal notes scroll into view below it. Use this package for long-form reader-driven content; use slides for twenty- to forty-minute talks.