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

backthread

v0.5.1

Published

Backthread helps you understand your codebase while AI ships features. The CLI captures the why behind every AI session and lets you ask how your codebase works, right from the terminal.

Readme

backthread

npm license

Keep the thread on what your AI agent actually shipped.

npx backthread

One command, the whole setup: signs you in (one browser click), connects this repo, wires up automatic capture, and hands you the link to your live "How it works" diagram. Re-run it any time — it's idempotent, so a returning user just gets told they're good to go.

In Claude Code? /plugin marketplace add backthread/backthread/plugin install backthread@backthread/backthread:start. The plugin bundles the CLI, so there's no separate npm step.

When you hand code to AI agents (Claude Code, Codex, Cursor), you stop reading every change — and a few weeks later you own a codebase you never internalized. Debugging slows down, refactors get scary. Backthread captures the why behind each change straight from your agent sessions, so you can ask "how does X work?" and stay oriented without spelunking through PRs. The decisions become a live "How it works" diagram and changelog at app.backthread.dev — see the live demo.

Your source code never leaves your machine

Backthread reads your agent transcripts, not your repo. Before anything is sent, the CLI redacts every transcript locally:

  • Drops every tool call and tool result — where source code and command output live.
  • Keeps only natural-language prompts and the agent's reasoning.
  • Redacts any fenced code block to [code redacted].

So no source code and no tool I/O ever leave your machine. Because the default path runs inference on our servers, what does leave is the redacted transcript — natural-language prose only. The Worker re-runs the fenced-code scrub server-side as a fail-closed backstop, derives the decisions, and discards the transcript right after — processed in memory, never stored. Only the decisions are persisted.

That's a weaker claim than the bring-your-own-key path — where nothing but the derived decisions ever leaves your machine — which is designed and coming. We'd rather say so than paper over it. The redaction fence is open source (@backthread/redact) so you can verify it — read more at backthread.dev/security.

What npx backthread does

The bare command is the unified front door. Under the hood it:

  1. Signs you in — opens your browser for one click (you'll need a free Backthread account; the CLI never sees a password, and your device token is never printed or copied to the clipboard).
  2. Wires up capture — registers a hook so each Claude Code session is captured automatically when it ends.
  3. Backfills history — replays your recent Claude Code sessions in this repo so your "How it works" log isn't empty on day one.

Then keep coding. At the end of every Claude Code session, Backthread captures the decisions automatically — nothing to remember. Ask "how does X work?" right inside Claude Code (the backthread MCP server exposes a query tool), or open the live diagram at app.backthread.dev.

Claude Code plugin (alternative)

Prefer the marketplace? In Claude Code:

/plugin marketplace add backthread/backthread
/plugin install backthread@backthread
/backthread:start

Installing the plugin bundles the CLI — no separate npm step — and registers, at user/global scope (so it works across every repo and git worktree), the SessionEnd capture hook, the /backthread:capture & /backthread:start commands, and the backthread MCP server (capture + query). /backthread:start just signs you in.

Codex / Cursor / Gemini CLI

Use another coding agent? One command wires up its MCP server (the query tool) and an automatic capture hook — written to that agent's user-global config so capture follows you across every repo and git worktree:

npx backthread install --agent codex     # ~/.codex/config.toml + ~/.codex/hooks.json
npx backthread install --agent cursor     # ~/.cursor/mcp.json   + ~/.cursor/hooks.json
npx backthread install --agent gemini     # ~/.gemini/settings.json (MCP + SessionEnd hook)

It's idempotent (re-running never duplicates anything) and a strict merge (it never clobbers your other config). Then npx backthread login once to authorize. Gemini users can also install the one-command extension instead, and Codex users the plugin.

Commands

backthread           Set up Backthread — the unified front door (sign in + connect + capture).
                     Idempotent: a returning user is told they're good to go.
backthread install   Set up capture for this repo (sign in + hook + backfill)
backthread start     First-run for the Claude Code plugin (sign in + your next step)
backthread login     Authorize this device (opens your browser)
backthread whoami    Show this device's config (your token is never printed)
backthread capture   Capture a session's decisions (run automatically by the hook)
backthread mcp       Start the MCP server — the capture + "how does X work?" query tools
backthread help      Show usage

Requirements

  • Node.js ≥ 22.18

Learn more

License

MIT © Backthread