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

plumb-line-provenance

v0.11.0

Published

Conservative provenance/confidence/lineage envelope with a taint-propagation combination law. Mock or low-confidence data cannot launder itself clean.

Readme

plumb-line-provenance (JavaScript)

A conservative provenance / confidence / lineage envelope with a taint-propagation combination law: once any input is mock or low-confidence, every value derived from it inherits that taint automatically — there is no escape hatch that silently clears the flag.

import { mark, derive, metaOf, auditMeta } from "plumb-line-provenance";

const base  = mark(1000, { source: "real", confidence: "high" });
const rate  = mark(1.25, { source: "mock", confidence: "low" });
const total = derive([base, rate], (a, r) => a * r);

total.derivedFromMock; // true  — inherited from rate, cannot be cleared
total.confidence;      // 'low' — only as certain as the weakest input
auditMeta(metaOf(total)); // []  — internally consistent

You can also copy the .mjs files directly into a project and import them relatively; both styles work.

HTTP ingestion adapter (plumb-line-provenance/http)

Auto-tag fetch responses at ingestion. Native fetch — no dependency (requires Node ≥ 18 or a browser).

import { tagResponse, taggedFetch } from "plumb-line-provenance/http";
import { derive } from "plumb-line-provenance";

const resp = await fetch(url);
const data = tagResponse(resp);               // marked by status/cache
const body = derive([data], (r) => r.json()); // extract; taint propagates

const data2 = await taggedFetch(url);         // fetch + tag in one call

Mapping (source = origin, confidence = freshness): 2xx fresh → real/high, 2xx cached or 304 → real/medium, 4xx/5xx → unavailable/none. Cache is best-effort (Age > 0, X-Cache: HIT, 304) and lowers only confidence. The tagger never emits fallback.

Golden baseline (plumb-line-provenance/baseline)

Pin a derived value with its envelope as a golden record, then refuse silent drift: because lineage travelled with the value, a drift finding names which field moved, not just that the number did. Its own subpath — it reads and writes files, so the main entry stays free of node:fs.

import { assertBaseline, update } from "plumb-line-provenance/baseline";

update("fx-rate", priced, { because: "initial pricing baseline", dir });
assertBaseline("fx-rate", priced, { dir }); // throws, attributed, on drift

Accepting a new state needs a non-empty because, stored in the record's append-only history. Inspect the files with node baseline-cli.mjs <list|show <name>|validate> [--dir D] (read-only: only running code carries the envelope, so it cannot check or update).

Compared: each lineage step's trust fields and of, the lineage length, the top-level trust fields and basis, then the value. basis counts as drift on its own — a transform label moving from @v3 to @v4 is reported even when the value did not move.

Three drift classes are not-implemented: cross-step causality (the finding names the field that moved, not the earlier step that caused it), structural diffing inside a nested value (reported as "value moved"), and float tolerance (comparison is exact — no epsilon).

  • Specification: SPEC.md (envelope schema version 2)
  • Model, law, examples: README.md
  • License: Apache-2.0

Python parity package: plumb-line-provenance on PyPI.