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

@vorionsys/proof-plane

v0.1.1

Published

Vorion Proof Plane - Immutable audit trail for AI agent operations

Readme

@vorionsys/proof-plane

Immutable audit trail for AI agent operations. Provides hash-chained, cryptographically signed event logging for compliance, debugging, and trust verification.

Installation

npm install @vorionsys/proof-plane

Quick Start

import { createProofPlane, createInMemoryEventStore } from '@vorionsys/proof-plane';

const store = createInMemoryEventStore();
const proofPlane = createProofPlane({
  signedBy: 'my-service',
  store,
});

// Log events
await proofPlane.logIntentReceived(intent);
await proofPlane.logDecisionMade(decision);

// Query events by correlation ID
const trace = await proofPlane.getTrace(correlationId);

// Verify hash chain integrity
const verification = await proofPlane.verifyChain();
console.log(verification.valid); // true

Features

  • Hash-Chained Events: Every event links to the previous via SHA-256, forming a tamper-evident chain
  • Cryptographic Signatures: Ed25519 event signing with key pair generation and batch verification
  • Pluggable Storage: Abstract ProofEventStore interface - bring your own database
  • Event Emitter: Typed event system with batch emit support
  • Trace Queries: Retrieve full event traces by correlation ID
  • Chain Verification: Verify integrity of the entire hash chain with detailed reports
  • API Routes: Pre-built Express/Fastify route handlers for proof endpoints

Subpath Imports

// Core proof plane
import { createProofPlane, ProofPlane } from '@vorionsys/proof-plane';

// Event stores
import { InMemoryEventStore } from '@vorionsys/proof-plane/events';

// Proof plane internals
import { ProofPlane } from '@vorionsys/proof-plane/proof-plane';

// API route handlers
import { createProofRoutes } from '@vorionsys/proof-plane/api';

API Reference

ProofPlane

const plane = createProofPlane({
  signedBy: 'service-name',   // Identifier for the signing service
  store: eventStore,           // ProofEventStore implementation
});

// Log lifecycle events
await plane.logIntentReceived(intent);
await plane.logDecisionMade(decision);

// Query
const trace = await plane.getTrace(correlationId);
const events = await plane.queryEvents({ limit: 100, offset: 0 });

// Verify chain
const result = await plane.verifyChain();
// { valid: boolean, checkedCount: number, errors: string[] }

Hash Chain

import {
  sha256,
  computeEventHash,
  verifyEventHash,
  verifyChain,
  verifyChainWithDetails,
} from '@vorionsys/proof-plane';

const hash = sha256(data);
const eventHash = computeEventHash(event);
const isValid = verifyEventHash(event);
const chainResult = verifyChainWithDetails(events);

Event Signatures

import {
  generateSigningKeyPair,
  signEvent,
  verifyEventSignature,
  EventSigningService,
} from '@vorionsys/proof-plane';

// Generate keys
const keyPair = await generateSigningKeyPair();

// Sign an event
const signature = await signEvent(event, keyPair.privateKey);

// Verify
const isValid = await verifyEventSignature(event, signature, keyPair.publicKey);

// Or use the service
const signer = createSigningService({ keyPair });
const signed = await signer.sign(event);

Event Store

Implement the ProofEventStore interface for custom storage:

import type { ProofEventStore, EventQueryOptions } from '@vorionsys/proof-plane';

class MyEventStore implements ProofEventStore {
  async append(event) { /* ... */ }
  async getByCorrelationId(id) { /* ... */ }
  async query(options: EventQueryOptions) { /* ... */ }
  async getStats() { /* ... */ }
  async getChain(options) { /* ... */ }
}

API Routes

import { createProofRoutes, registerProofRoutes } from '@vorionsys/proof-plane';

// Fastify
registerProofRoutes(fastifyApp, { store });

// Express
import { createProofExpressRouter } from '@vorionsys/proof-plane';
app.use('/proof', createProofExpressRouter({ store }));

TypeScript

import type {
  ProofPlaneConfig,
  ProofPlaneLogger,
  ProofEventStore,
  EventQueryOptions,
  EventQueryResult,
  EventStats,
  EventEmitterConfig,
  EventListener,
  EmitResult,
  ChainVerificationResult,
  SigningKeyPair,
  SignatureVerificationResult,
} from '@vorionsys/proof-plane';

License

MIT