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

@chtnnh/know-code

v0.3.1

Published

Gate git push / PR creation until the human passes a comprehension quiz about the diff

Readme

@chtnnh/know-code

Agents don't push until you know exactly what's changed.

CLI that gates git commit / git push / PR creation until you pass a browser comprehension quiz. The agent writes the quiz and proposes your grade — you answer and seal the gate. Pair with the know-code Agent Skills.

Docs: kc.chtnnhfoundation.org · Repo: chtnnh/know-code

Who does what

| | Agent | You | |---|-------|-----| | Teach | Explains (know-code-teach skill) | taught | | Quiz | Writes quiz.json, runs ask | Answer in browser | | Grade | grade-proposal.json | grade --reviewpass | | Stage | — | git add (your terminal) | | Commit | know-code commit | After you pass | | Ship | — | range seal, git push |

Install (you, once)

npm i -g @chtnnh/know-code
know-code init --level standard --agents claude,cursor,codex --workflow
know-code attest-init
know-code skills

Every command is also available as kc (kc status, kc taught, kc commit -m "…").

Range workflow (recommended)

One quiz per feature batch — not per commit.

know-code range begin                    # you

# agent: know-code-teach
know-code taught                         # you

# agent: questions → quiz.json → quiz validate → ask
# you: answer in browser

# agent: grade-proposal.json
know-code grade --review                 # you
know-code pass                           # you

know-code commit -m "feat: first slice"  # agent
# … more commits …
know-code range seal                     # you
know-code doctor --strict                # you
git push

Everyday commands

| Command | Who | |---------|-----| | know-code taught / grade --review / pass / range seal | you (passphrase) | | know-code questions · quiz validate · ask | agent runs · you answer in browser | | know-code commit / amend | agent (after pass) | | know-code status · doctor --strict · ship | either |

Agent hooks (0.3.0+)

Agent shell hooks deny git add, amend, merge/pull/rebase, and other bypasses. You stage; the agent commits through know-code commit after pass.

know-code hooks install
know-code init --agents claude,cursor,codex

See hooks docs.

Config

Merged from ~/.know-code/config.json + .know-code/config.json (gitignored). Notable: enforcePipeline defaults to true (0.3.0). See config docs.

Upgrading to 0.3.0

  1. Re-run know-code pass so gate.json includes gatedTreeOid.
  2. Refresh hooks: hooks install, init --agents ….
  3. You stage (git add); agents use know-code commit / amend.

Emergency bypass (human TTY)

know-code override
KNOW_CODE_OVERRIDE=1 git commit

Denied in agent hooks and CI.

License

MIT