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

@infrix/proof-receipt

v0.1.0

Published

Verify an Infrix portable proof and render its receipt — in the browser or Node, with no node trust.

Readme

@infrix/proof-receipt

Verify an Infrix portable proof and render its receipt — in the browser or in Node — without trusting any node.

Install (30 seconds)

npm install @infrix/proof-receipt

One working snippet

import { verifyProof, renderReceipt } from '@infrix/proof-receipt';

const bundle = await (await fetch('/my-proof.infrix.json')).json();

const receipt = await verifyProof(bundle);     // offline cryptographic check
renderReceipt(receipt, document.getElementById('proof')); // browser only

Node:

import { verifyProof, renderReceiptText } from '@infrix/proof-receipt';
const receipt = await verifyProof(bundle);
console.log(renderReceiptText(receipt));

Expected output

verifyProof returns a canonical ProofReceipt:

{
  "version": "1",
  "status": "verified",
  "summary": "Verified without trusting the Infrix node.",
  "assurance": {
    "proofLevel": "L3",
    "label": "L3/G2",
    "nodeTrusted": false,
    "l0Verified": false,
    "replayVerified": true,
    "witnessQuorumVerified": false
  },
  "warnings": []
}

Proof & assurance

The receipt answers four questions: what was verified, why it matters, did it require trusting a node (always nodeTrusted: false), and how far the assurance goes. The card keeps raw hashes inside an expandable section so the headline stays readable.

Offline vs live

This package verifies offline: it checks the proof's cryptographic structure (exportHash, inclusion proofs, plan/outcome digests, policy decisions, …) entirely in your runtime — no server, no node trust. An offline verdict caps at L3.

Reaching L4 means confirming the proof's anchor against Accumulate L0, which the in-language verifier cannot do alone. Pass { l0 } to label the network and get the exact command:

const receipt = await verifyProof(bundle, { l0: 'kermit' });
// receipt.assurance.l0Verified === false  (never inflated)
// receipt.verification.command === 'infrix verify <bundle>.infrix.json --l0 kermit'
// receipt.warnings includes an "offline verification only" note

Error handling

verifyProof never throws on an invalid proof — it returns a receipt with status: "failed" (or "partial") and the failing checks surfaced as warnings. It throws a TypeError only when you pass something that is not a parsed bundle object. Use validateReceipt(receipt) to fail closed: it returns a list of violations (empty means valid) and rejects any receipt that overclaims.

API

  • verifyProof(bundle, { l0? }): Promise<ProofReceipt>
  • renderReceipt(receipt, element, { expanded? }): HTMLElement (browser)
  • validateReceipt(receipt): string[]
  • renderReceiptText(receipt): string

The proof-verification and receipt logic are the same canonical modules the Nexus app and the infrix verify flow use — this package vendors them at build so it ships self-contained.