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

@piposlabs/praxa-verify

v0.2.0

Published

Offline verifier for Praxa audit-trail hash chains. Zero dependencies. Verify your AI compliance evidence without trusting Praxa's servers.

Readme

@piposlabs/praxa-verify

npm version license

Offline verifier for Praxa audit-trail hash chains. Zero runtime dependencies. Single file. ~150 lines of audited code.

If you use Praxa to log your AI agent compliance evidence, this is the tool that lets you prove Praxa never tampered with your audit trail — without trusting Praxa's servers. Export your chain, run praxa-verify, get an independent cryptographic confirmation.

Why this exists

Compliance auditors (SOC 2, EU AI Act, NIST AI RMF) increasingly want evidence that AI agent decisions are immutable. Praxa achieves this via a SHA-256 hash chain: every event references the hash of the prior event, so any tampering anywhere in the chain breaks all hashes from that point forward.

The chain is only as trustworthy as the code that verifies it. Rather than ask auditors to take our word for it, we publish the verifier as MIT-licensed zero-dependency code. Read it. Audit it. Run it on your own exported events.

Install

npm install -g @piposlabs/praxa-verify
# or invoke without install
npx @piposlabs/praxa-verify chain-export.json

Usage

CLI

# Export your chain from Praxa (https://praxa.piposlab.com/dashboard/agents/<id>/export)
# then verify locally:
praxa-verify chain-export.json

# Pipe from stdin
curl -H "Authorization: Bearer $PRAXA_KEY" \
  https://praxa.piposlab.com/api/v1/agents/<id>/export \
  | praxa-verify --stdin

Exit codes:

| Code | Meaning | | ---- | -------------------------------- | | 0 | Chain verified | | 1 | Tampering detected | | 2 | Usage / file error | | 3 | JSON parse error or wrong shape |

Library

import { verifyChain } from "@piposlabs/praxa-verify";

const result = verifyChain(events);
if (result.ok) {
  console.log(`Chain OK — ${result.chain_length} events, head=${result.head_hash}`);
} else {
  console.error(`Tampered at position ${result.tampered_position}: ${result.reason}`);
  process.exit(1);
}

Algorithm (v1, locked 2026-05-19)

For each event in chronological order:

entry_hash = SHA-256( canonicalize({
  payload: { ...event_without_previous_hash_and_entry_hash },
  previous_hash: <parent_entry_hash>  or  ""  at chain root
}) )

Where canonicalize is deterministic JSON serialization with:

  • Object keys sorted alphabetically at every nesting level
  • Arrays preserved in insertion order
  • undefined values dropped, null values kept literal

A chain is valid iff:

  1. Position 0 has chain_position=0 and previous_hash=null|""
  2. Every position N's previous_hash equals position N-1's entry_hash
  3. Every position N's entry_hash matches the recomputation from its payload

Known-answer test vector

If your build of praxa-verify doesn't reproduce this exact hash, something is wrong — either with your install or with this code. Don't trust it.

Input payload:
{
  "occurred_at": "2026-01-01T00:00:00.000Z",
  "model": "claude-test",
  "input_payload": { "a": 1, "b": 2 },
  "output_payload": { "ok": true },
  "triggered_by": "test",
  "downstream_effects": [],
  "chain_position": 0
}
previous_hash: null

Output entry_hash:
376f167cc23d397e93d7598cd259d4fc831ef31013eba59ee4cfd63417cb1b1b

Run praxa-verify fixtures/known-answer.json after install to confirm this verifier reproduces the exact same hash on your machine.

What about Praxa itself?

praxa-verify is the verifier. The full Praxa platform (auth, billing, dashboards, retention, webhooks) lives at praxa.piposlab.com — that part is closed source. The hash chain itself is described in our public algorithm spec and verified by the code in this package.

License

MIT — see LICENSE.

Pipo Lab LLC · [email protected]