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

@intentsolutionsio/promptbook

v1.4.0

Published

Opt-in Claude Code analytics. After setup consent, Promptbook sends session metrics to promptbook.gg and publishes shareable build cards.

Readme

Promptbook — Claude Code Plugin

Build better. See your progress. Post the proof.

Promptbook is an opt-in analytics plugin for Claude Code. After setup consent, it tracks prompts, tokens, and build time, sends session metrics to promptbook.gg, and turns each session into shareable progress.

Install

/plugin marketplace add promptbookgg/claude-code-plugin
/plugin install promptbook

Then run /promptbook:setup to connect your account. Setup includes the data disclosure and records your consent in ~/.promptbook/config.json. Tracking starts on your next Claude Code session.

What it tracks

  • Prompt count
  • Token usage (input, output, cache)
  • Build time
  • Lines changed
  • Primary language
  • Tool usage counts
  • File extension counts

No source code or prompt content is ever sent. See the Privacy section below for exactly what is sent.

How it works

The plugin registers four Claude Code hooks:

| Event | What it does | |---|---| | SessionStart | Creates a session file, loads recent context | | UserPromptSubmit | Counts prompts | | PostToolUse | Counts lines changed, tracks file types | | SessionEnd | Finalizes stats, submits to promptbook.gg |

After each session, you'll see a link to your progress. A short background process may continue briefly after Claude exits so Promptbook can submit the build and generate the title/summary. Customize the title, summary, and screenshot on the web — then share it.

Privacy

What is sent to promptbook.gg: session ID, project name, model, timestamps, prompt count, token counts, build time, lines changed, language, file extension counts (e.g. {ts: 5, css: 2}), and tool usage counts (e.g. {Edit: 12, Read: 8}).

What is never sent: source code, prompt content, file contents, file paths, or your working directory.

The plugin also generates a short title and summary by calling Claude Haiku through your own Claude credentials — this goes to Anthropic (same as any Claude Code usage), never to Promptbook.

Promptbook remains inactive until setup writes your consent into the local config file.

History Backfill

After setup, you can optionally scan your local Claude Code history and upload past sessions from the bundled backfill-history.js script shipped with this plugin. The plugin does not download executable code at runtime for backfill.

You can audit everything: the hooks are right here in this repo.

Alternative install

If you prefer a one-command setup without the plugin system:

bash <(curl -sL promptbook.gg/setup.sh)

Links