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

v0.1.0

Published

Owner-to-legal-entity binding - the missing link between an owner did:key and who is legally on the hook. Two-way: the company serves .well-known/zanii-owner.json on its own domain AND the owner signs an attestation naming that domain and entity; verifica

Readme

@zanii/kyb

Owner-to-legal-entity binding: who is legally on the hook? @zanii/kya screens agents; @zanii/credentials binds institutions to domains. This closes the gap between them — binding an owner did:key to a legal entity, so escrow, insurance, and sla parties know who they are contracting with in the legal sense.

npm install @zanii/kyb @zanii/core

The binding is deliberately two-way — one-sided claims are refused:

// 1. the company serves https://acme.com/.well-known/zanii-owner.json
{ "v": 1,
  "entity": { "name": "Acme FZ-LLC", "jurisdiction": "AE-DU", "registration": "DED-12345" },
  "domain": "acme.com",
  "owner_dids": ["did:key:z6Mk…"] }
import { buildOwnerAttestation, fetchAndVerifyOwner } from '@zanii/kyb';

// 2. the owner signs the other half — this key claims this domain and entity
const attestation = buildOwnerAttestation(
  { did: owner.did, domain: 'acme.com', entity: { name: 'Acme FZ-LLC' }, ts: now },
  ownerPrivateKey,
);

// 3. anyone verifies both halves agree
const r = await fetchAndVerifyOwner(attestation);
r.ok;       // signed by the DID + listed by the domain + same entity on both sides
r.entity;   // the entity BOTH sides agree on

Python: from zanii.kyb import build_owner_attestation, fetch_and_verify_owner, ... — byte-identical JCS objects and hashes.

Why two-way

A domain listing a DID proves nothing alone — anyone can list any DID. A key naming a domain proves nothing alone — anyone can name any domain. Both together bind: whoever controls the domain and whoever controls the key agree they are the same entity. The doc must be served from the domain it claims (no cross-domain vouching), entity names must match exactly, and jurisdiction/registration must agree wherever both sides state them (silence on a field is not a mismatch).

The limit, stated up front

Domain control is not corporate registration. Zanii verifies that both sides claim the same entity — it does NOT verify the entity exists in a corporate registry, is solvent, or is lawfully named. Real KYB (registry checks, sanctions, UBO) is an off-protocol process this package makes auditable: the attestation is signed and permanent, so a false claim is attributable forever. We verify domain control; we never certify companies — the @zanii/credentials posture, unchanged.