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

claude-cost-cry

v0.3.7

Published

Emotionally experience your API costs — real-time tracker with floating widget

Downloads

903

Readme

🪙 claude-cost-cry

npm version license Buy Me A Coffee

Your wallet cries every time you call Claude. Watch it happen in real-time.

한국어

npm install -g claude-cost-cry

A floating desktop widget that makes you feel every dollar leaving your wallet — with emotional messages, everyday equivalents, and real-time cost tracking.

Quick Start

cost-cry          # Launch floating overlay widget

That's it. The widget appears in the top-right corner and starts tracking immediately.

On macOS, you may need to run xattr -cr node_modules/electron/dist/Electron.app on first launch.

Features

Floating Overlay Widget

  • Emoji and color change based on cost tier
  • Bounce animation + cost flash on new API calls
  • Widget shakes when cost exceeds $30
  • Drag to reposition, toggle from system tray
  • Expandable panels: daily chart, model breakdown, top 3 expensive requests
  • Settings panel: budget, currency, language, equivalent unit, one-click update

Emotional Cost Tiers

| Cost Range | Emoji | Mood | Example Message | | ---------- | ----- | ------- | ------------------------------------------------------- | | $0 – $1 | 🪙 | Peace | "No worries, this is practically free" | | $1 – $5 | 💸 | Uneasy | "Starting to cost as much as vending machine coffee..." | | $5 – $10 | 🔥 | Worry | "Is this really okay...?" | | $10 – $30 | 🚨 | Alert | "Am I paying Claude a salary...?" | | $30 – $100 | 💀 | Danger | "The bank account is screaming" | | $100+ | ⚰️ | Funeral | "🚨 WARNING: This API key is on fire 🚨" |

Multi-Provider Support

Track costs across multiple LLM providers:

  • 🟣 Claude Code — automatic (local JSONL logs)
  • Cursor IDE — API polling (cost-cry config --add-source cursor)
  • 🟢 OpenAI — local logs (cost-cry config --add-source openai:/path/to/logs)
  • 🔵 Google Gemini — local logs (cost-cry config --add-source google:/path/to/logs)

Everyday Equivalents

Your cost is converted into relatable items — because "$3.50" means nothing, but "🍲 Gukbap 0.6" hurts:

☕ Iced Americano · 🍢 Tteokbokki · 🍲 Gukbap · 🍱 Lunch · 🍗 Fried Chicken · 📺 Netflix · 🥤 Frappuccino

Customizable via CLI or overlay settings. Add your own units too.

CLI

cost-cry cli                       # Real-time terminal tracking
cost-cry report                    # Weekly report
cost-cry report --monthly          # Monthly report
cost-cry config                    # View current settings
cost-cry config --daily-budget 10  # Set daily budget ($10)
cost-cry config --currency KRW     # Switch display currency
cost-cry config --language ko      # Switch to Korean
cost-cry config --nudge off        # Disable savings nudge
$ cost-cry cli

  🪙 claude-cost-cry v0.3.3
  Emotionally experience your API costs

  📊 Today's total: $2.41 (☕ Iced Americano 0.8)
     12 API calls

  ────────────────────────────────────────────────────────
  Watching... (Ctrl+C to exit)
  ────────────────────────────────────────────────────────

  [14:32:15] Opus  📥 15.2K 📤 1.2K
  🔥 +$0.38  →  Total: $8.73  🍗 0.5
     "Could've gone to a fancy buffet with this money..."

  [14:35:22] Sonnet  📥 8.3K 📤 2.1K
  💸 +$0.06  →  Total: $8.79  🍗 0.5
     "Your wallet is literally crying"

Budget Alerts

When a budget is set:

  • 70% → 💡 warning, 90% → ⚠️ warning, 100% → 🚫 exceeded

Savings Nudge

Shows how much you could save using a cheaper model — in real time:

  💡 Would be $0.02 with Haiku (save $0.36)

How It Works

Claude Code saves API call logs as JSONL files under ~/.claude/projects/. cost-cry watches these files in real time, extracts token usage, and calculates cost based on official pricing.

No proxy or API key required. Only reads local log files (or polls Cursor's internal API).

Supported Models & Pricing

| Model | Input ($/1M) | Output ($/1M) | | -------------- | ------------ | ------------- | | Claude Opus | $15.00 | $75.00 | | Claude Sonnet | $3.00 | $15.00 | | Claude Haiku | $0.80 | $4.00 | | GPT-4o | $2.50 | $10.00 | | GPT-4o mini | $0.15 | $0.60 | | Gemini 2.5 Pro | $1.25 | $10.00 | | Gemini Flash | $0.075 | $0.30 |

Cache tokens are automatically reflected (write: 1.25x, read: 0.1x).

Requirements

  • Node.js >= 18
  • Claude Code installed (~/.claude/ directory) or another supported provider

Disclaimer

Cost calculations are estimates for reference. For exact billing, check the Anthropic Dashboard.

Support

If this tool saved you from a heart attack, consider buying me a coffee:

Buy Me A Coffee

License

MIT