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/vote-cli

v0.2.0

Published

Command-line tool for OC Vote — tally, verify, and inspect polls from your shell.

Downloads

215

Readme

@orangecheck/vote-cli

Command-line tool for OC Vote.

npm i -g @orangecheck/vote-cli

or run one-shot:

npx -y @orangecheck/vote-cli tally <poll_id>

Commands

oc-vote tally <poll_id>

Fetch the poll and all ballots from Nostr, verify every BIP-322 signature, look up UTXO state at the declared snapshot block from mempool.space, and run the pure tally function. Output matches what any conforming implementation produces.

$ oc-vote tally 3054390f047f2703186943a41178bc15931500b5139229517f26e56282026ee5

  poll:       Do we ship?
  poll_id:    3054390f…026ee5
  creator:    bc1q…
  mode:       public
  weight:     sats
  threshold:  100000 sat / 30 d
  deadline:   2026-05-08T00:00:00Z
  snapshot:   900412
  ballots:    47

  STATE:      tallied
  turnout:    47 voters, weight 2,814,300,000

  Ship it     ████████████··················    1,102,900,000   39.2%
  Hold        ████████··············          812,300,000   28.9%
  …

Flags:

  • --relay wss://... (repeatable) — custom relay set. Defaults to the canonical four.
  • --mempool-base https://... — UTXO source. Defaults to https://mempool.space/api.
  • --snapshot <height> — pin a specific snapshot block (overrides poll.snapshot_block).
  • --no-verify — skip BIP-322 checks (faster, less safe — use only for sanity probes).
  • --json — JSON output instead of the human-readable bar chart.

oc-vote verify <poll_id>

Verify every BIP-322 signature on the poll and on each ballot. Prints a short summary; --json gives per-ballot details.

oc-vote show <poll_id>

Print the poll metadata + ballot count without running the tally. Useful for quickly inspecting a poll.

Why

The web UI at vote.ochk.io is convenience. The canonical tally is whatever the spec's pure function produces. If the web UI ever disagrees with what this CLI outputs, the CLI is correct and the UI has a bug — file an issue with the diff.

Related

License

MIT.