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

@inflexa-ai/prov-kernel

v0.5.1

Published

Inflexa provenance format kernel — the PROV dialect document model, the lineage read model, chain-hash + Ed25519 signing, and the signed-attestation schema.

Downloads

284

Readme

@inflexa-ai/prov-kernel

@inflexa-ai/prov-kernel is the Inflexa provenance format kernel. It carries the Inflexa PROV dialect: the document model (QName derivation, unify options, an injectable digest, and the appendLifecycleAction extension primitive), the lineage read model (deriveLineageModel, computeLineage, computeReachable, findFileEntity), the chain-hash and Ed25519 sign/verify primitives, the signed-attestation schema, and the actor and ref value types that the events carry. SPEC.md gives the exact wire format, sufficient for an independent implementation.

The package is a kernel, not a recorder. The three-layer rule divides the work:

  • The harness observes. It reports facts: a run started, a command ran, a file appeared.
  • The kernel represents. It turns each fact into PROV statements with deterministic identifiers, and it signs and verifies the result. The core event union (ProvEvent) and its apply function (applyProvEvent) live here: the event-to-statements mapping determines the document bytes, thus it is format.
  • Hosts decide. Each host owns its recorder lifecycle, its emission policy, its storage, and its key custody. Core statements are produced only through applyProvEvent; a host maps its own extension events onto appendLifecycleAction, the QName derivations, and tsprov interop.

Thus the package deliberately does NOT contain a recorder (sink, flush, queue, CAS) or signer wiring. Those are host-owned.

The package runs in browser and server runtimes. No module imports a node:-prefixed module. The digest is the synchronous SHA-256 from the audited @noble/hashes package. The signature primitives use the Web Crypto API (globalThis.crypto). Thus a browser bundler resolves every import.

Use

npm install @inflexa-ai/prov-kernel

npm run build   # tsc -p tsconfig.json — emit dist/ from src/
bun test        # run the test suite (Node is the runtime; bun runs tests only)
import { createProvDocumentModel, applyProvEvent, PROV_UNIFY_OPTIONS, createKeypairSigner, buildAttestation, verifyAttestation } from "@inflexa-ai/prov-kernel";

const model = createProvDocumentModel(); // or inject a historical digest
const doc = model.freshDocument({ analysisId: "a1" });
applyProvEvent(model, doc, { type: "run_started", analysisId: "a1", actor, run: { runId: "r1", startedAtMs } });
const json = doc.unified(PROV_UNIFY_OPTIONS).serialize("json");

The digest that derives every QName suffix is injectable, because it is identity-load-bearing: a host with existing documents must inject its historical digest function, or its identifier space forks. The default digest is canonical for new documents.

License

Apache-2.0. See LICENSE and NOTICE.