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

v0.4.0

Published

Zanii protocol: verifiable identity, signed action receipts, Merkle transparency-log proofs. Pure, no I/O.

Readme

@zanii/core

The Zanii protocol as pure functions — no I/O, no network, no trusted party. Agent identities (did:key), scoped delegation certificates, signed action receipts, RFC 6962 Merkle transparency-log proofs, and self-contained audit bundles. Everything here is deterministic; use it to build proofs, or to verify them independently of any Zanii server.

If you want to instrument a live agent (batching, HTTP ingest, tool wrapping), use @zanii/sdk, which builds on this.

npm install @zanii/core

Verify a receipt, offline

import {
  generateKeypair,
  createCert,
  createReceipt,
  hashPayload,
  verifyReceipt,
} from '@zanii/core';

const owner = generateKeypair();
const agent = generateKeypair();
const cert = createCert(
  { issuer: owner.did, subject: agent.did, scopes: ['crm.*'], exp: '2027-01-01T00:00:00Z' },
  owner.privateKey,
);
const receipt = createReceipt(
  {
    agentId: agent.did,
    delegation: [cert],
    action: 'tool_call',
    target: 'crm.lookup',
    payloadHash: hashPayload(JSON.stringify({ email: '[email protected]' })),
    ts: new Date().toISOString(),
    prev: null,
  },
  agent.privateKey,
);

// Checks the signature, the delegation chain, and that the action is in scope —
// with no server and no trust.
const result = verifyReceipt(receipt);
if (!result.ok) throw new Error(result.error);

verifyAuditBundle(bundle) does the same for a complete exported history at once: every receipt's signature and Merkle inclusion, the per-agent hash chain, revocations, and on-chain anchor consistency.

Links

  • Docs & concepts — https://ledger.zanii.agency/docs
  • Live transparency log — https://ledger.zanii.agency

Changelog

  • 0.4.0 — optional signature-covered subject_tag receipt field (per-subject auditability, @zanii/subject).
  • 0.3.0saltedPayloadHash/verifyPayload, createConfirmation/verifyConfirmation, createCoSignature/verifyCoSignature, and optional receipt provenance fields (runtime_hash/model_id/manifest_hash).
  • 0.2.0 — version bump in lockstep with the package family (no API changes).
  • 0.1.0 — initial release: did:key identity, scoped/expiring delegation, signed hash-chained receipts, RFC 6962 Merkle inclusion + consistency proofs, signed tree heads, audit-bundle verification, and cross-org (A2A) receipts.

License

Apache-2.0.