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

@orangecheck/stamp-cli

v0.3.1

Published

Shell interface to OC Stamp — sign files and git tags with your Bitcoin address, anchor to Bitcoin, verify offline. Exposes `stamp` and `git-stamp` binaries.

Readme

@orangecheck/stamp-cli

Shell interface to OC Stamp. Two binaries from one package:

  • stamp — sign files, verify envelopes, anchor to Bitcoin, dry-run canonical messages.
  • git-stamp — stamp git tags. Replaces the GPG dance for release signing.

Install

npm i -g @orangecheck/stamp-cli

stamp — file stamping

# Sign a file. Shows the canonical message and the id, prompts for a BIP-322
# signature of the id from your wallet, writes <path>.stamp alongside, and
# submits to OTS calendars.
$ stamp file blogpost.md --addr bc1qalice...

# Non-interactive: print the id, sign it elsewhere, then pass the signature
# with the same signed-at time.
$ stamp canonical blogpost.md --addr bc1qalice... --signed-at 2026-04-24T18:30:00Z --id
$ stamp file blogpost.md --addr bc1qalice... --signed-at 2026-04-24T18:30:00Z --sig '...'

# Skip anchoring (sign only):
$ stamp file blogpost.md --addr bc1qalice... --no-anchor

# Dry run — print what would be signed, don't sign:
$ stamp canonical blogpost.md --addr bc1qalice...

# Verify a stamp:
$ stamp verify blogpost.md.stamp blogpost.md --require-anchor

# Anchor an existing stamp, or upgrade its pending proof once the
# calendars have reached a block (rewrites the .stamp only on change):
$ stamp anchor blogpost.md.stamp

git-stamp — release/tag signing

# Tag + stamp:
$ git tag v2.1.0 -m 'release'
$ git-stamp tag v2.1.0 --addr bc1qalice...

# Later, anyone verifies:
$ git-stamp verify v2.1.0 --require-anchor

The stamp is stored at .git/stamps/<tag>.stamp — co-located with the repo, discoverable by git-stamp verify without a separate config.

The signing domain covers the tag's tree hash, the tag object id, and the tag name. Changing any of them invalidates the stamp.

stamp verify — full SPEC §8 checks

$ stamp verify blogpost.md.stamp blogpost.md --json
{
  "ok": true,
  "id": "f0dd79a528ab2c75...",
  "signer": "bc1qalice...",
  "signed_at": "2026-04-24T18:30:00Z",
  "content_hash": "sha256:a4c8f7d2...",
  "content_mime": "text/markdown",
  "content_length": 12843,
  "content_checked": true,
  "anchor": "confirmed at block 890123 (checked against the block header)",
  "anchor_state": "anchored",
  "signature_checked": true,
  "stake_declared": null,
  "stake_checked": false
}

stake_declared is the envelope's stake as written. It sits outside the id and the signature, so verify does not vouch for it: stake_checked is always false. Re-resolve the attestation and run checkStake from @orangecheck/stamp-core if the stake matters to you.

A .stamp file is read through parseStamp, so a file whose fields are not in a stamp's form exits 1 naming the field.

A confirmed anchor is checked per SPEC §6.3: the proof must commit to the stamp id, and the block header at the claimed height (from --headers-url, default https://mempool.space/api) must hash to the claimed block hash and carry the proof's Merkle root. A header that was read and does not match, or no block at that height, exits 2 with E_BAD_ANCHOR.

If the header cannot be read (the source errors, answers 5xx or does not answer), the anchor is unchecked (SPEC §8.1 step 5d): nothing failed, so check again later. anchor_state is unchecked, and with --require-anchor the command exits 3:

$ stamp verify blogpost.md.stamp blogpost.md --require-anchor --json
{ "ok": false, "code": "ANCHOR_UNCHECKED", "id": "f0dd79a5...", "block_height": 890123, "message": "couldn't check the anchor at block 890123: ..." }

anchor_state is one of anchored, unchecked, pending or none.

On failure, exits 2 with an error code:

$ stamp verify blogpost.md.stamp other-content.md --json
{ "ok": false, "code": "E_BAD_CONTENT", "message": "..." }

--json output

All commands accept --json for machine-readable output. Exit codes: 0 success, 1 user error (bad input), 2 verification failure, 3 the anchor could not be checked (verify --require-anchor only; run it again later).

How the signing flow works

BIP-322 signing in a CLI can't drive every wallet the way the browser can. stamp-cli takes the explicit approach: show what the stamp commits to and its id, let you sign the id with whatever BIP-322 wallet you have, paste the signature back. The wallet signs the 64-character id, never the message (SPEC §4.5), and the CLI checks the signature over the id before it writes anything.

$ stamp file blogpost.md --addr bc1qalice...

This stamp commits to:

────────────────────────────────────────────────────────────
oc-stamp:v1
address: bc1qalice...
content_hash: sha256:a4c8f7d2...
content_length: 12843
content_mime: text/markdown
signed_at: 2026-04-24T18:30:00Z
────────────────────────────────────────────────────────────

Sign this id with bc1qalice... (BIP-322):

f0dd79a528ab2c756c1ba1aa5f350c4fdd1073e90ae447bd9438f6a7794e1485

paste signature (base64): _

For automation, pass --sig <base64> (and --signed-at) to skip the prompt; stamp canonical --id prints the id to sign.

Spec

License

MIT.