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

@zanii/swarm

v0.2.0

Published

N-party (3+) co-signed receipts for agent teams: genuine M-of-N Ed25519 threshold signatures over a canonical body (not a 2-party chain). Verifiable offline today; recording on the ledger awaits SPEC §14 server ingest.

Readme

@zanii/swarm

N-party (3+) co-signed receipts for agent teams. Receipts today are 1-party or 2-party co-signed; a team of 3+ agents doing one task has no N-party receipt, so accountability inside a swarm is a hole. This is genuine M-of-N threshold crypto: every participant signs the same canonical body, and verifySwarm requires threshold valid, distinct signatures from the declared participant set. It does not fake N-party by chaining 2-party co-signs.

On-ledger (v0.2.0). SPEC §14 ingest is live at POST /v1/swarm. buildSwarmReceipt + swarmSigner assemble a receipt with each signer's authority envelope (delegation, prev), and verifySwarmReceipt runs the authority-complete check that mirrors the server byte-for-byte: per signer — valid signature, owner-rooted unrevoked/unexpired delegation, target in scope, and prev == chain head; then valid signers ≥ threshold and (default) ≥ threshold distinct owners (segregation of duties — one owner's N agents can't fake an M-of-N). A receipt this accepts is a receipt /v1/swarm accepts (identical canonical signing input; cross-verified TS↔Python).

verifySwarm (signatures-only) remains for offline "did these keys sign" checks — do not mistake it for verifySwarmReceipt (authority). Same Ed25519 / did:key / ed25519:<hex> format throughout, so a party can sign in TypeScript or Python.

npm install @zanii/swarm @zanii/core
import { buildSwarmBody, signSwarm, assembleSwarmReceipt, verifySwarm } from '@zanii/swarm';

const body = buildSwarmBody({ task: 'deploy.release', target: 'prod', participants: [a, b, c], threshold: 2, ts });
const receipt = assembleSwarmReceipt(body, [
  { signer: a, sig: signSwarm(body, aKey) },
  { signer: b, sig: signSwarm(body, bKey) },
]);
verifySwarm(receipt).ok; // true — 2 of 3 distinct participants signed

Changelog

  • 0.2.0 — on-ledger authority layer (SPEC §14): buildSwarmReceipt, swarmSigner, and verifySwarmReceipt (authority-complete — delegation + scope + prev + revocation + distinct-owner segregation), mirroring the server's POST /v1/swarm.
  • 0.1.0 — initial release: buildSwarmBody, signSwarm, assembleSwarmReceipt, verifySwarm (M-of-N threshold).

License

Apache-2.0.