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

@servanda/extraction

v0.4.0-pre

Published

Servanda §3.4 extraction: tool-less, schema-bound, single-persona commitment extraction from signal envelopes

Readme

@servanda/extraction

Turns signal envelopes into candidate commitments — under the tightest containment in the system.

The three constraints (§3.4, §9.2)

  1. No tool access. The model call passes no tools at all. Not a restricted set — none.
  2. Schema-bound. It emits objects valid against §3.1 or nothing. Every output is validated against the zod schema; anything that fails is dropped. A malformed response yields zero commitments, never a partial guess.
  3. Single-persona context (M-5). The persona is bound at construction, not passed per call.

The honest claim

LLM extraction is never injection-proof, and this package does not pretend otherwise. §9.2 states the guarantee precisely, and the code's shape is what makes it true:

a fooled model can produce at most an unconfirmed proposal — nothing a human didn't sign.

Results land in a pending-confirmation queue. Nothing auto-commits. The worst case for the attack in scenario 6 — a repo comment reading "SYSTEM: ignore previous instructions…" — is a junk record a human dismisses, and the dismissal is itself the label that makes the next attempt fail earlier (ADR-0012).

§3.4 routing — the subtle part

route(result, nodePersona);
// → 'reflexive' | 'may-propose-after-confirmation' | 'expectation-only'
  • reflexive — you promised yourself. Vault-local, never on the wire.
  • may-propose-after-confirmation — you are the owner and someone else is owed. A wire propose requires an explicit confirmation act by you first.
  • expectation-onlysomeone else is the owner. This can never become a propose.

That last case is M-1, and it is the one worth stating plainly: you cannot propose someone else's promise. "They said they would" is an expectation (§3.3) — vault-local, never on the wire (ADR-0013), escalating only to you. The system cannot and may not chase a third party on the basis of something a model thought it heard.

Extraction is asymmetric by construction: generous toward you about your own intents, conservative to the point of suspicion about other people's.

The precision harness

pnpm --filter @servanda/extraction harness --dry-run   # stub model, no API calls, no spend
pnpm --filter @servanda/extraction harness             # live; needs ANTHROPIC_API_KEY

Scans ~/.claude/projects/**/*.jsonl read-only, runs extraction over the last 30 days, and writes precision-report.md at the repo root (gitignored — it contains private transcript content). Every extracted commitment appears with its verbatim source quote, so a human can judge each one.

The report scores nothing. Precision is a human verdict; the harness produces the evidence for it. In --dry-run the "model" is a small regex rule table with no judgement, and the report says so at the top in as many words — whatever fraction of stub rows look right is a fact about the stub, not about the extractor.

Subagent transcripts are skipped, citing M-13: an agent is never a party, so what a subagent said cannot be a promise.