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

rigorix-verifier

v0.9.0

Published

Protocol-only verification of Rigorix audit envelopes: HMAC, JSON Schema, per-producer chains, and Ed25519 anchor artifacts. Consumes the canonical rigorix-schemas corpus.

Readme

rigorix-verifier (TypeScript)

Strategy A parity for the Rigorix signed audit trail: an independent, protocol-only verifier for Node. No engine dependency.

  • HMAC-SHA256 over the canonical form (signature nulled) — byte-exact with the rigorix-oss engine and the Rust verifier.
  • JSON Schema conformance (draft 2020-12 via ajv).
  • ADR-016 chains: per-producer sequence + prev_hash continuity, gaps accepted only when covered by a valid signed compaction checkpoint.
  • Ed25519 anchor artifacts (node:crypto): ledger receipt, history slice, compaction checkpoint.

Install

npm install [email protected]   # published artifact (embedded corpus)
npm install && npm run build          # from source

Usage

import { readFileSync } from "node:fs";
import { parse } from "lossless-json";
import { verifyChain, verifySignature, validateEnvelope } from "rigorix-verifier";

const text = readFileSync("envelope.json", "utf8");
verifySignature(text, "fixture-hmac-key-2026"); // byte-exact HMAC
validateEnvelope(JSON.parse(text));             // schema conformance

const chain = parse(readFileSync("chain.json", "utf8")) as any;
verifyChain(chain);                              // ADR-016 local chain

Canonical form

The HMAC is over serde_json::to_string(envelope with signature=None) as the engine emits it: struct field order, skip_serializing_if fields omitted when null/empty, non-skipped Option fields as null, scoring_results and its dimensions maps sorted, and payloads with sorted keys. The field order is read from schemas/envelope.json.

lossless-json is used instead of JSON.parse/JSON.stringify so number lexemes survive (1.0 stays 1.0; JS would emit 1, breaking the HMAC). The committed engine fixtures prove byte-exact parity (test/envelope.test.ts).

Contract corpus

Resolution (mirrors the Rust verifier):

  1. RIGORIX_SDK_SCHEMAS — an explicit external corpus (CI/local override).
  2. The bundled _schemas directory.

The bundled copy is generated from the repo-root schemas/ (the single source of truth) by scripts/bundle-schemas.mjs: npm prepack/build run it before packing. It is a real directory (npm will not dereference a symlink into the tarball), never a committed duplicate; test/corpus-sync.test.ts fails if it drifts from the canonical corpus. The pack gate (npm pack → install the tarball into a clean project → verify with RIGORIX_SDK_SCHEMAS unset) runs in CI.

Test

npm test          # tsc + node --test