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

@carbonid1/claude-statusline

v1.1.0

Published

A statusline for Claude Code showing model, context, rate limits with pace tracking, git info, and more

Downloads

170

Readme

claude-statusline

A statusline for Claude Code showing model info, context usage, rate limits with pace tracking, git branch, and session duration.

Atom One Dark color theme.

demo

Features

  • Model name and context window usage (color-coded)
  • Current directory and git branch with dirty indicator
  • Thinking mode on/off
  • 5-hour and weekly rate limit bars with reset times
  • Weekly pace indicator (under/on/over expected usage)
  • OAuth token auto-detection (macOS Keychain, credentials file, env var)

Install

npx @carbonid1/claude-statusline

Backs up your existing statusline (if any), copies the script to ~/.claude/statusline.sh, and configures Claude Code settings.

The installer will ask if you'd like to install the statusline editor skill — a Claude Code skill that teaches Claude the architecture, color palette, and patterns so it can edit and extend your statusline for you. You can also pass --skill or --no-skill to skip the prompt:

npx @carbonid1/claude-statusline --skill      # install with skill
npx @carbonid1/claude-statusline --no-skill   # install without skill

Requirements

  • jq — JSON parsing
  • curl — rate limit API
  • git — branch info

On macOS:

brew install jq

Uninstall

npx @carbonid1/claude-statusline --uninstall

Restores your previous statusline from backup if available.

Per-Project Statusline

Individual repos can extend the global statusline with project-specific indicators (server ports, env checks, build status, etc.) by adding a decorator script.

  1. Create .claude/statusline.sh in your project:
#!/bin/bash
set -f
input=$(cat)

GLOBAL_SCRIPT="$HOME/.claude/statusline.sh"

if [ -x "$GLOBAL_SCRIPT" ]; then
    global_output=$("$GLOBAL_SCRIPT" <<< "$input")
else
    global_output="Claude"
fi

green='\033[38;2;152;195;121m'
magenta='\033[38;2;198;120;221m'
white='\033[38;2;171;178;191m'
dim='\033[2m'
reset='\033[0m'

# Check if your dev server is running
if lsof -i :3000 -sTCP:LISTEN >/dev/null 2>&1; then
    server="${green}●${reset} ${white}dev${reset}"
else
    server="${dim}○ dev${reset}"
fi

project=" ${magenta}┃${reset} ${server}"

first_line="${global_output%%$'\n'*}"
rest=""
if [[ "$global_output" == *$'\n'* ]]; then
    rest="${global_output#*$'\n'}"
fi

printf "%b%b" "$first_line" "$project"
[ -n "$rest" ] && printf "\n%b" "$rest"
exit 0
  1. Make it executable and add a local settings override:
chmod +x .claude/statusline.sh
// .claude/settings.local.json (gitignored — user-local)
{
  "statusLine": {
    "type": "command",
    "command": ".claude/statusline.sh"
  }
}

The decorator runs the global script, captures its output, appends your project indicators to line 1, and passes the remaining lines (rate limits, etc.) through unchanged.

The bundled skill teaches Claude how this system works — ask Claude to "add a port indicator to my statusline" and it will know the architecture, color palette, and patterns.

Credits

Originally inspired by @kamranahmedse/claude-statusline.

License

MIT