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

v0.4.0-pre

Published

Servanda federation (L2): §6 transports, blind courier, reconciliation, edge recovery

Downloads

495

Readme

@servanda/federation

L2 — the layer that lets two nodes agree. Optional by design: L0–L1 are complete without it (M-10), and nothing here may weaken them.

Why it matters

Before this package existed, a cross-person edge could be created locally and never delivered. M-2 — the counterparty's signature is what makes a promise exist — was untestable between machines. Gate GF is the proof: propose → confirm → assert over a transport, both nodes converging on one chain and one state, with networking denied.

Transports (§6.1)

  • git — messages as files under servanda/{edge_id}/{seq}-{type}.json in a shared repository; sync is fetch/push. Suits team scopes: self-hosted, offline-tolerant, and auditable by anyone who can read a git log.
  • hub — an HTTPS relay. POST /servanda/v0/deliver, GET /servanda/v0/inbox?persona=….

The hub is blind (§6.3)

Hub-bound payloads are sealed to the recipient persona key. A conforming hub sees recipient, ciphertext, timestamps — and nothing else: not the sender, not the edge, not a word of the promise. The gate asserts that rather than documenting it.

Fabrication is prevented independently of hub honesty, because signatures are verified at the recipient. A hostile hub can drop messages; it cannot forge one.

Reconciliation decides nothing (§6.4)

recon_request carries {edge_id, latest_assertion_hash} per shared open edge; recon_response returns the missing assertions.

Candidate assertions are fed through verifyAssertionChain from @servanda/node. The transition table stays the single authority on edge state — federation never re-implements it and never overrides it, so an invalid assertion arriving over the wire is discarded exactly as one arriving locally would be (M-14). Divergence in content cannot occur after confirmation: content is the hash, and changing it requires supersession.

Escalation is not reconciliation's business. Both sides seeing the same chain is all it promises; what to do about an overdue promise is a local decision by the owner's own node.

Recovery (§6.6) and anti-spam (§6.5)

Recovery responses carry hashes only. Plaintext recovery is a human act between counterparties, never something a machine hands over (M-7). Responders verify the persona — or its rotation successor — before answering.

Proposals from unknown senders are rate-limited, and level-0 senders are capped below a client-configurable threshold. A proposed edge is socially nothing, which is what makes a Sybil flood pointless rather than merely throttled.