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

@hightop/cli

v0.1.3

Published

Command-line interface for the Hightop Agent API.

Readme

@hightop/cli

Command-line interface for the Hightop Agent API.

The executable is hightop. The CLI uses @hightop/sdk for all Agent API requests and derives normal command coverage from the generated Agent API endpoint catalog.

Configuration

Set a base URL and one auth mode for protected commands.

Header-key auth:

export HIGHTOP_BASE_URL=https://api.hightop.com
export HIGHTOP_AGENT_ID=...
export HIGHTOP_API_KEY=...

Bearer-token auth:

export HIGHTOP_BASE_URL=https://api.hightop.com
export HIGHTOP_BEARER_TOKEN=...

Supported environment variables:

HIGHTOP_BASE_URL
HIGHTOP_AGENT_ID
HIGHTOP_API_KEY
HIGHTOP_BEARER_TOKEN
HIGHTOP_TIMEOUT_MS

Equivalent flags are available for local/debug use:

hightop self --base-url https://api.hightop.com --agent-id ... --api-key ...

The CLI does not auto-load .env files. For local testing, source one into the shell:

cp packages/cli/.env.example .env.agent
# edit .env.agent with real credentials
set -a
source .env.agent
set +a

Help

Global help:

hightop --help

Command-group help:

hightop x402 --help
hightop borrow collateral --help

Endpoint command help:

hightop one-off-payments create --help
hightop webhooks update --help

When running from a checkout before publishing, call the built file directly:

node packages/cli/dist/index.js x402 --help

Commands

Examples:

hightop self --pretty
hightop balances --pretty
hightop operations get <operation-id> --include-onchain --pretty
hightop borrow repay --asset GREEN --amount-usd 25 --simulate --pretty
hightop one-off-payments create --to 0x... --asset USDC --amount-usd 25 --simulate --pretty
hightop webhooks create --url https://example.com/hook --event-types payment.executed,webhook.test --pretty
hightop x402 quote --url https://example.com/paid-resource --pretty
hightop raw GET /v1/agent/openapi.json --pretty

The generated command layer supports all catalogued /v1/agent/* endpoints. CLI flags are generated from endpoint query/body field names by converting underscores to dashes, for example amount_usd becomes --amount-usd.

For complex bodies, pass a JSON object:

hightop x402 sign --body '{"pay_to":"0x...","amount":"1000","target_url":"https://example.com"}'

Repeated or comma-separated array flags are accepted for known array fields:

hightop webhooks create --url https://example.com/hook --event-types payment.executed,webhook.test
hightop earn rewards claim --protocols underscore-earn --protocols ripe-rewards

Writes

For mutating commands, the CLI generates an idempotency key unless --idempotency-key is provided. The key is printed in the JSON response so callers can retry the same logical operation intentionally.

Use --simulate to call /v1/agent/simulate instead of broadcasting:

hightop borrow repay --asset GREEN --amount-usd 25 --simulate --pretty

Use --wait to poll the returned operation until it reaches a terminal state:

hightop conversions execute --quote-id <quote-id> --wait --pretty

Public openapi and capabilities json commands can run without auth, but still require HIGHTOP_BASE_URL or --base-url.