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

@smartledger.technology/openai-claw-verify

v0.3.0

Published

Standalone verifier for openai-claw attestation sidecars. Recomputes the Merkle root, checks the ML-DSA-65 signature, and (optionally) cross-references each leaf against the session file. No OpenAI / claw / model dependencies.

Readme

@smartledger.technology/openai-claw-verify

Standalone verifier for openai-claw attestation sidecars.

openai-claw is an OpenAI-powered CLI agent that — when an attestor identity is configured — writes a signed sidecar <session-id>.attest.json containing a Merkle root over every tool call, assistant reply, and permission decision in the session. This package is the audit-side companion: zero dependencies on OpenAI, on the model, or on claw itself. Auditors install just this.

Install

npm install @smartledger.technology/openai-claw-verify

What it checks

| check | what it proves | |---|---| | format | the sidecar is a recognized version | | leafContinuity | leaves are sequenced 0..N-1 | | merkleRoot | recomputing merkleRoot(hash(leaves)) matches header.merkleRoot — no leaf was added, removed, or modified | | signature | ML-DSA-65 (NIST FIPS-204, post-quantum) signature on canonical-JSON(header) verifies under the embedded public key — header is authentic | | sessionAlignment (optional) | hashing the user_prompt / assistant_text / tool_call payloads found in the session file matches the leaves' payloadHash values — the sidecar is bound to this session, not a forgery | | anchorDigest (when anchored) | the anchor's submitted digest equals sha256(canonical-JSON(header)) — the anchor proves the right root | | mcpProvenance (when MCP used) | every mcp__-prefixed tool call has a preceding mcp_attach + mcp_tool_offered + permission_decision leaf in the sealed sequence |

All hashes are sha256. Canonicalization is JCS-style (RFC 8785): sorted keys, no whitespace, ASCII-safe.

Usage

import fs from "node:fs";
import { verifyAttestation } from "@smartledger.technology/openai-claw-verify";

const attestation = JSON.parse(fs.readFileSync("session-xyz.attest.json", "utf8"));
const sessionMessages = JSON.parse(fs.readFileSync("session-xyz.json", "utf8")).messages;

const report = await verifyAttestation(attestation, { strict: true, sessionMessages });

if (!report.ok) {
  console.error("attestation failed:");
  for (const r of report.reasons) console.error("·", r);
  process.exit(1);
}
console.log("verified.");

report.checks is an object with one boolean per check above; report.reasons is a list of human-readable strings describing any failures.

Why post-quantum

ML-DSA-65 (formerly CRYSTALS-Dilithium, NIST Level 3) is the NIST FIPS-204 standard for digital signatures resistant to attack by a future cryptographically-relevant quantum computer. Choosing it now turns claw's audit log into evidence that remains valid through the classical-quantum transition — a deliberate choice for long-lived compliance, legal, and supply-chain artifacts.

Anchoring (optional)

Sidecars produced by claw attest anchor carry a public-blockchain anchor in the anchor field. The verifier checks that the submitted digest matches the header (so the anchor proves the correct root), surfaces acceptedBy (the calendars that returned a proof), and reports the anchor's submission time. Full Bitcoin-chain verification is intentionally out of scope — point the ots verify standard tool at the calendar responses to chase the chain anchor down. The verifier's job is only to certify the claw side of the cryptography.

Standalone

This package depends only on @smartledger/crypto (for the ML-DSA-65 signature suite) and Node 18's built-in node:crypto for sha256. It does not pull in OpenAI, ink, MCP, or any of claw's many feature dependencies. Total install footprint is small enough to drop into an air-gapped audit machine.

License

MIT — see LICENSE.