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

v1.0.0

Published

Canonization layer for the UVRN protocol — lock, sign, and store verification receipts

Downloads

14

Readme

@uvrn/canon

The canonization layer for the UVRN protocol. The final step in the TVC loop: Test → Validate → Canonize.

Part of the UVRN ecosystem.


What canonization means

A drift receipt is a point-in-time score. It can be updated, superseded, or forgotten.

A canon receipt is permanent. It says:

"At this moment, this claim was verified to this score, by these sources, witnessed by this signature — and that fact is now locked forever."

Nobody can change it. Anyone can verify it. The public key is embedded in the receipt itself.

Package provides: Canon, NodeSigner, MockSigner; stores (R2Store, SupabaseStore, IpfsStore, MultiStore, MockStore); qualify, suggest, canonize, verify. DRVC3 v1.01 receipt shape; verification from embedded public key.

You provide: At least one store (R2 bucket, Supabase client, or IPFS client); a signer (e.g. NodeSigner with private key); canonizerId. Drift receipt and snapshot to canonize (e.g. from @uvrn/agent or manual).


Install

npm install @uvrn/canon @uvrn/drift @uvrn/core

Quick start

import { Canon, NodeSigner, MultiStore, R2Store, SupabaseStore } from '@uvrn/canon'

const canon = new Canon({
  stores: [
    new MultiStore([
      new R2Store(env.R2_BUCKET),
      new SupabaseStore(supabaseClient),
    ])
  ],
  signer:      new NodeSigner(process.env.UVRN_PRIVATE_KEY),
  canonizerId: 'uvrn-agent-prod-01',
  autoSuggest: {
    enabled:         true,
    consecutiveRuns: 3,      // 3 stable runs → suggest
    minScore:        85,     // must be above 85
    suggestionTtlMs: 24 * 60 * 60 * 1000,  // suggestion expires in 24h
  },
})

The two-step flow

Step 1 — Agent records runs, Canon auto-suggests

// In @uvrn/agent — after each verification run:
const suggestion = await canon.recordRun(claimId, snapshot)

if (suggestion) {
  await notify({
    message: `Claim ${claimId} ready to canonize`,
    score:   suggestion.qualifying_score,
    id:      suggestion.suggestion_id,
  })
}

Step 2 — Human confirms, Canon executes

const result = await canon.canonize({
  driftReceipt:  lastReceipt,
  finalSnapshot: lastSnapshot,
  trigger: {
    type:          'auto_suggest',
    confirmed_by:  'shawn',
    suggestion_id: suggestion.suggestion_id,
  },
  suggestionId: suggestion.suggestion_id,
})

console.log(result.receipt.canon_id)
console.log(result.receipt.content_hash)
console.log(result.verified)

Stores

| Store | Use | |---|---| | R2Store(bucket) | Cloudflare R2 — fast, cheap, CF Workers native | | SupabaseStore(client) | Queryable — filter by score, date, claim | | IpfsStore(client) | Content-addressed — CID IS the checksum | | MultiStore([...]) | Fan-out to all simultaneously | | MockStore | Testing — in-memory, no network |


Verify any receipt

Anyone can verify a canon receipt without trusting the issuer:

const isValid = await canon.verify(receipt)

Manual canonization

const result = await canon.canonize({
  driftReceipt:  receipt,
  finalSnapshot: snapshot,
  trigger: {
    type:         'manual',
    confirmed_by: 'shawn',
    reason:       'auditor requested permanent record',
  },
})

License

MIT · uvrn.org