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

isnad

v0.1.0

Published

ISNAD audit-record verifier (JS/TS): verify SHA-256 / Merkle / detached-signature integrity of ISNAD audit records. Verifier only — grading stays in the Python core.

Readme

ISNAD (JavaScript/TypeScript) — audit-record verifier

Verify the integrity of ISNAD audit records from JavaScript/TypeScript.

Verifier only — this package does not grade claims. Grading, the narrator registry, weakest-link evaluation, and corroboration live in the Python core (pip install isnad), which is the sole grading authority. This package only checks the tamper-evidence that the Python core emits.

Install

npm install isnad

Requires Node.js >= 18.

What it verifies

  • Self-hash — integrity.record_hash is a SHA-256 over the RFC 8785 canonical form of the record (minus the integrity block).
  • Detached signatures — HMAC-SHA256 (shared secret) or Ed25519 (asymmetric) over the same canonical payload.
  • Merkle batch logs — batch roots, chain linkage (prev_root), and O(log n) inclusion proofs.

It does not grade, register narrators, corroborate, or emit new records.

Usage

import { verifyRecord, hmacVerify, ed25519Verify } from "isnad";

// A record emitted by the Python core (JSON).
const record = JSON.parse(fs.readFileSync("audit.json", "utf8"));

// 1. Verify the self-hash.
const result = verifyRecord(record, (payload, sig) => hmacVerify("my-secret", payload, sig));
// result.hashValid === true
// result.signatureValid === true | false | null  (null = no signature present)

// 2. Or with Ed25519 (raw 32-byte public key, hex):
verifyRecord(record, (payload, sig) => ed25519Verify(PUBLIC_KEY_HEX, payload, sig));

Merkle batch logs

import { buildBatch, verifyBatches, proveInclusion, verifyInclusion } from "isnad";

const batch = buildBatch([
  ["record-id-1", "hash1"],
  ["record-id-2", "hash2"],
]);

verifyBatches([batch]); // null = intact, or { index, reason } = break

const proof = proveInclusion(batch, "record-id-2");
verifyInclusion(proof, batch.root); // true

Honesty & scope

  • Byte-identical canonicalization with the Python core is pinned by golden conformance vectors generated from the Python test suite (test/golden.json). Cross-language hash divergence fails CI.
  • Never floats: the canonicalizer rejects non-integer numbers, so the only fiddly part of RFC 8785 is enforced away rather than reimplemented.
  • Never holds a secret in a browser: this package verifies only. A shared HMAC secret must never ship to a client; signing stays server-side.

License

Apache-2.0.