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

provenrail

v0.2.30

Published

Verifiable audit trail for AI agents, for TypeScript and Node. Capture every model and tool call your agent makes, hash-chain and sign it off-box, and verify it with the same open-source verifiers as the Python SDK.

Readme

Provenrail for TypeScript and Node

The verifiable audit trail for AI agents, for the TypeScript ecosystem. Capture every model and tool call your agent makes, hash-chain and sign it off-box, and verify it with the same open-source verifiers as the Python SDK. A run recorded in TypeScript is byte-for-byte compatible with one recorded in Python: the same sink accepts it and the same two verifiers (pr verify and the in-browser verify.js) prove it, trusting neither the agent nor the vendor.

Observability you can take to court, now in your TypeScript stack. Drop-in capture for the OpenAI and Anthropic JS clients; record any other provider or framework (the Vercel AI SDK, Mastra, LangChain.js, or a custom loop) with one line.

Want the guardrails rather than the SDK? If you use Claude Code, /plugin marketplace add pofky/provenrail then /plugin install provenrail-guard@provenrail blocks rm -rf, terraform destroy, git push --force, DROP TABLE and leaked keys before they run, and signs each decision into the same chain. See https://provenrail.com/claude-code-guardrails.

Install

npm install provenrail

Requires Node 20+ (uses WebCrypto Ed25519). Works in modern browsers too.

Quickstart

import { record } from "provenrail";

// PROVENRAIL_URL (and an account key, or a stream + write token) come from the environment,
// or pass them explicitly. With just an endpoint, a stream is auto-provisioned.
await record("billing-agent", async (pr) => {
  const out = await callTheModel(prompt);
  await pr.recordModelCall("openai", "gpt-5", { prompt }, out, {
    usage: { input: out.usage?.prompt_tokens, output: out.usage?.completion_tokens },
  });
  await pr.recordToolCall("charge", { amount: 340 }, { ok: true });
  await pr.recordDecision("charge approved by policy");
});

That session is now signed, hash-chained, pushed off-box, and independently verifiable.

Auto-instrument the OpenAI / Anthropic clients

import OpenAI from "openai";
import { makeRecorder, instrumentOpenAI } from "provenrail";

const pr = await makeRecorder("support-agent");
const openai = instrumentOpenAI(new OpenAI(), pr);

await pr.session({ agent: "support-agent" }, async () => {
  // every openai.chat.completions.create call is now recorded automatically
  await openai.chat.completions.create({ model: "gpt-5", messages });
});

What it records, and what it does not

By default the SDK is hash-not-content: inputs and outputs are SHA-256 hashed, not stored, so PII stays out of the sink. Pass { captureContent: true } to store cleartext.

Honest scope, identical to the Python SDK: this runs inside the agent process, so a hostile agent can refuse to call it. It cannot make capture complete. Its job is to make whatever IS captured tamper-evident and independently verifiable the moment it reaches the off-box sink.

Verify a run

Any run recorded with this SDK verifies with the standard tools, trusting neither the agent nor the sink:

pip install provenrail
pr verify bundle.json

or in the browser at /verify. Both verifiers run the same algorithm and are tested against a frozen public conformance-vector suite, and against runs produced by THIS SDK (tests/test_js_sdk.py).

Versioning

This package tracks the Python package version exactly. [email protected] on npm and provenrail==0.2.30 on PyPI are the same release of the same record format, so a version you can read off one registry tells you what the other one speaks. Releases before 0.2.30 used an independent number line for this package (0.1.x); the record format did not change across that jump.

License

MIT.