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-code-summary

v0.3.1

Published

Visualize and track Claude Code conversation costs with interactive charts, live pricing, and detailed per-session analytics

Readme

🎯 Claude Code Costs Analyzer

Claude Code Costs Analyzer

Modern, interactive cost analysis tool for your Claude Code conversations

Analyze your Claude Code conversation costs with beautiful, interactive visualizations and detailed insights. Get a comprehensive view of your AI usage patterns with dark/light mode support and sortable data tables.


✨ Features

  • 🎨 Modern UI Design - Beautiful dark/light mode interface with gradient backgrounds
  • 📊 Interactive Charts - Dynamic cost visualization with Chart.js
  • 📋 Sortable Tables - Click any column header to sort your conversation data
  • 🌙 Dark Mode - Default dark theme with toggle option
  • 🎯 Project Filtering - Filter conversations by project
  • 📱 Responsive Design - Works perfectly on desktop and mobile
  • 💰 Detailed Cost Analysis - Track spending patterns over time
  • 🔍 Smart Sorting - Intelligent sorting for text, numbers, and dates

🚀 Quick Start

You don't need to install anything! Just run:

npx claude-code-summary

📈 What it analyzes

This tool scans your Claude Code conversations in ~/.claude/projects/ and provides:

💡 Summary Cards

  • Total Costs - Aggregate spending across all conversations
  • Conversation Count - Total number of analyzed conversations
  • Average Cost - Mean cost per conversation

📊 Visual Analytics

  • Daily Cost Trends - Interactive line chart showing last 30 days
  • Top Conversations - Bar chart of your most expensive conversations
  • Project Breakdown - Filter and analyze by specific projects

🗂️ Detailed Data Table

  • Sortable Columns - Click any header to sort (Title, Project, Cost, Messages, Duration, Date)
  • Rich Information - Conversation titles, project names, detailed costs, message counts, and timestamps
  • Project Filtering - Focus on specific projects with dropdown filter

🎨 UI Features

  • 🌙 Dark Mode - Enabled by default with elegant dark theme
  • ☀️ Light Mode - Toggle to light mode with modern gradients
  • 📱 Responsive - Optimized for all screen sizes
  • 🎯 Interactive - Hover effects and smooth animations
  • 🔍 Sortable - Click any table column to sort data intelligently

🛠️ Technical Requirements

  • Node.js 14.0.0 or higher
  • Claude Code conversations in ~/.claude/projects/
  • Modern Browser for optimal HTML report experience

📊 Output

The analyzer generates:

  1. 📱 Console Summary - Quick overview in your terminal
  2. 🌐 Interactive HTML Report featuring:
    • Modern responsive design with dark/light themes
    • Interactive charts and visualizations
    • Sortable data tables with smart column sorting
    • Project-based filtering capabilities
    • Professional footer with developer attribution

🔧 Usage Examples

# Basic analysis
npx claude-code-summary

# The tool will:
# 1. Scan your ~/.claude/projects/ directory
# 2. Calculate costs for all conversations
# 3. Generate an interactive HTML report
# 4. Open the report in your default browser

🎯 Perfect for

  • 💰 Cost Tracking - Monitor your Claude Code spending
  • 📊 Usage Analysis - Understand your AI interaction patterns
  • 🎯 Project Management - Analyze costs by project
  • 📈 Trend Analysis - Track spending over time
  • 🔍 Detailed Insights - Deep dive into conversation data

👨‍💻 Developer

Arda Kalaycı

  • 🐙 GitHub: ardakalayci
  • 💼 Professional software developer and AI enthusiast
  • 🎯 Passionate about creating beautiful, functional tools

📄 License

MIT License - feel free to use, modify, and distribute!


⭐ Like this tool? Give it a star on GitHub and share it with other Claude Code users!