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

@wielgi/claude-statusline

v0.1.1

Published

Rich statusline for Claude Code with context/5h/weekly rate limits, burn-rate projections, git info, and effort-level badge.

Readme

@wielgi/claude-statusline

Rich two-line statusline for Claude Code with:

  • 🤖 model + effort-level badge (including /effort max session override)
  • 🧠 context window usage
  • ⏰ 5-hour rate limit bar with burn-rate projection
  • 📅 weekly rate limit bar with burn-rate projection
  • 🌳 worktree / 🌿 git branch with +N -M diff stats

Reads official rate_limits and context_window data from Claude Code's input JSON when available — no manual token-budget calibration needed.

Install

pnpm add -g @wielgi/claude-statusline
claude-statusline init

Then open a new Claude Code session (or run /reload).

init writes this into ~/.claude/settings.json:

{
  "statusLine": {
    "type": "command",
    "command": "claude-statusline"
  }
}

Uninstall

claude-statusline uninstall
pnpm remove -g @wielgi/claude-statusline

Output

🤖 Opus 4.7 (high) | 🧠 18% | ⏰ 5h █████░░░░░░░ 38% resets 1h06m | 📅 wk █░░░░░░░░░░░ 5% resets 6d20h
🌳 my-repo | 🌿 feat/new-thing +42 -7

Colors

  • Context (🧠): green <50%, yellow 50-80%, red ≥80%
  • 5h / weekly: green by default. Turns yellow / red only when the burn-rate projection shows tokens will run out before the reset:
    • yellow = exhaust 30–60min early (5h) / 8–24h early (weekly)
    • red = exhaust >60min early (5h) / >24h early (weekly)
  • Effort badge:
    • (low) amber, (medium) green, (high) blue, (xhigh) purple, (max) animated rainbow

Configuration (optional env in settings.jsonenv)

Most users don't need any of these — Claude Code now ships accurate rate_limits and context_window in the statusline input, so calibration is automatic. The env vars below only affect the fallback path and the burn-rate projection.

| Variable | Default | Effect | |----------|---------|--------| | CLAUDE_WEEKLY_ACTIVE_FACTOR | 0.857 (6/7) | Projection multiplier for weekly burn-rate. Lower = assume less active time. 0.36 ≈ 10h × 6 days of real coding. | | CLAUDE_5H_BUDGET_TOKENS | 190_000_000 | Fallback 5h budget when rate_limits isn't in the input. | | CLAUDE_WEEKLY_BUDGET_TOKENS | 1_000_000_000 | Fallback weekly budget. | | CLAUDE_5H_RESET_OFFSET_MINUTES | 0 | Shift fallback 5h reset time. | | CLAUDE_WEEKLY_RESET | Fri 07:00 | Fallback weekly reset (local time, Day HH:MM). | | CLAUDE_CACHE_READ_WEIGHT | 1 | Weight for cache-read tokens in fallback counter (0.1 = Anthropic's billing weight). |

Numeric values accept underscores as thousands separators: "250_000_000".

How the effort badge works

/effort in Claude Code only sets the session — it's not persisted to settings.json. The statusline scans the current transcript (input.transcript_path) for the latest Set effort level to X marker written by the /effort command and falls back to settings.effortLevel if no session override is found.

License

MIT © wielgi