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

@zarel-ai/audit-chain

v1.0.0

Published

Offline verifier for Zarel audit tamper-evidence: canonical JSON, per-(tenant,log) hash chain, and a pure node:crypto chain verifier (ADR-0108). Zero runtime dependencies.

Downloads

128

Readme

@zarel-ai/audit-chain

Offline, dependency-free verifier for Zarel audit tamper-evidence.

Zarel emits a cryptographic, append-only audit chain: every event is hash-linked to its predecessor, and the chain head is periodically sealed into a signed checkpoint (ADR-0108). This package is the independent verifier for that chain. It is pure node:cryptozero runtime dependencies — so you can read exactly what it checks and run it anywhere, without trusting Zarel.

What it proves: the event log was not altered, reordered, dropped, or soft-deleted between checkpoints, and the checkpoints were signed by a key you trust. What it does not prove: the content of an event is true, or that the log is complete. Tamper-evidence, not tamper-prevention.

Install

npm install @zarel-ai/audit-chain

Ships dual ESM + CommonJS with type declarations. Node ≥ 18.

import { verifyChain } from '@zarel-ai/audit-chain'; // ESM
// const { verifyChain } = require('@zarel-ai/audit-chain'); // CommonJS

Verify a chain

verifyChain is synchronous and offline. You give it the events, the signed checkpoints, and the trust keys you decided to trust (fetch them out-of-band from the deployment's /.well-known/zarel-trust-keys.json, never from the bundle itself). It returns a fail-closed verdict.

import { verifyChain, type TrustKey } from '@zarel-ai/audit-chain';

// Trust keys fetched out-of-band — NOT from the evidence bundle.
const keys: TrustKey[] = [
    { kid: 'deploy-2026', publicKeyB64: '<base64url raw 32-byte Ed25519 key>' },
];

const verdict = verifyChain({
    events,        // VerifierEventRow[]   — raw event rows from the bundle
    checkpoints,   // VerifierCheckpoint[] — signed checkpoints from the bundle
    keys,
});

if (verdict.ok) {
    console.log(
        `✓ chain intact for seq ${verdict.coveredRange?.from}..${verdict.coveredRange?.to}`,
        `(${verdict.checkpointsVerified} checkpoints, signed by ${verdict.keyKid})`,
    );
} else {
    for (const f of verdict.failures) {
        console.error(`✗ seq ${f.seq}: ${f.reason}`);
    }
    process.exitCode = 1;
}

A failure reason is one of event_hash_mismatch, prev_hash_mismatch, seq_gap, seq_duplicate, soft_deleted_event, checkpoint_chain_broken, checkpoint_signature_invalid, checkpoint_anchor_mismatch, or unknown_kid — each names exactly what broke.

Beyond the chain

To additionally check that a chain was anchored to an independent RFC 3161 timestamp authority (proving it existed before a third-party-attested time), pair this with @zarel-ai/audit-tsa. The zarel CLI (zarel verify) wraps both for whole-bundle verification.

License

Apache-2.0 © Zarel AI