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

@elcara-hq/resolvedmarkets-cli

v1.2.1

Published

CLI for Polymarket prediction market orderbook data — crypto, sports, economics, weather. Download, stream, analyze, and backtest across 100+ markets.

Readme

Resolved Markets CLI

Command-line interface for Resolved Markets — Polymarket prediction market orderbook data for crypto, sports, economics, and weather.

Stream, download, analyze, backtest, and replay orderbook data across 100+ markets from your terminal.

Install

npm install -g @elcara-hq/resolvedmarkets-cli

Setup

# Save your API key (get one at resolvedmarkets.com/api-keys)
rm-api config --set-key rm_your_api_key

# Verify everything works
rm-api doctor

Or use environment variables:

export RM_API_KEY=rm_your_api_key

Commands

Browse Markets

rm-api markets                        # All live markets
rm-api markets -c crypto              # Filter by category
rm-api markets -c sports -s NBA       # Filter by subcategory
rm-api categories                     # List all categories
rm-api search "bitcoin 5 minute"      # Fuzzy search

View Orderbooks

rm-api orderbook <market-id>          # Live orderbook snapshot
rm-api snapshots <market-id> -l 20    # Recent historical snapshots
rm-api summary <market-id>            # Aggregated market stats
rm-api stats                          # System-wide stats (public)

Live Monitoring

rm-api watch                          # Interactive TUI dashboard
rm-api watch -c crypto -n 3           # Crypto only, 3s refresh
rm-api stream -c BTC                  # WebSocket stream (JSONL)
rm-api stream -c ETH --format csv     # CSV output for piping
rm-api alert spread -m <id> --above 0.05  # Threshold alerts

The watch command is a full terminal UI with keyboard navigation — arrow keys to browse, o to open orderbook detail, c/s/e/w to toggle category filters.

Download & Analyze

rm-api download -c BTC --last 24h     # Bulk download to local SQLite
rm-api download -m <id> --format csv -o data.csv  # Export to CSV
rm-api analyze spread -m <id> --last 1h   # Spread distribution + histogram
rm-api analyze depth -m <id>          # Bid/ask depth analysis
rm-api analyze volatility -m <id>     # Price movement stats
rm-api gaps -m <id>                   # Data quality check

Backtest Strategies

rm-api backtest --builtin spread-revert -m <id> --last 24h
rm-api backtest --builtin momentum -m <id>
rm-api backtest --builtin depth-imbalance -m <id>
rm-api backtest --strategy ./my-strategy.ts -m <id>   # Custom strategy

Returns P&L, Sharpe ratio, win rate, max drawdown, and trade log.

Replay

rm-api replay -m <id> --speed 2       # 2x speed playback
rm-api replay -m <id> --step          # Manual frame-by-frame

Project Scaffold

rm-api init my-strategy               # Generate project with example strategy

Utilities

rm-api config --show                  # View current config
rm-api doctor                         # Health & diagnostics check
rm-api usage                          # API tier, credits, rate limits
rm-api completion bash                # Shell autocompletion
rm-api update                         # Check for new version

Auth Resolution Order

  1. --key / -k flag
  2. RM_API_KEY environment variable
  3. ~/.resolved-markets/config file

Output Formats

All data commands support --json for machine-readable output. Stream and download commands support --format jsonl|csv|json.

Requirements

Links