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

@booga/bratch

v0.2.0

Published

Prompt lookup tool. Agent names a regression signature from a fixed list; bratch returns the prompt for that regression signature. The prompt tells the agent how to check the diff against a baseline for that regression.

Readme

bratch

For agents that risk regressing prior work. bratch reads a revision pair (the change about to be made vs the prior baseline) against a regression-signature taxonomy and emits a tri-state verdict: HISTORICAL-BUG (this change matches a pattern that broke things before), CLEAN, or MALFORMED. The signature taxonomy is closed (9 variants at v0.1); the prompt library evolves continuously via empirical-lift evaluation, so the same bratch verify invocation gets stricter at catching regression-signatures as the corpus matures.

Prompt lookup tool. Agent names a regression signature from a fixed list; bratch returns the prompt for that regression signature. The prompt tells the agent how to check the diff against a baseline for that regression.

Built for agentic loops. Reads a diff buffer, matches against a closed regression-signature taxonomy, writes a verdict directive on stdout, exits with a discriminating code so the calling agent can branch on whether a regression was found.

bratch compare       check a diff against a baseline for regression signatures; exit 0 / 1 / 2 / 64
bratch signatures    list the supported regression-signature identifiers
bratch init          scaffold a manifest in the current directory
bratch update        self-update to the latest published version
bratch tail          stream recent verdict transcripts
bratch explain       print taxonomy and exit-code reference

Exit code contract: 0 no regression, 1 regression detected, 2 internal error, 64 malformed input.

Install

cargo install --git https://github.com/bvasilenko/bRatch

Use

bratch compare --signature null-check-removed --diff ./PR-feature-x.diff
# stdout: REGRESSION-DETECTED: null-check-removed. ...
# exit: 1

Optional flags: --diff <path>, --history <path-or-name>, --manifest <path>, --json, --quiet, --reason <text>. Subcommands consume the same flag set; defaults are sane.

Regression-signature taxonomy

Closed RegressionSignature enum. The taxonomy is fixed at this version; widening lands in a later version.

| Category | Variants | |---|---| | Engineering | null-check-removed, error-handling-narrowed, test-assertion-weakened, scope-boundary-broken, invariant-violated | | CMS-context | brand-voice-loosened, banned-term-re-introduced, disclosure-line-deleted, approved-fact-replaced |

bratch signatures prints the full list.

The v0 corpus shipped with this release is hand-authored fixture material. An empirically evolved corpus ships in a later cycle; upgrading is handled automatically via bratch update once the signed-manifest endpoint is live.

Configuration

| Environment variable | Purpose | Default | |---|---|---| | BSUITE_UPDATE_BASE_URL | Base URL for the bratch update manifest fetch | https://updates.example.invalid/bratch/v1 (deliberately non-resolving; production URL ships with the first signed-manifest release) | | BSUITE_TRANSCRIPT_DIR | Override the per-OS default transcript directory | OS default (Linux: $XDG_STATE_HOME; macOS: ~/Library/Application Support; Windows: %LOCALAPPDATA%) | | BSUITE_TRANSCRIPT_RETENTION_DAYS | Days of transcript history to retain | 90 |

License

MIT.