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

@mazhu/cryptowatch

v1.0.2

Published

加密货币价格监控 CLI,支持 Bark/IFTTT/Webhook 通知

Readme

cryptowatch

加密货币价格监控 CLI,支持 Bark/IFTTT/Webhook 通知。

安装

npm install -g @mazhu/cryptowatch

或者本地安装后链接:

npm link

使用方法

添加告警

# BTC 价格上涨超过 100000 时提醒
cryptowatch add BTC --above 100000

# ETH 价格下跌到 5000 以下时提醒
cryptowatch add ETH --below 5000

# 指定自定义名称
cryptowatch add SOL --above 200 --name "Solana 突破200"

列出告警

cryptowatch list

删除告警

cryptowatch remove <id>

立即检查

cryptowatch check

持续监控

# 默认每 60 秒检查一次
cryptowatch watch

# 自定义间隔(每 30 秒)
cryptowatch watch --interval 30

配置通知

# 添加 Bark 通知
cryptowatch config add --type bark --url https://api.day.app/YOUR_KEY/

# 添加 IFTTT Webhook
cryptowatch config add --type ifttt --url https://maker.ifttt.com/trigger/crypto_alert/with/key/YOUR_KEY

# 添加自定义 Webhook
cryptowatch config add --type webhook --url https://your-server.com/webhook

# 添加控制台通知(默认)
cryptowatch config add --type console --url ""

# 列出所有通知渠道
cryptowatch config list

# 删除通知渠道
cryptowatch config remove --index 1

支持的币种

BTC, ETH, BNB, SOL, XRP, ADA, DOGE, DOT, MATIC, LINK, AVAX, SHIB, LTC, UNI, ATOM, XLM, ETC, FIL, APT, ARB, OP, PEPE, WIF, SUI, INJ, TIA, SEI, STX 等 50+ 种主流币种。

数据存储

  • 告警数据: ~/.cryptowatch/alerts.json
  • 配置文件: ~/.cryptowatch/config.json

注意事项

  • CoinGecko 免费 API 有速率限制,watch 模式建议间隔设置 >= 30 秒
  • 告警触发后会标记为已触发,不会重复通知
  • 如需重新监控已触发的告警,可删除后重新添加

License

MIT