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

@decidio/verify

v0.6.3

Published

Standalone, zero-dependency verifier for Decidio Authority Receipts (W3C VC, Ed25519 did:key). Verify a sealed receipt's signature + content binding + chain order offline — no Decidio dependency. `npx @decidio/verify receipt.json`.

Downloads

4,469

Readme

@decidio/verify

Standalone, zero-dependency verifier for Decidio Authority Receipts. Verify a sealed receipt's signature, content binding, and chain order offline — with no Decidio dependency. A record you can verify only with the vendor's software isn't really owned; this is what makes "the customer owns the record" true rather than rhetorical.

# PIN THE ISSUER. This is the form to use in an audit or a script:
npx @decidio/verify --issuer did:key:z6Mk… receipt.json
npx @decidio/verify --issuer did:key:z6Mk… r1.json r2.json r3.json   # each + the chain order

# Without --issuer it REFUSES (exit 2) since 0.5.0 — an unpinned VALID would only prove the file agrees
# with itself. A structural check is a named choice, and its verdict carries the UNPINNED warning:
npx @decidio/verify --allow-unpinned receipt.json

Your Decidio host's issuer DID is printed by npx @decidio/sdk receipt <id>, shown in the app's record-verify panel, and published in the open at <api>/api/did (for the hosted sandbox: https://decidio-api.onrender.com/api/did) — the second channel that turns a DID first seen over one connection into a checked one. Record it once and pin it forever.

What VALID means (read this before scripting on the exit code)

Verification answers two separate questions, and only one of them is free:

  • Is this document internally consistent and unmodified? Answered with --allow-unpinned.
  • Was it issued by the party you expect? Answered only with --issuer.

A receipt signed by a self-generated key is internally consistent, so an unpinned check reports VALID and exits 0 — correctly, because nothing was asked about who signed it. That is why, since 0.5.0, the CLI refuses to run unpinned unless you say --allow-unpinned: an external review forged exactly such a receipt and the exit code said yes. A forged pair even reports an intact chain: a chain proves the links hold, not the origin. So decidio-verify receipts/*.json && promote will promote records Decidio never issued unless the issuer is pinned. Pass --issuer and a wrong signer exits non-zero, naming the issuer as the problem rather than blaming the content.

import { verifyReceipt, verifyChain } from "@decidio/verify";
const r = verifyReceipt(vc);   // { valid, issuer, contentBound, recordId, reason? }

What it checks (offline, using only the public DID in the receipt)

  1. Content binding — re-derives sha256((prevHash||"") + recordCanonical) and confirms it equals the signed contentHash, so the signature commits to the actual content (tamper-evident).
  2. Signature — verifies a W3C Data Integrity proof (DataIntegrityProof, cryptosuite eddsa-jcs-2022, Ed25519 via did:key) over the WHOLE receipt: the signing input is SHA-256(JCS(proof options)) followed by SHA-256(JCS(receipt without proof)), per Data Integrity EdDSA Cryptosuites v1.0 §3.3. Verification needs only SHA-256, Ed25519, base58 and RFC 8785 — no JSON-LD, no context fetching, no DID resolution, no network. Receipts sealed before 2026-08-04 carry a pre-standard Decidio format under the name eddsa-2022; those are refused with an explicit reason, not reported as tampered.
  3. Chain (verifyChain) — each receipt's prevHash links to the prior contentHash, and every receipt independently verifies.

Signature + content + chain verify offline. Revocation/status is a separate, network-bound check by design — a receipt is tamper-evidence, not a liveness check.

Parity

A Python verifier ships in decidio[verify] (python -m decidio.verify). Both verifiers accept the same real Decidio seals — proven in the cross-language conformance suite. Zero dependencies beyond node:crypto (TS) / cryptography (Python).