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

@cryptohopper/cli

v0.6.0-alpha.2

Published

Command-line interface for Cryptohopper

Readme

cryptohopper-cli

npm GitHub release Release downloads CI License: MIT

Command-line interface for Cryptohopper.

Status: 0.6.0-alpha.1 — alpha. Published to npm as @cryptohopper/cli; standalone binaries for macOS (arm64 + x64), Linux x64, and Windows x64 attached to every GitHub release.

Deeper docs: Scripting & CI · Troubleshooting · Public CLI reference

Install

Via npm (all platforms)

npm install -g @cryptohopper/cli

macOS (Apple Silicon)

curl -L https://github.com/cryptohopper/cryptohopper-cli/releases/latest/download/cryptohopper-darwin-arm64 -o /usr/local/bin/cryptohopper
chmod +x /usr/local/bin/cryptohopper

macOS (Intel)

curl -L https://github.com/cryptohopper/cryptohopper-cli/releases/latest/download/cryptohopper-darwin-x64 -o /usr/local/bin/cryptohopper
chmod +x /usr/local/bin/cryptohopper

Linux x64

curl -L https://github.com/cryptohopper/cryptohopper-cli/releases/latest/download/cryptohopper-linux-x64 -o /usr/local/bin/cryptohopper
chmod +x /usr/local/bin/cryptohopper

Windows x64

Download cryptohopper-windows-x64.exe from the latest release, rename to cryptohopper.exe, place on %PATH%.

Verify with sha256sum -c SHA256SUMS (macOS/Linux) / certutil -hashfile cryptohopper.exe SHA256 (Windows).

Quickstart

cryptohopper login                     # opens your browser to authorize via OAuth2
cryptohopper whoami                    # confirm identity
cryptohopper hoppers list              # list your bots
cryptohopper positions <hopper-id>     # open positions
cryptohopper ticker binance BTC/USDT   # spot price (still requires `cryptohopper login`)
cryptohopper backtest new <hopper-id> --from 2026-01-01 --to 2026-03-01
cryptohopper backtest status <backtest-id>
cryptohopper upgrade                   # self-update to latest release

All commands accept --json for scripting.

Authentication

cryptohopper login drives a browser-based OAuth2 authorization-code flow:

  1. The CLI starts a one-shot listener on http://127.0.0.1:18765/callback.
  2. Your default browser opens Cryptohopper's consent page.
  3. You click "Allow" for the scopes the CLI requests (read manage trade user).
  4. Cryptohopper redirects to 127.0.0.1:18765/callback?code=...&state=....
  5. The CLI exchanges the code for a bearer token and saves it to ~/.cryptohopper/config.json (mode 0600).

The CLI is a public OAuth client — no client_secret is sent. Security relies on strict server-side redirect-URI matching, a random state nonce per login, and the loopback-only listener.

Fallback: paste-token (CI, SSH, no-browser)

If you already have a bearer token, skip the browser flow:

cryptohopper login --token <your-40-char-token>

Env overrides

  • CRYPTOHOPPER_TOKEN — bearer token; skips login entirely
  • CRYPTOHOPPER_APP_KEY — OAuth client_id, sent as x-api-app-key
  • CRYPTOHOPPER_API_URL — staging override (defaults to https://api.cryptohopper.com/v1)
  • CRYPTOHOPPER_WEB_URL — OAuth consent origin override (defaults to https://www.cryptohopper.com)

Config is stored at ~/.cryptohopper/config.json with 0600 perms.

Exit codes

| Code | Meaning | |---|---| | 0 | Success | | 1 | Generic / user error | | 2 | Auth (UNAUTHORIZED, FORBIDDEN, DEVICE_UNAUTHORIZED) | | 3 | Rate-limited | | 4 | Server / service unavailable | | 5 | Network / timeout |

Shell completions

cryptohopper completion bash   >> ~/.bashrc
cryptohopper completion zsh    >> ~/.zshrc
cryptohopper completion fish   > ~/.config/fish/completions/cryptohopper.fish
cryptohopper completion powershell | Out-File -Append $PROFILE

Related packages

| Language | Package | Install | |---|---|---| | Node.js | @cryptohopper/sdk | npm i @cryptohopper/sdk | | Python | cryptohopper | pip install cryptohopper | | Go | github.com/cryptohopper/cryptohopper-go-sdk | go get github.com/cryptohopper/cryptohopper-go-sdk |

Development

npm install
npm run typecheck
npm run build             # dist/index.js for Node
npm run compile:all       # cross-platform binaries via Bun

Release

Push a cli-v<version> git tag. The workflow typechecks, verifies version parity, cross-compiles via Bun, generates SHA256SUMS, and attaches everything to a prerelease.

License

MIT — see LICENSE.