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

@provara/core

v1.0.0

Published

Self-sovereign cryptographic event logs — TypeScript implementation of Provara Protocol v1.0

Readme

provara-ts

TypeScript implementation of the Provara Protocol v1.0 — tamper-evident, append-only event log using Ed25519 + SHA-256 + RFC 8785 canonical JSON.

Overview

This package is byte-compatible with the Python reference implementation. Events signed by Python can be verified by TypeScript and vice versa.

Modules

| Module | Purpose | |--------|---------| | jcs.ts | RFC 8785 JSON Canonicalization Scheme — custom tokenizer preserving int/float distinction | | crypto.ts | Ed25519 + SHA-256 via Node.js node:crypto | | event.ts | Event creation, signing, and signature verification | | chain.ts | Per-actor causal chain validation | | merkle.ts | Binary SHA-256 Merkle tree | | reducer.ts | Deterministic state reducer (port of SovereignReducerV0) | | vault.ts | Vault read and signature verification |

Requirements

  • Node.js 18+
  • No runtime dependencies

Setup

npm install

Build and Test

npm test        # build + run all tests
npm run build   # compile TypeScript only
npm run typecheck  # type-check without emitting

Cross-implementation compatibility

Python serializes integer-valued floats as 1.0 (not 1). JavaScript's JSON.parse discards this distinction. The custom tokenizer in jcs.ts preserves the original number representation from raw JSON text, making verifyEventSignatureRaw(rawLine, publicKeyB64) produce the same canonical bytes as the Python signer.

import { verifyEventSignatureRaw, loadRawEvents, loadKeysRegistry } from "provara";

const lines    = loadRawEvents("path/to/events.ndjson");
const registry = loadKeysRegistry("path/to/identity/keys.json");

for (const line of lines) {
  const keyId    = /"actor_key_id":"([^"]+)"/.exec(line)![1];
  const pubKey   = registry[keyId].public_key_b64;
  const ok       = verifyEventSignatureRaw(line, pubKey);
  console.log(ok ? "✓" : "✗", keyId);
}

Key ID format

bp1_<first-16-hex-chars-of-SHA-256(raw-32-byte-pubkey)>

Test results

80 tests pass, including:

  • 12 RFC 8785 conformance vectors (including minus_zero via custom tokenizer)
  • 7 Provara protocol test vectors
  • Merkle tree, causal chain, and reducer state machine coverage
  • Cross-implementation verification of the Python-created reference backpack