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

sldev-market-watch

v0.1.0

Published

Watch a trading pair on Binance, Bybit and Kraken for volume spikes, breakouts and tightening ranges. MCP server and one-shot check for schedulers. Public market data only: no API keys, no trading.

Readme

market-watch

Watches trading pairs on Binance, Bybit and Kraken and tells you when one is coiling (its range is the tightest it's been in a while and volume is starting to rise, so a breakout may be close) or breaking out (a candle closes beyond its range on at least twice its usual volume).

  • Any pair you choose: in a config file, with --pair, or as an argument from your agent.
  • Public market data only: no API keys, no account, no trading.
  • Two ways to run: an MCP server your coding agent can ask, and a one-shot check your scheduler runs.
  • Quiet by design: closed candles only (a candle still forming can spike and fall back), optional agreement across exchanges, and one alert per move with a cooldown.

Not financial advice. It tells you what the numbers did, not what to do.

Quick start

npx -y sldev-market-watch scan --pair BTC/USDT --exchange binance,bybit,kraken --timeframe 1h
BTC/USDT 1h
  binance: nothing. Price 59,405.2, range 58,934.6 to 60,266, volume 0.7× (last 3: 0.9×), bandwidth 2.06% (tighter than 81% of the last 120), candle closed 2026-11-28 18:00 UTC
  ...

Watch list

npx -y sldev-market-watch init     # writes ~/.config/market-watch/config.yml
watch:
  - pair: BTC/USDT
    exchanges: [binance, bybit, kraken]
    timeframe: 1h          # 1m 5m 15m 30m 1h 4h 1d
    alerts: [coiling, breakout]
    volume_x: 2.0          # breakout candle's volume vs its 20-candle average
    confirm: 2             # exchanges that must agree
notify:
  - desktop
  - ntfy:pick-a-long-random-topic      # push to your phone with the ntfy app
  - webhook:MARKET_WATCH_WEBHOOK       # POSTs to the URL in this env var (Discord, Slack)
cooldown: 4h

market-watch check --dry-run shows what would alert without sending anything.

Run it on a schedule

check runs once and exits, so any scheduler works. Run it a minute after each candle closes:

cron (Linux, macOS): crontab -e, then for a 1h timeframe:

1 * * * * npx -y sldev-market-watch check >> ~/.local/state/market-watch/log.txt 2>&1

(For 15m candles: 1,16,31,46 * * * *.) Desktop notifications from cron need your session's DISPLAY/DBUS_SESSION_BUS_ADDRESS; ntfy or a webhook avoid that.

systemd user timer (Linux): ~/.config/systemd/user/market-watch.service with ExecStart=/usr/bin/env npx -y sldev-market-watch check and a market-watch.timer with OnCalendar=*:01, then systemctl --user enable --now market-watch.timer.

Windows: Task Scheduler → Create Basic Task → Daily, repeat every 1 hour → npx.cmd -y sldev-market-watch check.

GitHub Actions won't work for Binance or Bybit: both block US addresses, where the runners are. Kraken works from anywhere it serves.

As an MCP server

claude mcp add market-watch -- npx -y sldev-market-watch mcp

Other agents: command npx, args ["-y", "sldev-market-watch", "mcp"].

| Tool | Does | | --- | --- | | scan_pair | Reads one pair (pair, optional exchanges, timeframe, volume_x) and returns the signals and the numbers behind them | | check_watchlist | Runs your config once and says what would alert. Sends nothing |

The MCP server never sends notifications and never changes the cooldown state; only check does.

How the signals work

All on closed candles, over the last 20 unless said otherwise:

  • Breakout up / down: the last candle closes above the highest high (below the lowest low) of the 20 before it, on at least volume_x times their average volume.
  • Coiling: the Bollinger bandwidth (4 standard deviations over the 20-candle mean) is in the lowest 10% of the last 120 candles, price is still inside the range, and the last 3 candles' volume is at least 1.3× the average before them.
  • confirm: with several exchanges, a signal alerts only when that many show it. A spike on one exchange alone is often one big order.
  • Cooldown: the same pair, timeframe and signal alerts at most once per cooldown, and never twice for the same candle. State lives in ~/.local/state/market-watch/state.json.

Network and privacy

It calls the exchanges' public candle endpoints (api.binance.com, api.bybit.com, api.kraken.com) and, only if you configure them, ntfy.sh or your webhook. Nothing else, and no telemetry.

Develop

npm ci && npm run typecheck && npm test && npm run build

Tests use recorded response shapes and synthetic candles; none of them call an exchange.