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

@brenoxp/cc-statusline

v1.1.5

Published

Custom status line for Claude Code CLI

Readme


What it shows

  • Working directory (middle-ellipsis truncation), git branch, diff stats (+/- lines)
  • Model name, context window progress bar (gradient fill, inverse highlight at 80%+), token count
  • Cache write tokens per session (✎ indicator)
  • 5-hour session rate limit with countdown (inverse at 90%+)
  • 7-day weekly rate limit with countdown
  • Number of running Claude Code CLI sessions
  • Number of MCP servers running across all sessions
  • Session tasks: last completed + current in progress
  • Last user prompt (truncated, voice input indicator)
  • Clock (12h)

Requirements

  • macOS (process detection uses BSD ps/pgrep/stty flags)
  • Bun (recommended) or Node.js 18+
  • Terminal with truecolor (24-bit) support

The cc-statusline bin is a tiny shell wrapper that picks bun if it's on PATH, else node. nib-ink uses Bun.stringWidth on its unicode width fallback path; under node, a built-in polyfill counts code points instead — works for all input but under-counts wide chars (CJK, emoji), which can cause off-by-one truncation. Install bun for pixel-perfect rendering when prompts contain wide chars; otherwise node is fine.

Install

npm install -g @brenoxp/cc-statusline

Add to ~/.claude/settings.json:

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

Requires Bun.

git clone https://github.com/brenoxp/claude-code-statusline.git
cd claude-code-statusline
bun install
bun run build
{
  "statusLine": {
    "type": "command",
    "command": "bun /path/to/claude-code-statusline/dist/index.js"
  }
}

Settings

settings.json in the project root:

| Setting | Default | Description | |---------|---------|-------------| | maxLineWidth | 70 | Cap line width (useful on wide terminals) | | cacheWrite | true | Show session cache write tokens on the model line | | minPromptLineWidth | 40 | Minimum width for the prompt line | | debug | false | Timing info to stderr | | testMode | false | Read from example input instead of stdin | | log | false | Save each stdin JSON input to logs/ |

Env var overrides: STATUSLINE_DEBUG, TEST_MODE, STATUSLINE_LOG.

Usage data

Rate limit data comes straight from the rate_limits field in the stdin JSON that Claude Code sends each render (no network, no token needed). The session/weekly bars only appear for Pro/Max subscribers, and only after the first API response of a session.

Development

bun run build                    # build dist/index.js
bun run test                     # run test suite
bun run format                   # format code
bun run lint                     # lint
TEST_MODE=true bun dist/index.js # manual render check
bash benchmark/run.sh            # performance benchmark

Architecture

Built with nib-ink (Svelte 5 terminal UI renderer). Components in src/components/ use flexbox layout via Yoga, compiled and bundled via esbuild into a single dist/index.js with zero runtime dependencies.

src/
├── components/     Svelte 5 components (Statusline, Location, ContextBar, ...)
├── lib/
│   ├── data.ts     Data gathering (git, processes, tasks, prompt, rate limits)
│   └── theme.ts    Colors, utilities, cache helpers
└── index.ts        Entry point (stdin → renderToString → stdout)

License

MIT