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

cctally

v1.43.2

Published

Claude Code usage tracker and local dashboard for Pro/Max subscription limits - weekly cost-per-percent trend, quota forecasts, threshold alerts. ccusage-compatible.

Downloads

10,515

Readme

If you're using ccusage to watch Claude Code spend, cctally covers the same ground and adds the parts you reach for next: a live web dashboard, a forecast that tells you whether you're going to cap this week, threshold alerts when you cross a percent, and a persistent week-over-week trend of cost per percent of quota. All local, no account, no telemetry.

Installation

Requirements: Python 3.11+, macOS or Linux, Claude Code installed and run at least once.

Homebrew (macOS / Linux)

brew install omrikais/cctally/cctally
cctally setup

npm

npm install -g cctally
cctally setup

Needs Python 3. If cctally setup fails with "python3 not found", install it with brew install python (macOS) and try again.

From source

git clone https://github.com/omrikais/cctally
cd cctally
./bin/cctally setup

cctally setup (any channel) symlinks the binaries into ~/.local/bin/, adds three additive hooks to ~/.claude/settings.json (never overwrites existing entries), and bootstraps the local SQLite cache. If ~/.local/bin/ isn't on your PATH, the script prints the line to add.

cctally setup --status     # verify hooks + symlinks
cctally daily              # cost-by-day, your first table
cctally dashboard          # opens http://127.0.0.1:8789

For status-line integration, alerts, and configuration, see docs/installation.md and docs/configuration.md.

What it looks like

Dashboard

CLI tables

Live terminal

What cctally adds

cctally started as a local-first replacement for ccusage, and it stays compatible at the level of common CLI flows (daily, monthly, weekly, session, blocks). Paste from ccusage verbatim: cctally claude <cmd> is a drop-in for ccusage claude <cmd> (and cctally codex <cmd> for ccusage codex <cmd>), with the flat forms (cctally daily, cctally codex-daily, …) kept as aliases. Beyond that, it adds:

  • Live web dashboard. Nine-panel SSE-driven view at localhost:8789 (current week, forecast, trend, sessions, weekly, monthly, blocks, daily, recent alerts), with per-panel modals, a mobile layout, threshold alerts, and a settings drawer.
  • TUI live mode. The same data inside your terminal (cctally tui; requires the optional rich package).
  • $-per-1% weekly trend. The report table reframes weekly cost as cost-per-percent-of-quota, so spending efficiency is visible week over week.
  • Forecast. Projects current-week percent and daily $/% budgets against the 100% and 90% ceilings (cctally forecast).
  • Threshold alerts. Configurable percent crossings with native macOS popups (cctally alerts).
  • 5-hour block analytics. Per-block usage with model and project breakdowns (cctally five-hour-blocks --breakdown=model).
  • Time-window diff. Compare two windows with model and project decomposition (cctally diff).
  • Project rollup. Usage by Git project (cctally project).
  • Codex parity. cctally codex daily / monthly / session are drop-ins for ccusage codex daily / monthly / session; the flat codex-* forms (drop-ins for the standalone ccusage-codex binary) remain as aliases, plus an added cctally codex weekly / cctally codex-weekly rollup (upstream has no codex weekly).
  • Persistent SQLite. Week-over-week comparisons survive across runs.

On speed. Pricing is embedded and computed at query time from a delta-tail SQLite cache (~/.local/share/cctally/cache.db), with no shell-outs. First-table latency on 30 days of session data: ~2.6s (cctally) vs ~31s (ccusage), about 12× faster. Measured by bench/cctally-vs-ccusage.sh on macOS arm64, 2026-05-05; your numbers will vary.[^bench]

[^bench]: Methodology and reproduction: bench/README.md.

Documentation

License

Apache 2.0. See LICENSE.