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

v0.4.0

Published

Zanii client SDK: instrument any agent to record signed, provable action receipts, and verify proofs with zero trust in the server.

Readme

@zanii/sdk

Instrument any AI agent to emit signed, hash-chained action receipts to a Zanii transparency log — and verify those proofs with zero trust in the server. Every action carries the agent's did:key identity and a delegation chain proving it was authorized; every receipt is anchored in an RFC 6962 Merkle log.

npm install @zanii/sdk

Quickstart

import {
  ZaniiAgent,
  fetchAndVerifyProof,
  generateKeypair,
  createCert,
} from '@zanii/sdk';

// 1. Identities. The owner delegates a scoped, expiring capability to the agent.
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,
);

// 2. Instrument the agent. Signing is local; shipping is batched.
const zanii = new ZaniiAgent({
  serverUrl: 'https://ledger.zanii.agency',
  agentDid: agent.did,
  agentPrivateKey: agent.privateKey,
  delegation: [cert],
  // apiKey: 'zk_live_...',   // required when the log enforces write auth
});

// Wrap any tool so every call is receipted automatically:
const lookup = zanii.wrapTool('crm.lookup', (email: string) => crm.find(email));
await lookup('[email protected]');

// ...or record explicitly, then verify the proof offline:
const { hash } = await zanii.record({ target: 'crm.lookup', payload: { email: '[email protected]' } });
await zanii.flush();

const proof = await fetchAndVerifyProof('https://ledger.zanii.agency', hash);
if (!proof.ok) throw new Error(`unverifiable: ${proof.error}`);

What's included

  • Delegation — scoped, expiring, revocable capability certificates.
  • Cross-org receipts — two agents from different orgs co-sign a single A2A receipt, so a hand-off is provable by both sides.
  • fetchAndVerifyProof() — pull a receipt and its Merkle inclusion proof and verify signatures, scope, and log membership without trusting the server.

For the pure, I/O-free protocol primitives (verify receipts and audit bundles with no client), see @zanii/core.

Links

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

Changelog

  • 0.4.0record({ subjectTag }): stamp a pseudonymous data-subject tag on a receipt (per-subject auditability, @zanii/subject).
  • 0.3.0record() salts the payload hash by default (privacy/PDPL; opt out with salt:false); nonceStore + MemoryNonceStore; optional provenance on record; re-exports saltedPayloadHash/verifyPayload.
  • 0.2.1@zanii/sdk now re-exports the full verification + revocation surface from @zanii/core (verifyReceipt, verifyA2AReceipt, verifyAuditBundle, verifyRevocation, verifyChain, verifyCertSignature, verifySTH, verifyInclusion, verifyConsistency, createRevocation, + BundleReport/VerifyResult/ChainResult types) — a single @zanii/sdk install now builds and verifies.
  • 0.2.0 — version bump in lockstep with the package family.
  • 0.1.0 — initial release: ZaniiAgent (record / wrapTool / flush), delegation helpers, and fetchAndVerifyProof for zero-trust verification.

License

Apache-2.0.