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

@hedge-layer/cli

v4.0.1

Published

CLI for Hedge Layer — prediction market intelligence from the terminal

Downloads

287

Readme

@hedge-layer/cli

npm version license

Command-line interface for Hedge Layer: prediction market intelligence from the terminal.

The canonical CLI guide now lives in the Hedge Layer web app docs: hedgelayer.ai/docs/cli.

Install

npm install -g @hedge-layer/cli

Requires Node.js 22 or later.

Install troubleshooting

  • EACCES / "operation was rejected by your operating system" on npm install -g: your npm prefix points at a root-owned directory (e.g. /usr/lib/node_modules) and you don't have sudo. Install into a user-writable prefix instead:

    mkdir -p "$HOME/.npm-global"
    npm config set prefix "$HOME/.npm-global"
    export PATH="$HOME/.npm-global/bin:$PATH"   # add to your shell rc to persist
    npm install -g @hedge-layer/cli
  • nvm warns npmrc ... globalconfig and/or prefix setting ... incompatible with nvm: this is harmless shell-init noise from nvm (not from hl) that appears after setting a custom npm prefix as above — the CLI still works. To avoid it entirely under nvm, install without a custom prefix (nvm's per-version bin/ is already user-writable):

    npm config delete prefix
    npm config delete globalconfig
    nvm use --delete-prefix "$(node -v)" --silent
    npm install -g @hedge-layer/cli

    Alternatively, skip the global install and run on demand with npx @hedge-layer/cli <command>.

Quick Start

# 1. Create an API token at https://hedgelayer.ai/account/settings
# 2. Authenticate the CLI
hl auth login

# 3. Generate a Market Brief
hl brief "US China trade war tariffs"

# 4. Or start an interactive research session
hl research

# 5. Preview a directional quote (analysis only; no order is submitted)
hl quote "example-market" --action buy --outcome yes --cash 25

# 6. Save a fresh quote preview with Signal-linked sizing context
hl quote "example-market" --action buy --outcome yes --cash 25 \
  --signal-id <forecast-id> --capital 1000 --save

# 7. Analyze a market probability edge
hl signal analyze "https://polymarket.com/event/example-market"

Commands

Full command documentation is available at hedgelayer.ai/docs/cli.

Directional quote previews are available with hl quote:

hl quote example-market --action buy --outcome yes --cash 25
hl quote example-market --action buy --outcome no --shares 50 --route passive
hl quote example-market --action sell --outcome yes --shares 20 --save
hl --json quote example-market --action buy --outcome yes --cash 25

Quote reads public Polymarket market data and order-book depth, then reports the estimated fill, slippage, fees, cost or proceeds, payout risk, and optional Signal edge. It never signs or submits an order. --cash is BUY-only; SELL quotes require --shares.

Liquidity allocation, wallet management, and trade execution are outside the official hl CLI.

For a broader discovery screen, hl feed ensemble runs several feed lenses (liquid core, active volume, movers, new markets, uncertainty, and LP quality), de-duplicates by slug, and writes a ranked candidate file:

hl feed ensemble --limit 25 --output candidates.json

Signal-agent analysis is available under hl signal:

hl signal analyze "https://polymarket.com/event/example-market"
hl signal analyze "https://polymarket.com/event/example-market" --context "Recent search notes"
hl --json signal analyze "https://polymarket.com/event/example-market" | jq '.result.analysis'

Changelog

See CHANGELOG.md for release history.

License

MIT