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

stackpulse

v3.2.3

Published

Generate beautiful shareable cards for your AI coding tool usage — Claude Code, Codex, Cursor, Gemini CLI, Aider, and 9 more

Readme


What is stackpulse?

stackpulse scans your machine for AI coding tools, reads their local usage data (sessions, tokens, cost), and generates a shareable HTML card with:

  • Per-tool usage breakdown with model details
  • Donut chart with smart metric selection
  • GitHub-style activity heatmap (per-tool rows)
  • Save as PNG, PDF, or share on X — all from the card itself

One command. No API keys. No data leaves your machine.

npx stackpulse

Quick Start

# Run directly (no install needed)
npx stackpulse

# Or install globally
npm install -g stackpulse
stackpulse

The interactive wizard walks you through 3 steps:

  1. Select tools — auto-detected from your machine + manual entry
  2. Choose metrics — sessions, tokens, cost, commits, lines written
  3. Customize — title, handle, theme, output filename

Output: stackpulse.html (open in browser, click "Save as PNG")


Supported Tools

stackpulse supports 13 AI coding tools across 4 data source types:

Full data (sessions + tokens + cost + heatmap)

| Tool | Data Source | What's Read | |---|---|---| | Claude Code | ccusage | Sessions, tokens, cost, model breakdown, daily activity | | OpenAI Codex | @ccusage/codex | Sessions, tokens, cost, model breakdown, daily activity | | OpenCode | @ccusage/opencode | Sessions, tokens, cost, daily activity | | Amp (Sourcegraph) | @ccusage/amp | Sessions, tokens, cost, credits, daily activity | | Pi Agent | @ccusage/pi | Sessions, tokens, cost, daily activity |

Token data (sessions + tokens + heatmap)

| Tool | Data Source | What's Read | |---|---|---| | Gemini CLI | Local JSONL files | Sessions, tokens, daily activity | | Qwen Code | Local JSONL files | Sessions, tokens, estimated cost, daily activity | | Kimi Code | Local session files | Sessions, tokens, estimated cost, daily activity |

Session data (sessions only)

| Tool | Data Source | What's Read | |---|---|---| | Cursor | SQLite state.vscdb | Composer sessions, daily activity from timestamps | | Antigravity | SQLite state.vscdb | Missions + agent sessions | | Roo Code | VS Code SQLite | Task history count | | Kilo Code | VS Code SQLite | Task history count |

Git-based

| Tool | Data Source | What's Read | |---|---|---| | Aider | .aider.chat.history.md + git | Sessions, commits, lines written |

Tools not installed on your machine can still be added manually during the wizard.


Themes

7 built-in themes, selectable in the wizard or via --theme:

| Theme | Vibe | |---|---| | dark | Terminal noir (default) | | light | Clean minimal | | cosmic | Deep space blues | | forge | Amber heat | | arctic | Ice blue on white | | verdant | Forest green | | neon | Pink synthwave |

stackpulse --theme cosmic

Config File

Skip the wizard entirely with a YAML or JSON config:

# Generate a starter config
stackpulse --init ai-usage.yaml

# Run from config
stackpulse --config ai-usage.yaml

Example ai-usage.yaml:

title: My AI Coding Stack
timeframe: "2026 — All Time"
username: latentengineer_
theme: dark
metrics:
  - sessions
  - tokens_used
  - cost_usd
tools:
  claude_code:
    sessions: 312
    tokens_used: 23500
    cost_usd: 180
  codex:
    sessions: 88
    tokens_used: 605400
    cost_usd: 240
  cursor:
    sessions: 1971
  gemini:
    sessions: 200
    tokens_used: 8400

CLI Options

Usage: stackpulse [options]

Options:
  -V, --version          output version number
  -c, --config <file>    load from YAML or JSON config file
  -o, --output <name>    output base filename (default: "stackpulse")
  --no-png               skip PNG export prompt
  --theme <theme>        override theme (dark|light|cosmic|forge|arctic|verdant|neon)
  --title <title>        override card title
  --timeframe <range>    override timeframe text
  --username <handle>    override handle
  --init [file]          scaffold a starter YAML config
  -h, --help             display help

How It Works

stackpulse reads only local data — nothing is sent to any server.

┌─────────────────────────────────────────────────────┐
│                    Your Machine                      │
│                                                      │
│  ~/.claude/projects/    ──→  ccusage (sessions,      │
│  ~/.codex/              ──→  tokens, cost, models)   │
│  ~/.gemini/tmp/         ──→  JSONL parser (tokens)   │
│  ~/.kimi/sessions/      ──→  JSON parser (tokens)    │
│  ~/Library/.../Cursor/  ──→  SQLite reader (sessions)│
│  .aider.chat.history.md ──→  File parser (sessions)  │
│                                                      │
│         ↓ all local ↓                                │
│                                                      │
│  ┌─────────────────────────────────────────────┐     │
│  │              stackpulse.html                     │     │
│  │  ┌─────┬──────────────────────────────┐     │     │
│  │  │Donut│  Tool table with bars        │     │     │
│  │  │chart│  + model breakdown           │     │     │
│  │  └─────┴──────────────────────────────┘     │     │
│  │  ┌────────────────────────────────────┐     │     │
│  │  │  Per-tool activity heatmap         │     │     │
│  │  └────────────────────────────────────┘     │     │
│  │  [Save PNG] [Save PDF] [Share on X]         │     │
│  └─────────────────────────────────────────────┘     │
└─────────────────────────────────────────────────────┘

Export Options

The generated HTML card includes built-in export buttons:

  • Save as PNG — captures the full card at 2x resolution via html2canvas
  • Save as PDF — uses the browser's native print dialog
  • Share on X — pre-filled tweet with your tool stats

Requirements

  • Node.js 18+
  • sqlite3 CLI (for Cursor/Antigravity/Roo Code/Kilo Code parsing)
  • Tools you want to track must be installed and have local usage data

Privacy

stackpulse is fully offline. It:

  • Reads only local files on your machine
  • Never sends data to any server
  • Never requires API keys or authentication
  • The HTML output is a standalone file with no external dependencies (except Google Fonts)

Contributing

Contributions welcome! Especially:

  • New tool parsers — if you use an AI coding tool not listed above
  • Themes — add new visual themes to generator.js
  • Bug reports — especially from tools with untested data formats
git clone https://github.com/KrishnaSathvik/stackpulse.git
cd stackpulse
npm install
node index.js

License

MIT © Krishna Sathvik Mantripragada