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

@edgeproc/receipt-ui

v0.2.0

Published

React components that render and verify an Avow SignedReceipt — a composable badge and panel with a fail-closed, three-state verdict (verified / tampered / untrusted signer).

Readme

@edgeproc/receipt-ui

Render and verify an Avow SignedReceipt in React.

Your app signs a receipt at the engine level; this shows the user whether it actually checks out. Drop in a <ReceiptBadge> or <ReceiptPanel>, hand it the receipt and the one public key you trust, and it verifies on mount and renders one of four clearly-distinct, fail-closed states:

  • Verifying… — the check is in flight (the initial, not-yet-trusted state).
  • Verified — the signature is valid and signed by the pinned key.
  • Not verified — tampered or invalid signature — the verifier rejected it.
  • Not verified — untrusted signer — the receipt's key is not the one you pinned.

Only a resolved verify under the pinned key ever reads as Verified. Anything else — a rejection, an error, an unpinned key, or the moment before the check returns — reads as not-verified. Status is conveyed by icon and text (never color alone) inside an ARIA role="status" live region.

Install

pnpm add @edgeproc/receipt-ui @edgeproc/avow react

@edgeproc/avow and react are peer dependencies — the app provides them, so there is a single avow instance and a single SignedReceipt type across the app and this package.

Use

import { ReceiptPanel } from "@edgeproc/receipt-ui";

// `receipt` came from your engine (avow `signPayload`); `SIGNER_KEY` is the
// hex public key you trust. `verify` is optional — it defaults to avow's own
// `verifySignature`, so omit it unless your app injects a custom verifier.
<ReceiptPanel
  receipt={receipt}
  expectedPublicKey={SIGNER_KEY}
  renderPayload={(p) => <p>Score: {p.score}</p>}
/>;

ReceiptBadge takes the same receipt / expectedPublicKey / verify props and renders just the one-line verdict; ReceiptPanel adds the envelope metadata (algorithm, shortened signer key, payload hash, signature) and the payload body.

The verdict lives in the useReceiptVerification hook if you want to build your own presentation; StatusPill is the standalone verdict chip.

Localize

Requires @edgeproc/receipt-ui 0.2.0 or newer. 0.1.0 has no labels prop — it renders the built-in English strings and silently ignores the object. Check the version you resolved before filing a bug. See CHANGELOG.md.

Every rendered string is injectable: pass a labels object (type ReceiptLabels) to StatusPill, ReceiptBadge or ReceiptPanel. It is a deep partial — omit anything to keep the built-in English default:

<ReceiptPanel
  receipt={receipt}
  expectedPublicKey={SIGNER_KEY}
  labels={{
    status: { verified: { text: t("receipt.verified") } },
    panel: { receipt: t("receipt.section"), algorithm: t("receipt.algorithm") },
  }}
/>;

labels.status overrides the verdict chip per state (checking / verified / invalid / wrong-key, each { text?, icon? }); labels.panel overrides the panel's meta strings (receipt — the section aria-label — plus algorithm, signerKey, payloadHash, signature).

Develop

pnpm gate   # biome lint -> tsc strict -> vitest (+coverage) -> tsc build

Tests build real avow receipts (valid, tampered, wrong-key) and assert the component reflects avow's own verdict — the property, not the shape.