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

ccstatusline-budget-widgets

v1.0.0

Published

Budget tracking and peak hours widgets for ccstatusline

Readme

ccstatusline Budget Widgets

Custom widgets for ccstatusline that help you track Claude Code usage budget and peak hours.

Install

npx ccstatusline-budget-widgets

This copies the widget scripts to ~/.config/ccstatusline/ and auto-patches your settings.json.

Widgets

usage-5h — 5-Hour Session Budget

Shows current 5-hour session usage with a surplus/deficit indicator.

5h: 32% ↓34%
  • ↓34% — usage is 34% below expected pace (you have room)
  • ↑15% — usage is 15% above expected pace (burning fast)

Compares actual usage against where you should be based on elapsed time in the 5-hour window. If you've used 20% but 60% of the window has passed, you're ↓40% under budget.

usage-weekly — Weekly Budget

Same concept applied to the 7-day rolling window.

Week: 27% ↓9%

peak-hours — Peak Hours Indicator

Shows whether Anthropic's peak pricing hours are active, with a countdown.

⚡ Peak 3h20m       ← peak hours, 3h20m until off-peak
Off-peak 17h37m     ← off-peak, 17h37m until next peak

Peak hours: weekdays 5am–11am PT (1pm–7pm GMT). During peak hours, 5-hour session limits are consumed faster.

Uninstall

Remove the widget files and their entries from settings:

rm ~/.config/ccstatusline/usage-5h.js ~/.config/ccstatusline/usage-weekly.js ~/.config/ccstatusline/peak-hours.js

Then remove the corresponding custom-command entries from ~/.config/ccstatusline/settings.json, or restore the backup at settings.json.bak.

How the budget indicator works

Expected usage = (elapsed time / total window) × 100%
Surplus = expected − actual

↓ = under budget (good — you have headroom)
↑ = over budget (watch out — burning fast)

Requirements

License

MIT