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

@val-protocol/chain-verifier-cli

v0.2.0

Published

CLI wrapper for @val-protocol/chain-verifier — one-command offline verification of a VAL audit.export NDJSON chain, from a local file or directly from a VAL operator backend via the MCP audit.export tool.

Downloads

54

Readme

@val-protocol/chain-verifier-cli — val-verify

CLI wrapper for @val-protocol/chain-verifier. Verifies a VAL audit.export NDJSON chain from a local file, or directly from a VAL operator backend over MCP — offline-replayable, no trust in the operator at verification time.

Install

npm install -g @val-protocol/chain-verifier-cli

Modes

File mode

Reads a local NDJSON file produced by an operator's audit.export tool (or any chain export conforming to the VAL wire format). Verifies row-by-row.

val-verify --export=./chain.ndjson

URL mode

POSTs tools/call against a running VAL operator backend's MCP endpoint, paginates internally, verifies inline. No file is written to disk.

val-verify \
  --audit-export-url=https://backend.example.com/api/mcp/records \
  --bearer=$OAUTH_TOKEN \
  --dataroom-id=e33143e3-7a34-42b6-98f6-e2576d988de4

The bearer token must carry the operator's audit-export scope (e.g. agent:audit.read), and the identity behind the token must hold export access on the target workspace per the operator's authorization model.

Options

| Flag | Required for | Description | |---|---|---| | --export=<path> | file mode | Local NDJSON file path. | | --audit-export-url=<url> | URL mode | MCP endpoint URL of a running VAL operator backend. | | --bearer=<token> | URL mode | OAuth access token with the operator's audit-export scope. | | --dataroom-id=<uuid> | URL mode | Workspace to export and verify. | | --limit=N | optional | Page size for URL mode (default 100, max 1000). | | --quiet, -q | optional | Print only FAIL lines + final summary. | | --help, -h | optional | Show usage. |

Output

Each row produces one line:

seq=1   event=dataroom.created                     PASS
seq=2   event=governance.context_resolved          PASS
seq=3   event=participant.added                    FAIL
  reason: chain_hash mismatch
  expected: ef7df62bebfb36b34ae1057477f008b0a8fd3d47c38e10a6c0711df995a56c22
  observed: 7334009b343bae6cd060d69296de5c36fd70890c6f4dca11c046fbe89b7b5f19
…
── 119/120 PASS, 1 FAIL ──

Exit code

  • 0 — all rows verified.
  • 1 — at least one row failed verification.
  • 2 — argument error (missing required flag).
  • 3 — runtime error (network failure, malformed input).

What it verifies

Same construction as @val-protocol/chain-verifier. The CLI is a thin wrapper around the same SHA-256 preimage construction specified by the VAL wire format (§4). No proprietary algorithm; an auditor who distrusts the operator can implement their own verifier in any language against the spec and cross-check.

For the full VAL pass suite (lineage, scope, grounding, delegator authority — §7.2 passes 2/3/5) over a parsed slice, use the library's verifyValChain directly; the CLI covers the integrity layer (pass 1) row-by-row with per-row diagnostics.

License

Apache-2.0. See LICENSE.