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

flowpad

v0.18.1

Published

Anchor — a working protocol for building software with AI agents.

Readme

Anchor

A working protocol for building software with AI agents. This is how FlowPad is built — extracted, made project-neutral, and kept in one place so it can be applied to any repository.

Status: early. Published as flowpad and in daily use across two workspaces, but the interface may still change.

The problem

AI inverted the bottleneck. Producing code is cheap now; the scarce resource is comprehension and control — an agent writes faster than a person can read.

Two failures follow, and both are structural rather than a matter of prompting:

  1. Agents re-derive plausible-but-wrong designs. A rule written in prose gets argued away by the next agent, in good faith, with a reasonable-sounding case.
  2. The same rules get taught over and over. Every new project, every new agent, the same corrections — because the knowledge lived in one agent's memory instead of in the repository.

The idea

A rule is either anchored and enforced, or it is not a rule.

  • Anchored — it has a name, it lives in exactly one place, and it can be found. Cures "I know we decided this, I can't remember where it's written."
  • Enforced — a test or check goes red when it is broken. Cures "it broke silently and nobody noticed for a month."

Anchored without enforcement is a wish. Enforced without an anchor is an orphan test nobody understands. Together, they are a contract.

Prose convinces. Only the test binds. This protocol is the practice of keeping both.

What it installs

  • AGENT-INIT.md — the protocol an agent reads at the start of a session: the first 60 seconds, what to ask and what to just do, how work is reported, how a session ends.
  • PRINCIPLES.md — the coding principles that hold in every language and every session: never swallow errors, fix the class rather than the instance, comment the why, no dead code, never put a secret on a command line.
  • contracts/ — the place project-specific laws live, with a template that refuses to be filled in without naming what enforces it.
  • guides/ — optional per-stack guides (React, TypeScript, …), installed only for the stacks the repository actually uses.
  • An anchor line in whichever instruction file your agent loads automatically (CLAUDE.md, AGENTS.md, .cursorrules, GEMINI.md, …) — without it, no agent ever reads any of this.

The CLI

npx flowpad init --agent=claude --wire   # install, anchor, and wire both gates
npx flowpad check                        # verify; exits non-zero when something is off
npx flowpad update                       # take a newer protocol, keeping your §12 slots
npx flowpad guide add react              # install a stack guide
npx flowpad wire-session                 # make the protocol load at every session start
npx flowpad questions                    # answer the open questions the agent wrote down
npx flowpad context                      # print the session brief on stdout

check is the part that matters. It verifies that the anchor line is still there, that every project slot is filled in, that the contract index and the files on disk still agree in both directions, that a commit gate is actually registered — not merely present as a file — and that the repository's own stack has a guide installed and none of them have gone stale or were written for a different major. It reads every package.json in the tree, so a workspace whose root carries no manifest is detected from its child repositories.

It also notices when the installed copy of this package is itself behind, which nothing inside the repository can see on its own. That probe is cached for a week, capped at two seconds, silent on failure, and skipped entirely under CI or FLOWPAD_NO_NETWORK=1 — a commit must never wait on the network.

--wire is what makes that mechanical rather than remembered: it adds flowpad check to the pre-commit hook (and, where there is a package.json, pins the dependency). A protocol that only describes good behaviour decays; one that exits non-zero at commit time does not. It is opt-in — editing someone's commit hook uninvited is exactly the behaviour the protocol tells agents not to have.

Pointing at the protocol is not loading it

The anchor line is a hop: the agent has to notice it and choose to open the file. A hop that can be skipped is a hop that will be — and no session inherits the last one's reading, because every session starts empty.

So --wire also installs a session channel, using whatever the agent offers:

| Agent | Channel | |---|---| | Claude Code | a SessionStart hook in .claude/settings.json, printing §0 at every session start | | Codex / Cursor / Gemini / other | §0 copied into the instruction file, between tool-managed markers |

The hook reads the installed file rather than calling this package back: no network on a path that runs at every session start, works where the package was never installed, and it prints the digest of the protocol actually on disk instead of whatever version the tool happens to be. Because it lives in .claude/settings.json, it travels with the repository — anyone who clones it gets the same behaviour without setting anything up.

The copied block is the weaker option — it is a second copy, which is Failure 2 above — so it is fenced: update re-stamps it, and check goes amber when it stops matching its source. A copy with a guardian is a cache; without one it is drift.

update offers the channel to an install that predates it — one keystroke, or the command printed when there is no terminal to ask in. An install that never hears about a new channel stays unwired forever, which is the same self-reinforcing silence the registry probe exists to break.

Not wiring it is a legitimate choice, so check reports its absence at INFO and does not colour the summary. Levels that colour a summary have to mean act on this, or the amber rows that do get skimmed past.

Honesty

The protocol ships a table of which of its own rules have a mechanical guardian and which are intent only. That table is meant to shrink over time. A document that hides its own weak points is harder to trust than one that names them.

License

MIT