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

@abdallahaho/ccline

v1.1.1

Published

A feature-rich Claude Code statusline with session tracking, quota monitoring, peak hour detection, and burn rate projection

Readme

ccline

A feature-rich statusline for Claude Code that helps you track session health, manage quota, and avoid burning through your Max plan.

demo

What you get

Line 1 — Identity & Project

O4.6 1M ● high | 📂 really-app (main*) 📝+147 -38 | → src/features/search
  • Compact model name with effort level
  • Project root with git branch and dirty indicator
  • Lines changed this session
  • Current working directory (relative to project, fish-style if outside)

Line 2 — Session Health

#84 turns | ⏱ 2h14m | 72% 720k/1m ctx compact? | $12.41
  • Turn counter (yellow at 30, red at 50 — time to start fresh)
  • Session duration
  • Context window usage with absolute tokens and compaction nudge at 60%+
  • Running session cost (yellow at $5, red at $10)

Lines 3-4 — Quota & Rate Limits

current ●●●●●●●○○○  68% resets 3:42pm  🔥 PEAK til 8pm
weekly  ●●●●●●●●○○  81% resets apr 3, 7:00pm  ~22%/day
  • 5-hour and 7-day rate limit bars via Anthropic OAuth API (cached, 60s TTL)
  • Peak hour detection (05:00-11:00 PT) with local end time — only shows when active
  • Weekly burn rate projection — green if on pace, yellow if tight, red if you'll hit the limit

Install

npx @abdallahaho/ccline@latest

This copies the statusline script to ~/.claude/statusline.sh and configures your ~/.claude/settings.json. Restart Claude Code to see it.

If you already have a custom statusline, it's backed up to statusline.sh.bak first.

Requirements

  • jq, curl, git
  • Claude Code with an active Max/Pro subscription (for rate limit bars)
# macOS
brew install jq

# Ubuntu/Debian
sudo apt install jq curl git

Uninstall

npx @abdallahaho/ccline@latest --uninstall

Restores your previous statusline if a backup exists, or removes it and cleans up settings.json.

How it works

Claude Code pipes a JSON blob to the statusline script on every render. The script extracts model info, context usage, session cost, and workspace data from that JSON. Rate limit data is fetched from the Anthropic OAuth API and cached for 60 seconds at /tmp/claude/statusline-usage-cache.json.

The OAuth token is resolved from (in order):

  1. $CLAUDE_CODE_OAUTH_TOKEN environment variable
  2. macOS Keychain
  3. ~/.claude/.credentials.json
  4. Linux secret-tool

Credits

Heavily inspired by kamranahmedse/claude-statusline by Kamran Ahmed.

License

MIT