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

@ozperium/quota

v0.1.3

Published

Terminal-first AI usage & limit tracker. See remaining quota for Codex, Claude Code, Cursor, and more — before it stops you.

Readme

quota

Terminal-first AI usage & limit tracker. Know what's left — before it stops you.

quota shows your remaining usage for AI coding tools (Codex, Claude Code, Cursor, Grok) right in your terminal. Stop watching the clock when your AI coding session hits a rate limit.

$ quota

  quota — your ai usage, at a glance

  🟢 Claude Code   ████████████░░  3h 12m of 5h               reset in 2h 48m
  🟡 Codex         ███░░░░░░░░░░░  3 of 40 requests            reset in 4h 12m
  ⚪ Cursor         ──────────────  not connected
  ⚪ Grok           ──────────────  not connected

  run `quota login` to connect a provider, `quota watch` to live-monitor.

Why

AI coding assistants (Codex, Claude Code, Cursor) impose rate limits and weekly quotas that block work mid-task. "Codex Resets" hit the HN front page with 270+ points and 175 comments — developers are watching the clock and losing flow.

Limits proved the pain is real and monetizable, but it's iOS-only. Developers who live in the terminal have no native option. quota is that option.

Install

npm install -g @ozperium/quota

Usage

quota                              Show usage for all connected providers
quota watch [sec]                  Live-monitor (re-checks every N seconds, default 60)
quota check [--min-remaining <n>]  Exit 1 if any provider is below n% (for CI)
quota login                        Show provider connection status
quota --json                       Machine-readable JSON output
quota --help                       Help

CI integration

Fail a build if you're running low before a long test run:

# .github/workflows/test.yml
- name: Check AI quota
  run: quota check --min-remaining 20

Or in any shell script:

quota check --min-remaining 10 || echo "Warning: AI quota low, skipping AI tests"

Exit codes: 0 = all providers above threshold, 1 = at least one below, 2 = no providers connected.

Providers (MVP)

| Provider | Status | Source | |-------------|---------------|---------------------------------| | Claude Code | Local read | ~/.claude usage files | | Codex | Local read | ~/.codex state files | | Cursor | Coming soon | OAuth | | Grok | Coming soon | OAuth |

Privacy

quota reads provider state locally. No data leaves your machine except direct calls you initiate to provider APIs. Config lives in ~/.quota (chmod 600).

  • No analytics, no ad SDKs, no profiling.
  • Tokens are stored on-device only.
  • Not affiliated with any provider.

Shell prompt integration

Show remaining AI quota in your shell prompt using quota --json.

Starship

Add to ~/.config/starship.toml:

[custom.quota]
command = """quota --json 2>/dev/null | node -e "
const d=JSON.parse(require('fs').readFileSync('/dev/stdin','utf8'));
const active=d.filter(p=>p.remainingFraction!=null);
if(!active.length) process.exit(1);
console.log(active.map(p=>p.provider.split(' ')[0]+': '+Math.floor(p.remainingFraction*100)+'%').join(' · '));
" 2>/dev/null"""
when = "quota --json 2>/dev/null | node -e \"const d=JSON.parse(require('fs').readFileSync('/dev/stdin','utf8')); process.exit(d.some(p=>p.remainingFraction!=null)?0:1)\" 2>/dev/null"
format = "[$output]($style) "
style = "yellow"
shell = ["bash", "--noprofile", "--norc"]

This adds a segment like Claude: 64% · Codex: 42% when providers are connected. Hide it when nothing is connected.

oh-my-posh

Add a command segment to your theme JSON:

{
  "type": "command",
  "style": "plain",
  "foreground": "yellow",
  "properties": {
    "command": "quota --json 2>/dev/null | node -e \"const d=JSON.parse(require('fs').readFileSync('/dev/stdin','utf8')); const a=d.filter(p=>p.remainingFraction!=null); if(a.length) console.log(a.map(p=>p.provider.split(' ')[0]+': '+Math.floor(p.remainingFraction*100)+'%').join(' · '))\" 2>/dev/null"
  }
}

Roadmap

  • [x] Local-read providers (Claude Code, Codex)
  • [x] Terminal, JSON, watch modes
  • [x] Shell prompt integration (starship / oh-my-posh)
  • [x] CI check — quota check --min-remaining <n> exits 1 when low
  • [ ] OAuth login for Cursor, Grok
  • [ ] macOS menubar app
  • [ ] Webhook / notification on reset
  • [ ] Cross-provider aggregate dashboard

Part of the AI Dev Workflow Stack

quota is one tool in a three-part observability stack for AI development:

| Tool | What it does | Install | |------|-------------|---------| | AgentSpec | Test AI agent behavior — catch regressions before production | npm i -g @ozperium/agentspec | | AICostTracker | Track token usage and costs across projects | npm i -g @ozperium/aicost-tracker | | quota | Monitor AI rate limits — know what's left before it stops you | npm i -g @ozperium/quota |

License

MIT © pawfromoz