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

@choiceproof/cli

v2.2.1

Published

CLI for offline verification of enterprise-held receipts against portable ChoiceProof commitments.

Downloads

152

Readme

@choiceproof/cli

The ChoiceProof CLI independently verifies enterprise-held receipts and Evidence v2 artifacts. Offline verification does not require a ChoiceProof API or a ChoiceProof-controlled RPC endpoint.

Release status

The stable 2.2.1 release is published on npm's latest channel. Run the exact version with:

pnpm dlx @choiceproof/[email protected] --help

The package is ESM-only and requires Node.js 20 or newer.

The active current-product commands are:

  • commitment verify for enterprise-local receipt/commitment verification;
  • evidence verify for explicit local Evidence v2 artifacts and trust policy;
  • evidence gateway bundle for public checkpoint-bundle readback;
  • evidence gateway publish for guarded public-only artifact publication;
  • evidence finality collect-base, verify-base, and attest-base for explicit Base RPC observation, offline transcript verification, and signed external-finality statements.

Policy, quote, receipt-bundle, challenge, and demo commands remain historical prototype tooling; they are not the active commitment or Evidence v2 flow.

Build

Prerequisites are Node.js 20 or newer and Corepack. From the repository root:

corepack enable
corepack pnpm install --frozen-lockfile
corepack pnpm --filter @choiceproof/sdk build
corepack pnpm --filter @choiceproof/cli build
node packages/cli/dist/index.js --help

Run the Evidence v2 offline quickstart

From the repository root, the SDK example builds an enterprise-local event and envelope, signed checkpoint, inclusion proof, explicit trust policy, and offline verification report:

corepack pnpm quickstart:evidence-v2

The default run makes no network request and writes no application file. See docs/EVIDENCE_V2_QUICKSTART.md for the fixed vector and the separately guarded public Gateway publish/readback mode. Use evidence verify --artifacts <file> --policy <file> when verifying your own persisted local artifact set.

Create local receipt-commitment quickstart artifacts

The SDK example generates an in-memory temporary signer, a private local receipt, and a separate public commitment:

git check-ignore -q .choiceproof/quickstart/receipt.private.json
corepack pnpm exec tsx packages/sdk/examples/receipt-commitment.ts

Do not continue if git check-ignore fails. The complete receipt must not be committed or uploaded.

Offline verification

node packages/cli/dist/index.js commitment verify \
  --receipt .choiceproof/quickstart/receipt.private.json \
  --commitment .choiceproof/quickstart/commitment.public.json

Without --rpc, the command performs no network request. It validates the commitment envelope, recomputes the canonical Keccak-256 hashes, verifies the enterprise EIP-712 signature, and reports anchor.status = "not_requested".

The JSON report separates core cryptographic validity from optional chain readback. Exit status is:

  • 0 when every required check passes;
  • 1 for malformed input, hash or signature failure, an invalid domain, an anchor mismatch, or an unmet --require-anchor condition.

Optional verifier-selected Base Sepolia readback

The verifier may select an RPC directly:

node packages/cli/dist/index.js commitment verify \
  --receipt .choiceproof/quickstart/receipt.private.json \
  --commitment .choiceproof/quickstart/commitment.public.json \
  --rpc https://your-base-sepolia-rpc.example

Require a confirmed anchor as part of the exit status only when an RPC is also provided:

node packages/cli/dist/index.js commitment verify \
  --receipt .choiceproof/quickstart/receipt.private.json \
  --commitment .choiceproof/quickstart/commitment.public.json \
  --rpc https://your-base-sepolia-rpc.example \
  --require-anchor

The complete receipt stays on the verifier's machine. Only the public hash key is used for direct contract readback. Base Sepolia is a testnet and does not constitute a production-mainnet guarantee.

License

Apache-2.0.