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

@onchaindiligence/cli

v0.4.0

Published

Command-line client for the OnchainDiligence compliance API. Screen wallets, names, and companies — and verify signed attestations locally, with no key required.

Readme

@onchaindiligence/cli

Compliance checks from the command line — a thin wrapper over @onchaindiligence/sdk.

Screen wallets, names, and companies, and verify signed attestations offline against trust material you control.

# no install needed — run it directly
npx @onchaindiligence/cli --help

Free commands (no key)

These need nothing but Node 18+. Great for CI and quick checks.

# Genuinely offline: no account and no network
npx @onchaindiligence/cli verify result.json --trust keys.json

# Portable bundle: reports outer integrity, every child result,
# reconciliation metadata, and limitations
npx @onchaindiligence/cli verify bundle.json --trust keys.json

# Optional explicit online discovery (not the default)
npx @onchaindiligence/cli verify result.json --fetch-keys

# API + upstream status
npx @onchaindiligence/cli health

# Is an attestation anchored on Tempo?
npx @onchaindiligence/cli anchored <signature>

verify exits 0 for VALID, 3 for INVALID, and 4 for UNVERIFIABLE. Usage errors, including malformed trust material, exit 2. With --json, the component-aware result is machine readable. VALID means only that the signed bytes verify under the supplied trust policy; it does not mean an action was authorized, safe, settled, delivered, compliant, or economically successful.

Offline trust file

--trust accepts a local JSON trust policy and performs zero network access. The stable form is a registry object with a keys array (a bare array remains accepted for CLI 0.2 compatibility). Each key must have a unique key_id, algorithm: "ed25519", matching Ed25519 SPKI public_key_pem, and a lifecycle status. Timestamp lifecycle fields, when present, must be exact UTC ISO-8601 timestamps. A missing valid_from is not guessed: verification reports UNVERIFIABLE for a matching signature until a defensible activation boundary is supplied.

The generic verifier supports the current OCD attestation envelope purposes: compliance results, public Action Receipts, and allowance, swap, bridge, and staking artifacts. Public Action Receipt v1's { schema, receipt, proof } wrapper is adapted to the same proof contract. The CLI verifies shared signature/provenance only; it does not reinterpret payment or action business semantics.

Paid commands (need a payer key)

Each of these settles a real per-call payment on-chain, so they need a funded payer key in PAYER_KEY:

export PAYER_KEY=0x…   # a viem private key funded on the payment rail

npx @onchaindiligence/cli screen 0x7f268357A8c2552623316e2562D90e642bB538E5
npx @onchaindiligence/cli screen-name "Vladimir Putin"
npx @onchaindiligence/cli company 00000006
npx @onchaindiligence/cli us-company AAPL
npx @onchaindiligence/cli diligence 0x7f26… 00000006
npx @onchaindiligence/cli anchor result.json

If PAYER_KEY isn't set, paid commands stop with a clear message instead of failing mid-request.

Flags

| Flag | Effect | |------|--------| | --json | Raw JSON output, for piping | | --trust <keys.json> | Caller-trusted registry for zero-network verification | | --fetch-keys | Explicitly fetch and trust the configured issuer registry | | --threshold=N | Name-screen match threshold (screen-name only) | | -h, --help | Usage | | -v, --version | Version |

Install globally (optional)

npm install -g @onchaindiligence/cli
onchaindiligence health      # or the short alias:  ocd health

Notes

  • Output is JSON by default so results pipe cleanly into jq or a file.
  • OCD_BASE_URL overrides the API base (defaults to production).
  • An attestation signature authenticates the signer's timestamp assertion; only a separately verified anchor establishes an external time bound.
  • Verification uses the SDK's shared tri-state verifier and does not require a payer account.

License

MIT