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

tascan-verify

v0.2.0

Published

Reference verifier for TaScan Action Receipts (Ed25519 JWS) and signed documents (passkey signature bundles). Zero dependencies, Node 18+, one file you can read end to end. Checks without trusting TaScan's server.

Readme

tascan-verify

Check a TaScan Action Receipt (an Ed25519 JWS) on your own machine, without trusting TaScan's server. Zero dependencies, Node 18+, one file you can read end to end.

This is the reference verifier, byte for byte; the repository's harness fails if this copy ever differs.

Usage

npx tascan-verify receipt.jws
npx tascan-verify receipt.jws --offline --jwks keys.json
npx tascan-verify receipt.jws --json
npx tascan-verify receipt.jws --profile public
npx tascan-verify --fixtures path/to/manifest.json
npx tascan-verify --signature bundle.json --doc signed-document.pdf
  • receipt.jws — a file holding the compact JWS, a receipt .json export, or the compact JWS string itself.
  • --offline --jwks keys.json — verify against a key set you already hold (no network); without --offline the key set is fetched from the issuer's /.well-known/tascan-receipt-keys.json.
  • --json — machine-readable output.
  • --profile full|public — pin the profile you expect (the header typ names the profile; a mismatch fails bad_typ).
  • --fixtures [manifest.json] — run every fixture and cross-check row in a conformance manifest, offline, and report one PASS/FAIL per row. Pass the manifest path explicitly: the package ships the verifier and schemas, not the fixtures.
  • Also available: --photo, --notes, --response (hash your bytes against the signed evidence) and --issuer-check (print the issuer's own verdict beside yours).

Exit code 0 means the receipt checks out; anything else means it does not.

What it checks

Each step prints PASS / FAIL / SKIP / INFO, in this order:

  1. shape — size limit, compact JWS with three strict base64url segments, no repeated member names, header typ (full or public profile), alg EdDSA, a kid.
  2. envelope — iss is an https origin with no default port, sub is a tascan:// subject, jti present, serial a non-negative integer.
  3. key — the kid is in the issuer's JWKS (or your --jwks file) and not revoked for compromise; rotation revocation is judged against iat.
  4. signature — Ed25519 over the signing input verifies with that key (the check that matters).
  5. profile — hashing profile (RFC 8785 JCS): every number is an IEEE-754-safe integer.
  6. semantics — GPS bounds, real calendar datetimes, coherent verification fields.
  7. schema — the payload validates against receipt.schema.json or receipt-public.schema.json.
  8. binding — public profile only: the binding to the full receipt is well formed and not a self-binding.
  9. redaction — public profile only: no raw ids or evidence URIs leak past their hashes.
  10. snapshot — sha256(JCS(chain.snapshot)) equals the committed hash for the profile.
  11. coherence — receipt-wide consistency, e.g. at most one evidence entry per field.
  12. evidence — evidence hashes match any bytes you pass (--photo / --notes / --response); otherwise SKIP.
  13. sources — every claim has a source from the protocol vocabulary; an absent value carries a reason.
  14. vocabulary — receipt authenticity, work verification and execution provenance, read out as three separate questions.
  15. issuer — optional (--issuer-check): the issuer's own verdict printed beside yours, never a substitute for steps 3–4.

The exact, ordered list is in the header comment of bin/tascan-verify.js.

Signed documents (--signature)

A TaScan signature task has a worker read a document, type their full name, and sign with their passkey (Face ID, fingerprint or PIN). The organization can export the signature bundle for any signed copy. Check it offline:

npx tascan-verify --signature bundle.json --doc signed-document.pdf
  1. shape: the bundle has the signed preimage, clientDataJSON, authenticatorData, signature, public key, rp_id and origin.
  2. challenge: base64url(SHA-256(JCS(preimage))) equals the challenge the passkey signed, so the document hash, the task, the signer and the typed name are exactly what was signed. Change any of them and this fails.
  3. client: a webauthn.get ceremony from https://<rp_id>.
  4. authdata: rpIdHash = SHA-256(rp_id); user present and user verified (biometric or PIN) flags set.
  5. signature: ES256 over authenticatorData || SHA-256(clientDataJSON) verifies with the bundle's P-256 passkey key.
  6. document: the document hash matches the signed one, and with --doc, your file's bytes hash to it.

Then it prints the signed facts: typed name, signer, task, time. Exit code 0 means the signature checks out. What it cannot tell you on its own: that the public key belongs to the person you think. Compare it with the signer's enrolled passkey if that matters to you.