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

@daliovic/cc-statusline

v1.5.0

Published

Minimal Claude Code statusline with usage limits and budget tracking

Readme

Claude Code Statusline

A minimal, informative statusline for Claude Code CLI.

🤖 Opus │ 📊 53% 106K │ ⏱ 26% 2h09 ▼1h32/46% 2d15 ▼1d04 │ 🕌 Asr 15:32 (2h15) │ 🔌 3

Features

  • Model indicator - Shows current model (Opus, Sonnet, Haiku)
  • Context usage - Percentage + token count (turns orange at 75%)
  • Usage limits - 5-hour session and 7-day limits with reset times
  • Budget delta - Shows if you're under (▼ green) or over (▲ red) your expected usage rate
  • Prayer times - Next prayer name, time, and countdown (auto-detects location)
  • MCP servers - Shows count of enabled MCP servers for the current session
  • Customizable - Interactive wizard to configure colors, visibility, and thresholds

Installation

npm (recommended)

npm install -g @daliovic/cc-statusline

From source

git clone https://github.com/daliovic/cc-statusline.git
cd cc-statusline
npm install
npm run build

Configuration

Add to ~/.claude/settings.json:

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

Or if installed from source:

{
  "statusLine": {
    "type": "command",
    "command": "node /path/to/cc-statusline/dist/statusline.js",
    "padding": 0
  }
}

Customization

Run the interactive configuration wizard:

cc-statusline --config

This lets you customize:

  • Visibility - Show/hide model, context, 5hr limit, 7day limit, delta arrows, prayer times, MCP servers
  • Colors - ANSI 256 color codes for each element
  • Thresholds - Context warning percentage, cache TTL
  • MCP display - Show server count or names

Config is saved to ~/.claude/cc-statusline.json.

Prayer Times

Prayer times are enabled by default and auto-detect your location via IP. Configure via --config:

  • Calculation method - 20+ methods including Umm Al-Qura, ISNA, Muslim World League, and regional options
  • Location - Auto-detect via IP, city/country search, or manual coordinates

See Aladhan API docs for all available calculation methods.

MCP Servers

Shows the count of enabled MCP servers for your current project. Configure via --config:

  • Display mode - Show server count (🔌 3) or names (🔌 reddit, chrome, shell)
  • Max names - Limit names shown before truncating (e.g., 🔌 reddit, chrome+1)

Reads from ~/.claude.json and respects both global and project-level disabledMcpServers.

Environment Variables

| Variable | Default | Description | |----------|---------|-------------| | STATUSLINE_CACHE_TTL_MS | config value | API cache duration (overrides config) |

How It Works

  • Reads session data from Claude Code via stdin
  • Calculates context usage from transcript file
  • Fetches usage limits from Anthropic OAuth API (cached)
  • Budget delta shows time ahead/behind ideal linear usage

Output Format

🤖 Model │ 📊 Context% Tokens │ ⏱ 5hr% Time Delta/7day% Time Delta │ 🕌 Prayer Time (countdown) │ 🔌 MCP

Default Colors (customizable via --config):

  • Cyan: Model name and icons
  • Gray: Percentages and times
  • Orange: Context at threshold
  • Green ▼: Under budget
  • Red ▲: Over budget
  • Purple: MCP servers

License

MIT License - Do whatever you want with this. Attribution appreciated but not required.

Credits

Inspired by: