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

@gwthm/api-quota-watch

v0.2.0

Published

Monitor API rate limits and quotas across multiple providers

Readme

🚀 API Quota Watch

npm version License: MIT GitHub stars

Never hit API rate limits again. Monitor AI tools and API quotas across OpenAI, Anthropic (Claude), Stripe, GitHub, and more — directly from your terminal.

npm install -g @gwthm/api-quota-watch
aqw add        # add your first API
aqw monitor    # check all quotas at once

✨ What's New in v0.2.0

  • 🤖 Anthropic / Claude provider — monitor token & request rate limits
  • 📈 aqw history — 30-day sparkline charts, trend arrows, burn rate projections
  • 📊 aqw report — structured JSON/CSV export for spreadsheets or automation
  • 🔔 Real webhook alerts — Slack Block Kit + Discord embeds that actually fire
  • Burn rate — "At current pace, limit in ~12 days" alongside every provider
  • 🎨 Richer monitor output — inline progress bars with absolute values

🚀 Quick Start

# Install
npm install -g @gwthm/api-quota-watch

# Add APIs (OpenAI, Anthropic, Stripe, GitHub)
aqw add

# Check all quotas
aqw monitor

# Continuous watch mode
aqw monitor --watch --interval 5

# 30-day history chart
aqw history

# Structured export
aqw report --format json --output report.json

📋 Commands

| Command | Description | |---------|-------------| | aqw add | Add an API key to monitor (interactive) | | aqw remove <provider> | Remove a provider | | aqw list | List all configured APIs | | aqw monitor | Check live quota status with progress bars | | aqw monitor --watch --interval 5 | Continuous monitoring every N minutes | | aqw alert | Configure Slack/Discord/webhook alerts | | aqw history [provider] | Sparkline trend chart + burn rate | | aqw history --days 7 | Last 7 days only | | aqw report | Rich terminal report | | aqw report --format json | JSON export | | aqw report --format csv --output report.csv | CSV export for spreadsheets | | aqw report --cached | Use stored data (no live API calls) |


🔌 Supported Providers

| Provider | Category | What's Monitored | Key format | |----------|----------|-----------------|------------| | OpenAI | AI | Monthly billing usage vs. hard limit | sk-... | | Anthropic (Claude) | AI | Token & request rate limits | sk-ant-... | | Groq | AI | Token & request rate limits per minute | gsk_... | | Mistral AI | AI | Token & request rate limits per minute | Mistral console key | | OpenRouter | AI (multi-model) | Credit balance (limit_remaining) in USD | sk-or-... | | Stripe | Payments | Rate limits per second | sk_live_... / sk_test_... | | GitHub | Dev tools | Core API request quota (5,000/hr) | ghp_... |

More coming: AWS Bedrock, Cohere, Twilio


🔔 Alerts

Configure per-provider alerts with a real notification destination:

aqw alert
# → select provider
# → set threshold (e.g. 80%)
# → choose: Slack | Discord | Generic JSON | None
# → paste webhook URL
# → send a test alert now? [y/n]

Alert format on Slack (Block Kit):

🚨 Quota Alert: openai
🔴 openai: 85.0% (85.00/100 USD)
Reported at 8/5/2026 via `aqw`

📈 History & Burn Rate

aqw history openai
  openai
  ──────────────────────────────────────────────────
  ▁▁▂▂▃▃▄▄▅▅▆▆▇▇▇▇▇▇▇██
    min 12.4%  avg 45.1%  max 87.3%  trend ↑
    Jul 7, 2026 → Aug 5, 2026

  Latest: ████████░░░░░░░░ 48.2% (48.20/100 USD)
  ⚡ At current pace: limit in ~18 days

  30 data points collected

📊 Report Export

aqw report --format json
{
  "reportedAt": "2026-08-05T22:00:00.000Z",
  "reporter": "my-macbook",
  "version": "0.2.0",
  "apis": [
    {
      "provider": "openai",
      "alias": "openai",
      "usedPercent": 48.2,
      "used": 48.2,
      "limit": 100,
      "unit": "USD",
      "resetsAt": "2026-09-01T00:00:00.000Z",
      "dataSource": "live"
    }
  ]
}

🔐 Security

  • API keys stored locally in your OS config directory
  • macOS/Linux: ~/.config/api-quota-watch/
  • Windows: %APPDATA%\api-quota-watch\
  • Zero keys sent to any external server

🗺 Roadmap

  • [x] v0.1.0 — OpenAI, Stripe, GitHub + watch mode + alerts config
  • [x] v0.2.0 — Anthropic, sparkline history, real webhook alerts, report export
  • [ ] v0.3.0 — Scheduled daily digests, desktop notifications, VS Code extension
  • [ ] v0.4.0 — Team reporting: opt-in Slack digest for engineering managers

🤝 Contributing

git clone https://github.com/gowthamtadala/api-quota-watch.git
cd api-quota-watch
npm install
npm link     # makes `aqw` available locally
aqw --help

See CONTRIBUTING.md for details.


📄 License

MIT — Built with ❤️ by developers who got paged at 2am too many times.