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

@tempus1/x402-verify-cli

v0.1.4

Published

Standalone verifier for x402 attestation receipts. No API key, no network account, no trust in the agent that produced the receipt.

Readme

@tempus1/x402-verify-cli

Standalone verifier for x402 attestation receipts.

npx @tempus1/x402-verify-cli verify ./receipt.json
echo $?   # 0 = valid

Why a separate package

The point of a receipt is that a third party can check it without trusting the agent that produced it. Someone handing a receipt to an auditor should be able to say: this package only reads. It cannot write files, cannot pay for anything, cannot sign anything, and its entire network surface is one unauthenticated GET.

No API key. No Rubric account. No cooperation from the seller or the buyer.

Exit codes

| exit | meaning | |---|---| | 0 | valid | | 1 | hash mismatch — the record does not hash to its claimed leaf | | 2 | proof mismatch — the proof does not reach the anchored root | | 3 | not anchored — locally valid, but not on the ledger yet | | 4 | fetch failed — the public verify endpoint could not be reached |

3 and 4 are deliberately distinct from 1 and 2. A batch that has not flushed, and a verifier you cannot reach, are not the same thing as a forged receipt.

Options

--offline          hash and inclusion proof only; no network
--verify-url <url> override the endpoint recorded in the receipt
--timeout <ms>     anchor fetch timeout (default 15000)
--json             machine-readable output
--quiet            suppress human-readable output

Input may be a single receipt, a JSON array, or JSONL. With several, the exit code is the worst result across all of them.

What it checks

  1. sha256(jcs(callRecord)) equals the claimed leafHash. Pure local computation; catches any mutation of any byte of the record.
  2. Walking proof from that leaf reproduces root. Also purely local.
  3. GET /v1/verify/{attestationId} reports anchored and carries the same root.

Steps 1 and 2 run with --offline and need nothing but the file.

Library use

import { verifyReceipt, VERIFY_EXIT } from '@tempus1/x402-verify-cli';

const result = await verifyReceipt(receipt);
if (!result.ok) console.error(result.code, result.reason);

Also re-exports the primitives, so a verifier can be reimplemented against them in another language and checked for agreement: jcs, sha256Jcs, buildMerkleTree, computeRootFromProof, hashLeaf, hashNode, MERKLE_PARAMS.