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

ratchet-cc

v0.5.5

Published

Every correction you give your coding agent becomes an enforced check it can never violate again. CLAUDE.md is advice; Ratchet is law.

Readme

Ratchet

npm CI license

Every correction you give your coding agent becomes an enforced check it can never violate again.

You told Claude "don't push to github until I say so." It pushed anyway — four times over three weeks. You wrote it in CLAUDE.md. It pushed again. That's because CLAUDE.md is advice: prose the model reads and sometimes ignores.

Ratchet is law: it compiles what you teach your agent into deterministic checks wired into agent hook systems (Claude Code, Cursor, Codex). A blocked call is blocked — even in --dangerously-skip-permissions mode.

$ ratchet init

  3 proposed rules from your own history:

  1. [enforced] From now on don't push to github until I tell you to  ⚠ you corrected this
     said 6× on 4 occasions · e.g. "Can you commit and push all changes…"
     ✓ .ratchet/rules/no-git-push-without-consent.yaml

Then, when the agent tries it anyway:

⛔ Blocked by ratchet rule "no-git-push-without-consent":
   From now on don't push to github untill I tell you to
   (command matches /\bgit\s+push\b/ and the user has not said "push" this session)

Install

npm i -g ratchet-cc
cd your-project
ratchet init        # mine your agent history → proposed rules with evidence
ratchet install     # wire hooks into Claude Code, Cursor, and Codex configs

Requires Node 18+. Zero dependencies. Everything runs locally.

Using Claude Code? Install as a plugin instead — the hooks wire themselves up:

/plugin marketplace add Neerav-Gupta/Ratchet
/plugin install ratchet@ratchet

Quick usage

ratchet add "never push to github unless I tell you to"
ratchet add "never edit the .env file"
ratchet add 'never use `console.log` in *.ts files'

ratchet pack add git-hygiene   # curated starter rules: no force-push, no --no-verify, ...
ratchet check                  # enforce statically, for pre-commit / CI
ratchet why <rule-id>           # see the conversation that created a rule
ratchet undo                    # revert the last add/rm/mode change

Statements compile to the strongest enforceable form: a command or file_protect or content check blocked at the PreToolUse hook, a semantic rule judged by a model at the Stop hook, or an honest reminder when nothing deterministic applies.

Rules live as YAML files in .ratchet/rules/ — committed to your repo, diffable, PR-reviewable. Your agent's memory shouldn't live in a vendor's database.

Learn more

Full documentation, the rule schema, the enforcement design, and the CLI reference: github.com/Neerav-Gupta/Ratchet

License

MIT