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

my-claude-tracker

v2.0.0

Published

Real-time Claude Code usage monitor with predictions, streaks, achievements & smart alerts

Readme

claude-tracker

Real-time Claude Code usage monitor with predictions, streaks, achievements & smart alerts.

npm version License: MIT

The #1 complaint about Claude Code: you hit the rate limit mid-task with zero warning. claude-tracker fixes that with a live dashboard showing your usage, burn rate, time remaining, and predicted limit hit time.

Quick Start

npx claude-tracker              # Live dashboard (refreshes every 5s)
npx claude-tracker status       # Quick one-shot snapshot
npx claude-tracker report       # 7-day history + cost summary
npx claude-tracker streak       # Your coding streak stats 🔥

Live Dashboard

  ◆ claude-tracker v2.0.0   14:32:01
  ────────────────────────────────────────────────────────────────────

  Plan: Pro   Tokens used this 5-hour window:

  ████████████████████░░░░░░░░░░░░░░░░░░░░  58%
  25,520 / 44,000 tokens

  ────────────────────────────────────────────────────────────────────

  Burn rate: 1,240 tok/min   Time left: 1h 8m   Reset in: 2h 41m   Est. cost: $0.0043

  ────────────────────────────────────────────────────────────────────

  Token breakdown:
  Input:     18,200
  Output:     7,320
  Cache:      4,100 (cache reads don't count toward limit)
  Sessions:   2     Model: claude-sonnet-4

  ────────────────────────────────────────────────────────────────────

  🔮 Predictions
  → At current rate: ~1h 8m of runway left
  → Efficiency: 40% output/input ratio

  🔥 Streak: 5 days
     On fire! 5-day coding streak!
     Best: 12 days  |  Total active: 47 days
     ■ ■ ■ ■ ■ □ ■ (last 7 days)

  🏅 Achievements
  👋 Hello World  💰 Token Miser  🦉 Night Owl  🎯 Cache Master  4/10

  Tips:
  → Over halfway. Consider batching remaining tasks into fewer sessions.

  Press Ctrl+C to exit   Refreshes every 5s

What Makes This Different

| Feature | claude-tracker | ccusage | claude-monitor | |---|:---:|:---:|:---:| | Real-time live dashboard | ✅ | ❌ | ✅ | | Predictive alerts ("limit in 47 min") | ✅ | ❌ | ❌ | | Streak tracking (daily gamification) | ✅ | ❌ | ❌ | | Achievement badges | ✅ | ❌ | ❌ | | Efficiency score (output/input ratio) | ✅ | ❌ | ❌ | | Smart scheduling suggestions | ✅ | ❌ | ❌ | | Zero dependencies | ✅ | ❌ | ❌ | | Terminal bell alerts | ✅ | ❌ | ✅ | | JSON output for scripting | ✅ | ✅ | ❌ | | Weekly report with cost estimate | ✅ | ✅ | ✅ |

Commands

| Command | What it does | |---|---| | claude-tracker | Live dashboard (default) — refreshes every 5s | | claude-tracker watch | Same as above | | claude-tracker status | One-shot snapshot, no live updates | | claude-tracker report | 7-day usage history + cost summary | | claude-tracker streak | Show your coding streak stats |

Options

| Option | Default | Description | |---|---|---| | --plan <n> | pro | Your Claude plan: free, pro, max5, max20 | | --warn <pct> | 75 | Alert threshold percentage | | --json | — | Output as JSON for scripting | | --compact | — | Minimal output for status bars |

Gamification

🔥 Streak System

Code with Claude daily to build your streak. The mini-calendar shows your last 7 days:

  🔥🔥🔥 Streak: 12 days
     Best: 15 days  |  Total active: 89 days
     ■ ■ ■ ■ ■ ■ ■ (last 7 days)

🏅 Achievements

| Badge | Name | How to unlock | |---|---|---| | 👋 | Hello World | First tracked session | | 💰 | Token Miser | Stay under 20% of limit | | ⚡ | Halfway There | Use exactly 50% of window | | 🏎️ | Limit Pusher | Hit 90%+ without going over | | 🦉 | Night Owl | Code after midnight | | 🐦 | Early Bird | Code before 7 AM | | 🔬 | Model Explorer | Use 2+ models in one window | | 🏃 | Marathon Coder | 4+ hour active session | | 👑 | Efficiency King | Output/input ratio above 0.5 | | 🎯 | Cache Master | Cache hit rate above 30% |

Token Limits (Approximate)

Community-reported estimates. Anthropic doesn't publish exact numbers.

| Plan | $/mo | ~Tokens per 5h window | |---|---|---| | Free | $0 | ~10,000 | | Pro | $20 | ~44,000 | | Max 5x | $100 | ~220,000 | | Max 20x | $200 | ~880,000 |

How It Works

Claude Code stores session data as JSONL files in ~/.claude/projects/. claude-tracker reads these files, filters to the current 5-hour rolling window, and aggregates token usage. No API calls, no accounts — purely local.

Zero Dependencies

Pure Node.js. No pip install, no virtual environments. Runs anywhere with Node 18+.

Related

  • claude-md — Generate and audit CLAUDE.md files with gamification

License

MIT