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

claude-statusline-pro

v1.2.0

Published

🎨 Beautiful customizable statusline for Claude Code β€” progress bars, icons, git, MCP tracking, usage limits, session stats

Readme

claude-statusline-pro

🎨 Beautiful, customizable statusline for Claude Code β€” progress bars, icons, git, MCP tracking, usage limits, and session stats.

npm version License: MIT Node

🧠 Opus 4.6 β€’ πŸ“Š β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘ 37% β€’ ⏱  β–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 23% ↻2h 15m β€’ πŸ“… β–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘ 41% ↻2d 4h β€’ πŸ“ my-project β€’ 🌿 main
πŸ€– 3 agents β€’ πŸ”§ 326/724 tools β€’ πŸ“ 11 files β€’ πŸ”Œ 6 MCPs β€’ βœ… 94% ok β€’ πŸ’Ύ 138.5M cache

Features

  • 🎨 Configurable colors with thresholds (green / yellow / red based on usage)
  • πŸ“Š Progress bars for context, 5h & 7d usage limits
  • ⏳ Countdown timers to next reset (no more guessing when weekly resets)
  • 🌿 Git branch detection (walks up directories)
  • πŸ”§ Tools tracking β€” used in project / unique tools available globally
  • πŸ€– Subagent counter (Task tool invocations)
  • πŸ“ Unique files edited (Edit/Write/MultiEdit, dedup)
  • πŸ”Œ Active MCP servers count
  • βœ… Success rate of tool calls
  • πŸ’Ύ Cache read tokens (see your caching savings)
  • πŸ’Ύ Persistent stats β€” aggregated across all sessions in a project
  • πŸ›°οΈ Cached rate limits β€” keep showing 5h/7d even after terminal restart
  • 🌍 Cross-platform β€” Windows, macOS, Linux (no external deps beyond Node)

Install

npx claude-statusline-pro install

Then restart Claude Code.

To remove:

npx claude-statusline-pro uninstall

Commands

claude-statusline-pro install     # Wire into ~/.claude/settings.json
claude-statusline-pro uninstall   # Remove from ~/.claude/settings.json
claude-statusline-pro init        # Create default config at ~/.claude/statusline-pro.json
claude-statusline-pro preview     # Preview with sample data
claude-statusline-pro help        # Show help

Customize

Run npx claude-statusline-pro init to create ~/.claude/statusline-pro.json.

You can also set CLAUDE_STATUSLINE_CONFIG=/path/to/your/config.json to use a custom location.

All options

