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/node

v0.4.0-pre

Published

Servanda node (L1): §4.3 transition table, edge lifecycle, and the §7 MCP surface

Readme

@servanda/node

L1 — the edge state machine — plus the §7 MCP surface that every client speaks to.

The transition table is the constitution's enforcement point

const result = verifyAssertionChain(edge, assertions);
// → { outcomes: [{ index, accepted, rejection_reason? }], finalState }

§4.3: "Any assertion violating this table is invalid and MUST be discarded." This function is where that becomes true. It reproduces all 26 conformance vectors — 7 chains a node must accept and 19 it must reject — with the exact rejection_reason strings the suite asserts on.

The 19 negative cases matter more than the positive ones. A verifier that accepts a confirmed assertion signed by the owner rather than the counterparty has silently discarded the entire confirm-first guarantee, and would still pass every positive test. Among the cases it must reject:

  • the owner self-confirming their own proposal (M-2)
  • an assertion attributed to the counterparty but signed with the owner's key
  • release asserted by the owner instead of owed_to — release is forgiveness, and only the person owed can forgive
  • an owner recording tacit acceptance before the acceptance window has elapsed
  • an explicit open assertion (§4.3 marks that transition implicit)

Effective state folds confirmed into open and adds pending-acceptance to model the §4.4 window, which §4.3 has no row for. Both are interpretations, documented upstream (issues #12, #13), not invented silently.

The six tools (§7)

const node = new ServandaNode({ vault, activePersona, now });
node.commit({ intent, owed_to, due, propose });
node.expect({ expect, from, context });
node.confirm({ id, decision, edit });
node.openLoops({ view, persona, limit });
node.brief({ persona });

Exposed over MCP stdio via mcp/stdio.js. Clients — assistants, the web ledger, the TUI, the email brief — are interchangeable above this contract; that is the point of having one.

commit throws M1Violation if handed an owner that is not the caller's persona. You cannot record someone else's promise as theirs; the correct object is expect. assertNoForeignOwner is exported so the rule is testable in isolation.

What the node will not do

  • M-11 — no reputation. It does not compute, store or serve cross-party fulfillment statistics. localPairwiseHistory is deliberately local and pairwise; M11Violation exists to make the boundary explicit rather than implicit.
  • M-8 — no auto-escalation of unverifiable edges. An edge with no verification adapter, or an invalid collective decomposition, is marked unverifiable and stays quiet. Escalating something you cannot verify is how a notary becomes a nag.
  • Undated commitments never time-escalate (§3.1). due: null is expected to be the majority case; those rank by age × blocking, never by an invented deadline.

Ranking

brief orders by the attention market — cost_of_delay × confidence × people_blocked — and never by manual sort. With persona: null the ordering is cross-persona, which is the sole exception §5.3 allows; each slot's content still originates from exactly one persona's pipeline (M-5).