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

diffsplain

v0.8.2

Published

Review Git diffs one file at a time with coding agent notes beside each patch.

Readme

Diffsplain

Review a Git diff one file at a time, with a short coding agent note beside each patch.

Use

Run from a Git checkout:

npx diffsplain

The command opens a local page and compares the checkout with its default branch. It starts at port 2299 and uses the next free port when needed. You need Node.js 22.13 or newer and a signed-in Codex, Claude, Copilot, Cursor, or OpenCode CLI. Diffsplain tries them in that order. Cursor Agent must be version 2026.08.11 or newer. It uses the signed-in Cursor CLI in the user's home and still contacts the Cursor service. Pull requests also need a signed-in GitHub CLI. Once Diffsplain chooses an agent, a failed check or run ends the command; it does not switch agents.

Common targets:

npx diffsplain --pr 198
npx diffsplain owner/repo --branch feature/my-change
npx diffsplain --worktree
npx diffsplain --base BASE_REF --head HEAD_REF

Check Git, the GitHub CLI, and each supported coding agent:

npx diffsplain doctor

Arguments:

| Argument | Use | | --- | --- | | doctor | Show dependency paths, versions, and readiness. | | REPO, --repo PATH\|URL\|OWNER/REPO | Select a local or remote repo. | | --pr NUMBER\|URL | Review a GitHub pull request. | | --branch NAME | Compare a remote branch with its default branch. | | --worktree | Review tracked and untracked changes against HEAD. | | --base REF --head REF | Review an exact local range. | | --agent NAME, --no-agent | Choose a coding agent, or show a plain diff. | | --model NAME | Choose the model used for notes. | | --reasoning LEVEL | Set minimal, low, medium, high, or xhigh. | | --batch-size COUNT | Set the most files per agent pass. The default is 12; large patches use smaller batches. | | --jobs COUNT | Set agent passes to run at once. The default is 3. | | --force | Regenerate all agent notes instead of using cached notes. | | --support-record | Print a safe JSON record if the review fails. | | --support-record-file FILE | Write one safe JSON record if the review fails. | | --remote NAME\|URL | Choose the Git remote. The default is origin. | | --port NUMBER | Choose an exact local port. The default starts at 2299. | | -h, --help | Show command help. | | -v, --version | Show the installed version. |

Local development

corepack enable
corepack pnpm run setup
corepack pnpm run dev

Run the public CLI from this checkout:

corepack pnpm run diffsplain -- --worktree
corepack pnpm run diffsplain -- doctor
corepack pnpm run doctor

Install Chromium once, then run the checks:

corepack pnpm run test:browser:install
corepack pnpm run check
corepack pnpm run test:browser

Run the Blume docs:

corepack pnpm run docs:dev

More guides are in docs/.