{
  // Which sections to show β€” toggle any off
  "show": {
    "model": true,
    "context": true,
    "usage5h": true,
    "usage7d": true,
    "directory": true,
    "gitBranch": true,
    "agents": true,
    "tools": true,
    "files": true,
    "mcps": true,
    "successRate": true,
    "cache": true
  },

  // Color thresholds (%)
  "thresholds": {
    "warning": 60,   // Yellow above this
    "critical": 85   // Red above this
  },

  // Colors β€” any of: red, green, yellow, blue, magenta, cyan, gray, white
  "colors": {
    "normal": "green",
    "warning": "yellow",
    "critical": "red",
    "model": "cyan",
    "directory": "magenta",
    "gitBranch": "green",
    "agents": "blue",
    "tools": "yellow",
    "files": "cyan",
    "mcps": "green",
    "cache": "magenta",
    "successGood": "green",
    "successMid": "yellow",
    "successBad": "red"
  },

  // Progress bar style
  "bar": {
    "width": 10,
    "fillChar": "β–ˆ",
    "emptyChar": "β–‘",
    "emptyColor": "gray"
  },

  // Disable all icons, or customize each one
  "iconsEnabled": true,
  "icons": {
    "model": "🧠",
    "context": "πŸ“Š",
    "usage5h": "⏱ ",
    "usage7d": "πŸ“…",
    "directory": "πŸ“",
    "gitBranch": "🌿",
    "agents": "πŸ€–",
    "tools": "πŸ”§",
    "files": "πŸ“",
    "mcps": "πŸ”Œ",
    "successRate": "βœ…",
    "cache": "πŸ’Ύ",
    "resetArrow": "↻"
  },

  // Separator between sections
  "separator": " β€’ ",

  // Countdown format: "full" β†’ "2d 4h", "short" β†’ "2d", "hms" β†’ "2d4h0m"
  "countdownFormat": "full",

  // Label shown before the countdown (e.g. "reset in ", "↻", "β†’ ")
  "resetLabel": "reset in ",

  // Token format: "short" β†’ "1.2k", "full" β†’ "1,200"
  "tokenFormat": "short",

  // Stats aggregation: "project" (current project) or "global" (all projects)
  "statsScope": "project",

  // Responsive: hide sections progressively when terminal is too narrow.
  // Items appearing LATER in `priority` are hidden FIRST.
  // maxWidth: 0 = auto-detect, -1 = disable responsive, >0 = force width
  "responsive": {
    "enabled": true,
    "priority": [
      "model", "context", "usage5h", "usage7d", "directory", "gitBranch",
      "agents", "tools", "files", "mcps", "successRate", "cache"
    ],
    "maxWidth": 0,       // 0 = auto-detect, -1 = disable
    "rightReserve": 5    // chars reserved on the right for Claude Code UI
  },

  // Section order & visibility (sections not listed are hidden)
  "line1": ["model", "context", "usage5h", "usage7d", "directory", "gitBranch"],
  "line2": ["agents", "tools", "files", "mcps", "successRate", "cache"]
}

Example: minimal single line

{
  "show": { "agents": false, "tools": false, "files": false, "mcps": false, "successRate": false, "cache": false },
  "line1": ["model", "context", "usage5h", "usage7d"],
  "line2": []
}

Example: powerline-style without icons

{
  "iconsEnabled": false,
  "separator": " β”‚ ",
  "bar": { "fillChar": "β–°", "emptyChar": "β–±" }
}

What the sections show

| Section | Meaning | |---|---| | 🧠 model | Current Claude model name | | πŸ“Š context | Context window usage % | | ⏱ usage5h | Rolling 5h quota usage + countdown to reset | | πŸ“… usage7d | Rolling 7d quota usage + countdown to reset (Pro/Max only) | | πŸ“ directory | Current project folder | | 🌿 gitBranch | Active git branch (walks up directories) | | πŸ€– agents | Task tool invocations (subagents spawned) | | πŸ”§ tools | Tools invoked in project / unique tools known globally | | πŸ“ files | Unique files edited (Edit/Write/MultiEdit) | | πŸ”Œ mcps | Active MCP servers (configured across all sources) | | βœ… successRate | Tool success ratio (errors vs OK) | | πŸ’Ύ cache | Total cache read tokens (cumulative session tokens saved by cache) |

Troubleshooting

The statusline doesn't appear after install. Fully quit Claude Code and relaunch. A /reload won't pick up the new statusLine config.

Icons render as boxes. Your terminal needs an emoji-capable font. Windows Terminal and iTerm2 handle them by default. Or set iconsEnabled: false.

Output wraps over multiple lines on a narrow terminal. That's the terminal, not the statusline. Widen the window or hide some sections.

Stats reset after restarting Claude Code. They shouldn't β€” they aggregate across all .jsonl transcripts in ~/.claude/projects/<sanitized-cwd>/. If you're seeing resets, check that transcript_path points to the right place.

How it works

Claude Code invokes the statusline command after each assistant message, passing a JSON payload via stdin. The script reads:

  • Live data from stdin (model, rate limits, context usage)
  • Aggregated stats from ~/.claude/projects/<project>/ JSONL transcripts
  • MCP configuration from ~/.claude.json, ~/.mcp.json, and <project>/.mcp.json
  • Cached rate limits from ~/.claude/statusline-cache/rate-limits.json (for early-session display)
  • Git state by walking parent directories for .git/HEAD

See the Claude Code statusline docs for the full input schema.

License

MIT Β© lemale237