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

@uvrn/core

v4.0.0

Published

UVRN engine core — deterministic protocol infrastructure

Readme

@uvrn/core

UVRN Delta Engine core — deterministic multi-source comparison and verification. Runs the Delta formula on bundles, produces canonical receipts with SHA-256 hashes, and validates or verifies bundles and receipts.

Package provides: runDeltaEngine, validateBundle, verifyReceipt, canonicalSerialize, hashReceipt, buildMasterReceipt, verifyMasterReceipt; types (DeltaBundle, DeltaReceipt, Measurement, MasterReceipt, etc.). Pure logic — no I/O, no signer, no storage.

You provide: Bundle data (claim, threshold, at least two data specs with metrics). No connectors or keys required for basic use.

Install

npm install @uvrn/core

Or with pnpm:

pnpm add @uvrn/core

Usage

  1. Define a bundle: a claim, a threshold, and at least two data specs with metrics.
  2. Call runDeltaEngine(bundle) to get a receipt (outcome, delta, hash).
  3. Use validateBundle and verifyReceipt for validation and integrity checks.
import { runDeltaEngine, validateBundle, verifyReceipt } from '@uvrn/core';

const bundle = {
  bundleId: 'example-001',
  claim: 'Metrics from source-a and source-b should agree within 10%.',
  thresholdPct: 0.10,
  dataSpecs: [
    {
      id: 'source-a',
      label: 'Source A',
      sourceKind: 'report',
      originDocIds: ['doc-a-1'],
      metrics: [{ key: 'count', value: 100 }],
    },
    {
      id: 'source-b',
      label: 'Source B',
      sourceKind: 'report',
      originDocIds: ['doc-b-1'],
      metrics: [{ key: 'count', value: 105 }],
    },
  ],
};

const receipt = runDeltaEngine(bundle);
console.log(receipt.outcome);   // 'consensus' | 'indeterminate'
console.log(receipt.deltaFinal); // max delta across metrics
console.log(receipt.hash);      // SHA-256 of canonical receipt

Use cases

  • Compare two or more data sources — Run the Delta formula on metrics (e.g. report A vs report B) and get a deterministic consensus or indeterminate outcome.
  • Produce verifiable receipts — Every receipt has a canonical hash; use verifyReceipt(receipt) to recompute and check integrity.
  • Validate before running — Use validateBundle(bundle) to check structure and threshold without executing the engine.
  • Integrate into pipelines — Use as a library in CI, ETL, or any service that needs deterministic comparison and proof.

Measurement contract

@uvrn/core exports the shared Measurement contract types so hosts and packages can describe relationship checks over evidence in one stable shape. Core owns the type boundary only: it does not run agree/disagree/conflict/potential logic, register measurement modules, fetch sources, or store results.

Measurement implementations live in packages such as @uvrn/measure or in host applications. A custom measurement implements Measurement.evaluate(input) and returns a MeasurementResult with a short factual explanation and evidence references.

Master receipt

MasterReceipt is an additive envelope over an existing DeltaReceipt. It records the base receipt, measurement results, and node status records for every participating source or node. A node that is off or unavailable is recorded directly in nodes[]; missing capacity is not hidden.

buildMasterReceipt() computes a separate masterHash from the envelope version, claim, base.hash, measurements, nodes, and timestamp. The full base receipt does not enter the master hash, and hashReceipt() / verifyReceipt() behavior for existing DeltaReceipt values is unchanged.

verifyMasterReceipt() delegates base verification to verifyReceipt(base) and then recomputes the additive master hash.

Links

Open source: Source code and issues: GitHub (uvrn-packages). Project landing: UVRN.

  • Repository — monorepo (this package: uvrn-core)
  • @uvrn/sdk — programmatic client (CLI/HTTP/local) built on this core
  • @uvrn/cli — run the engine from the command line