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

@vorim/verify

v0.4.1

Published

Offline verifier for Vorim audit bundles — no network, no Vorim API call, no telemetry.

Readme

@vorim/verify

Offline verifier for Vorim audit bundles. No network. No Vorim API call. No telemetry.

npm version License: MIT Zero Dependencies Node

vorim-verify checks that a Vorim audit bundle is authentic and untampered, using only Node's built-in cryptography. The verifier never contacts Vorim — every public key needed to verify a signature is embedded in the bundle itself.

Install

npm install -g @vorim/verify

Or run without installing:

npx @vorim/verify bundle.json

Usage

vorim-verify bundle.json              # verify a bundle file
cat bundle.json | vorim-verify -      # read from stdin
vorim-verify --explain bundle.json    # per-event verdicts
vorim-verify --json bundle.json       # machine-readable JSON output

Exit codes: 0 ok, 1 verification failed, 2 CLI / IO error.

Example output:

vorim-verify: OK

bundle_version : vaip-v0
manifest       : OK (sha256:8ff556a7222f...)

events total       : 247
  verified         : 247
  unsigned         : 0
  bad signature    : 0
  unknown agent    : 0
  malformed        : 0

What verification proves

For every event marked verified:

  1. The bundle has not been edited since the API exported it. The bundle's SHA-256 manifest must match the bytes of events + agents exactly.
  2. The agent identified in the event is the one that authored the bytes recorded. The event's ed25519 signature verifies under the agent's public key (embedded in the bundle's agents[]).
  3. The bytes signed are exactly the bytes recorded. Tampering with any of event_type, action, resource, input_hash, output_hash, or result invalidates the signature.

What verification does NOT prove

Be honest about the limits:

  • It does not prove the agent's identity is who it claims to be. That requires a separate trust anchor (the Vorim trust API, an IdP, a public key directory). The verifier confirms the binding between the signature and the public key in the bundle.
  • It does not prove the bundle is recent. Add a timestamp authority or an externally-witnessed hash chain if freshness matters.
  • It does not detect missing events. A bundle with N signed events is a true record of those N events. Whether other events were dropped before export is outside the verifier's scope. Pair with the Vorim audit_events count for that.
  • unsigned and unknown_agent events are reported but do not fail the bundle. Operator's call: a fresh bundle from a v3.1+ SDK should be 100% signed; an older bundle may not be. The CLI surfaces the count; the operator decides what the threshold is.

Bundle format

The verifier expects the JSON shape produced by POST /v1/audit/export on Vorim API (bundle_version: "vaip-v0"). Minimum required:

{
  "bundle_version": "vaip-v0",
  "events": [
    {
      "event_id": "evt_...",
      "agent_id_str": "agid_...",
      "event_type": "tool_call",
      "action": "transfer_funds",
      "resource": "acct-1",
      "input_hash": null,
      "output_hash": null,
      "result": "success",
      "signature": "ed25519:..."
    }
  ],
  "agents": [
    { "agent_id": "agid_...", "public_key": "-----BEGIN PUBLIC KEY-----\n..." }
  ],
  "manifest": "sha256:..."
}

Canonical bytes signed

event_type|action|resource|input_hash|output_hash|result

Pipe-joined, empty string for missing optional fields. The verifier exposes canonicalPayloadV0() so you can reproduce the bytes yourself.

Programmatic use

import { verifyBundle } from '@vorim/verify';

const bundle = JSON.parse(fs.readFileSync('bundle.json', 'utf-8'));
const report = verifyBundle(bundle);

if (!report.ok) {
  console.error('bundle failed verification', report);
  process.exit(1);
}

Returns a VerifyReport with per-event verdicts and aggregate counts.

Auditing this code

The verifier is small and intentionally has no runtime dependencies. To audit it from source:

git clone https://github.com/Vorim-AI-Labs/vorim-protocol
cd vorim-protocol/packages/verify
npm install
npm test       # 23 unit tests
npm run build  # produces dist/cli.js

Read src/index.ts for the verification logic (≈220 lines) and src/cli.ts for the CLI shim.

License

MIT — see LICENSE.