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

@zettelgeist/cli

v0.4.0

Published

Zettelgeist CLI: regen, validate, install-hook, serve, export-doc commands.

Readme

@zettelgeist/cli

The zettelgeist CLI for the Zettelgeist v0.1 format.

Install

npm i -g @zettelgeist/cli

Commands

zettelgeist regen [path]

Regenerate <specs_dir>/INDEX.md from the markdown spec files.

  • --check exits 1 if INDEX.md is stale or missing instead of writing.
  • --json machine-readable output.

Uses git's tree SHA of the specs directory as a content-addressed cache (gitignored at .zettelgeist/regen-cache.json) — skips the walk when nothing has changed since the last run.

zettelgeist validate [path]

Run all format validators and report errors with machine-readable codes (E_CYCLE, E_INVALID_FRONTMATTER, E_EMPTY_SPEC, etc.). Exits 0 if clean, 1 otherwise.

  • --json machine-readable output.

zettelgeist install-hook [--force]

Install a git pre-commit hook (at .git/hooks/pre-commit) that runs zettelgeist regen --check before allowing a commit. The hook is wrapped in clearly-marked begin/end markers so it merges cleanly with existing user hooks; running again is idempotent. With --force, an existing hook is backed up to pre-commit.backup before being overwritten.

zettelgeist serve [--port N] [--no-open]

Start a local HTTP server hosting the HTML viewer. Defaults to port 7681 on 127.0.0.1. Auto-opens the browser unless --no-open is passed. The viewer is mobile-responsive and supports light/dark themes.

zettelgeist export-doc <path> [--template <path>]

Render a single spec to HTML using a Mustache template. Default template renders requirements, tasks, handoff, and status. Use --template to point to a custom template file (also resolves under .zettelgeist/render-templates/export.html if present). Frontmatter fields are exposed as Mustache variables.

JSON envelope

Every command supports --json for machine-readable output. The envelope is a tagged union:

type Envelope<T> =
  | { ok: true; data: T }
  | { ok: false; error: { message: string; detail?: unknown } };

Example success:

{ "ok": true, "data": { "changed": false, "path": "specs/INDEX.md", "cacheHit": true } }

Example error:

{ "ok": false, "error": { "message": "specs/INDEX.md is stale" } }

License

Apache-2.0