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

hunch-agent

v0.1.0

Published

One-line CLI to bet Hunch prediction markets from any terminal or script: discover, research, quote, simulate for $0, settle real USDC bets on Base via x402, watch resolutions live, or run the tested continuous strategy 24×7.

Readme

hunch-agent

One-line CLI to bet Hunch prediction markets from any terminal or script — keyless, no signup, no API key. Reads and $0 simulations need nothing; real bets settle USDC on Base via x402 with your own key (gas is sponsored — the wallet never needs ETH). Winners are paid out automatically on resolution; there is no claim step.

# Look around — no wallet, no funds, nothing to install permanently
npx hunch-agent markets
npx hunch-agent discover "$BNKR flips $AERO this month"
npx hunch-agent research <marketId>
npx hunch-agent sentiment BNKR

# Prove the whole flow for $0 (full validation pipeline, no funds move)
npx hunch-agent bet <marketId> yes 5

# Go real: mint a wallet, fund it with USDC on Base, then --live
npx hunch-agent wallet new                # prints a key — save it
export HUNCH_PRIVATE_KEY=0x...
npx hunch-agent readiness                 # confirms the wallet can bet
npx hunch-agent bet <marketId> yes 5 --live

# Track it
npx hunch-agent positions
npx hunch-agent watch                     # live SSE event stream
npx hunch-agent proof <tradeId>           # on-chain settlement proof

# Or run the tested continuous strategy 24×7 (simulates until --live)
npx hunch-agent run --tokens BNKR,AERO
npx hunch-agent run --live --interval 60

Built for shell scripts

Every command takes --json and prints the raw wire value — pipe it to jq:

# The strongest crowd-conviction bet across your watchlist, as one JSON object
npx hunch-agent sentiment BNKR --json | jq .suggestedBet

# Bet $1 on every open coin-flip round's favourite, forever
while true; do
  id=$(npx hunch-agent markets 50 --json | jq -r '.[] | select(.category=="coin_flip") | .id' | head -1)
  [ -n "$id" ] && npx hunch-agent bet "$id" heads 1 --live
  sleep 300
done

Sides: yes/no on binary markets, up/down on direction rounds, heads/tails/tie on The Flip, or an outcome key (e.g. a ladder bucket like 63m-67m) on N-way markets — markets --json lists each market's real keys.

Env

| Variable | Meaning | | --- | --- | | HUNCH_PRIVATE_KEY | 0x… Base wallet key. Enables --live; defaults the wallet for positions/readiness/watch. | | HUNCH_BASE_URL | API origin (default https://www.playhunch.xyz). | | HUNCH_TOKENS | Watchlist for run (default BNKR,AERO,VVV,VIRTUAL). | | HUNCH_BET_SIZE_USD / HUNCH_MAX_STAKE_USD / HUNCH_MAX_BETS | run risk budget (defaults $1 / $10 / 10). | | HUNCH_INTERVAL_SEC | run cycle interval (default 60). |

The run loop is the same tested strategy that powers npx create-hunch-agent my-bot --loop: it acts only on the live crowd-conviction signal, simulates every pick first, and halts itself when the risk budget is spent.

Programmatic use

The package also exports the loop brain for embedding:

import { decideLoopBet, defaultLoopPolicy } from "hunch-agent";

For a full typed client (quotes, positions, webhooks, SSE), use @hunchxyz/agent-sdk — this CLI is built on it.

  • Docs: https://www.playhunch.xyz/agents/docs
  • Machine guide: https://www.playhunch.xyz/llms-full.txt
  • MCP server: claude mcp add --transport http hunch https://www.playhunch.xyz/api/mcp

Prediction markets carry risk. Only stake what you can afford to lose; not available where prohibited.