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/receipt

v4.0.0

Published

The canonical UVRN receipt object model: NetworkReceipt envelope, JCS canonicalization, Ed25519 signing, topics, vocabulary, and UI-agnostic human rendering

Downloads

206

Readme

@uvrn/receipt

The canonical UVRN receipt object model. One module defines what a receipt is; every surface — packages, MCP tools, the uvrn.org portal, uvrn-worker, the desktop dashboard — imports it. UI/UX can be rebuilt at will without touching receipt identity.

Zero UI dependencies. Zero external runtime dependencies. Ed25519 via Node crypto; validation is dependency-free (a standard JSON Schema document is exported for ajv users).

Implements SPEC/uvrn-receipt-v1.md and SPEC/uvrn-signing-v1.md (this monorepo). Conformance is proven against the golden vectors in SPEC/vectors/.

What's inside

| Module | Exports | |---|---| | types/ | NetworkReceipt envelope, Topic, ReceiptSignature, HumanView | | canonical/ | canonicalize() (RFC 8785 JCS), assembleHashInput(), assembleLegacyHashInput() — the single canonicalization implementation for the whole ecosystem (also importable as @uvrn/receipt/canonical, environment-pure: no Node APIs) | | schema/ | NETWORK_RECEIPT_SCHEMA (JSON Schema) + dep-free validateNetworkReceipt() | | sign/ | generateReceiptKeyPair(), signReceipt(), verifySignature(), verifyReceiptFull(), computeNetworkReceiptHash() | | topics/ | starter taxonomy (markets, products, news, research, claims + open custom/*), normalizeTopic() — normalizes, never rejects | | vocabulary/ | the Layer D human language: verdict map, framing profiles, WHY_DIVERGENCE_WINS, score plain-meanings, buildMasterNarrative() (also @uvrn/receipt/vocabulary) | | envelope/ | wrapDeltaReceipt(), wrapMasterReceipt(), claimIdFromText() | | render/ | toHumanView() — structured, UI-agnostic human representation |

Quickstart

import { hashReceipt, verifyReceipt } from '@uvrn/core';
import {
  wrapDeltaReceipt, signReceipt, verifyReceiptFull,
  generateReceiptKeyPair, toHumanView,
} from '@uvrn/receipt';

// 1. An existing v3 DeltaReceipt stays untouched and independently verifiable.
const delta = /* DeltaReceipt from the engine */;

// 2. Wrap it in the network envelope (hash covers the declared field list — additive-safe).
const receipt = wrapDeltaReceipt(delta, {
  claim: 'BTC traded above 100k on 2026-06-09',
  source: 'my-host', action: 'delta.consensus',
  topic: 'markets/crypto/BTC',
});

// 3. Sign it (Ed25519). The signature signs the hash; it never changes the hash.
const keys = generateReceiptKeyPair();
const signed = signReceipt(receipt, { privateKey: keys.privateKey, publicKeyRef: 'my-pk-2026-v1' });

// 4. Verify: integrity + signature. Honest vocabulary — integrity alone is
//    "integrity-checked"; only the signed + recomputable path is "verified".
const result = verifyReceiptFull(signed, { keys: { 'my-pk-2026-v1': keys.publicKey } });
// → { verified: true, integrityOk: true, signatureOk: true, signed: true }

// 5. Render for humans — any UI (React, CLI, plain HTML) can present this.
const view = toHumanView(signed);
// → { headline, verdictLabel: 'Sources align', verdictTone: 'aligned', sources, gaps, provenance, ... }

Integrity-checked vs signed vs verifiable

  • verifyReceipt() (@uvrn/core) and computeNetworkReceiptHash() recompute checksums — integrity-checked. Tampering is detectable; origin is not proven.
  • A receipt with a signature whose Ed25519 check passes is signed.
  • Verifiable is reserved for both together: verifyReceiptFull() returns verified: true only when the hash recomputes and the signature verifies. An unsigned receipt can never be "verified", and this package will not say otherwise.

Design rules (enforced)

  • payload is never reshaped per surface; the protocol object travels byte-for-byte.
  • The hash covers a declared field list (NETWORK_RECEIPT_HASH_FIELDS); unknown envelope fields never break verifiers. Hash-covered additions require a new schemaVersion.
  • Existing v3 receipts and verifyReceipt() stay byte-for-byte valid (additive-only rule).
  • Gaps are recorded, not hidden: unavailable sources, missing evidence, and unsigned provenance all appear explicitly in toHumanView() output.

Peer dependencies

@uvrn/core (types + the frozen v3 hash path). Nothing else.