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-dashboard-local

v1.0.5

Published

A local dashboard that visualizes your Claude Code usage, costs, and patterns

Downloads

537

Readme

What it does

  • Visualize all your Claude Code projects as an interactive 3D terrain — peaks represent token usage over time
  • Inspect any session to see first prompt, last prompt, model, message count, and full token breakdown
  • Estimate your API-equivalent cost and compare it against your actual plan — see exactly how much value your subscription delivers
  • Analyze usage patterns with 8 analytics sections: cost breakdown, model distribution, daily trends, activity heatmap, context utilization, cache efficiency, session durations, and project rankings
  • Drill down into any metric with detail modals showing per-project tables, time series, scatter plots, and actionable insights
  • Run locally — your data never leaves your machine, reads directly from ~/.claude

Quick Start

git clone https://github.com/hummusonrails/claude-code-inspector.git
cd claude-inspector
npm install
npm run build
npx next start -p 3001

Open http://localhost:3001 in your browser.

Requires Node.js 18+ and an existing ~/.claude directory from Claude Code usage.

Stack

| Layer | Tool | Notes | |:------|:-----|:------| | Framework | Next.js 16 (App Router) | Server-side API routes read ~/.claude data | | 3D visualization | Three.js | Terrain mesh, bloom post-processing, raycasted interaction | | Styling | Tailwind CSS 4 | Dark glassmorphism theme with cyan accents | | Charts | Pure SVG | No chart library — all visualizations are hand-rolled SVG | | Language | TypeScript 5 | Strict mode, full type coverage | | Data | ~/.claude/projects/ | JSONL session files streamed line-by-line |

  • Node.js 18+
  • Claude Code CLI installed and used at least once (creates ~/.claude)
  • A modern browser with WebGL support (for the 3D terrain)

Usage

3D terrain view

The default view renders all your projects as a 3D terrain landscape. Each ridge represents a project, and peaks correspond to high token usage sessions. Click any glowing data point to open a detail modal.

  • Orbit — click and drag to rotate
  • Zoom — scroll wheel
  • Pan — right-click drag
  • Click data points — opens session detail modal with full token breakdown

Project detail view

Click any project in the sidebar to see:

  • Session list with model badges, sparklines, and expandable token breakdowns
  • First and last prompts for each session
  • "View Full Details" button opens a tabbed modal with overview, prompts, token usage donut chart, and context timeline

Analytics view

Click "Analytics" in the sidebar. Eight sections, each clickable for drill-down detail:

| Section | What it answers | |:--------|:----------------| | Cost & Value Analysis | How much am I spending vs my plan? | | Model Usage Breakdown | Which models do I use most? | | Daily Activity Trend | Is my usage growing or shrinking? | | Context Window Utilization | Am I hitting context limits? | | Activity Heatmap | When do I code with Claude? | | Cache Efficiency | How much is caching saving me? | | Session Duration Distribution | How long are my sessions? | | Top Projects | Which projects cost the most? |

Select your Claude plan (Pro, Max 5x, Max 20x, Teams, or API) to see your value multiplier — how many dollars of API-equivalent value you get per dollar of subscription.

Activating Analytics Pro

  1. Purchase a license key ($14.99, includes 1 year + 2 activations)
  2. Open Claude Code Inspector in your browser
  3. Click Analytics in the sidebar
  4. Click Already have a key? Click to activate
  5. Paste your license key and click Activate

Your key is saved locally and persists across sessions. The 3D terrain view, project inspection, and session modals are always free.

Project structure

src/
├── app/
│   ├── api/
│   │   ├── projects/
│   │   │   ├── route.ts              # list all projects
│   │   │   └── [id]/
│   │   │       ├── route.ts          # project detail
│   │   │       └── sessions/
│   │   │           └── [sessionId]/
│   │   │               └── route.ts  # session detail
│   │   └── stats/
│   │       └── route.ts              # global stats
│   ├── layout.tsx
│   ├── page.tsx                      # main app shell
│   └── globals.css
├── components/
│   ├── ContextModal.tsx              # session detail modal with tabs
│   ├── ProjectDetail.tsx             # project view with expandable sessions
│   ├── Sidebar.tsx                   # project list + view switcher
│   ├── Sparkline.tsx                 # inline SVG sparkline
│   ├── StatsBar.tsx                  # top-level stats row
│   └── TerrainVisualization.tsx      # three.js 3D terrain
└── lib/
    └── claude-data.ts                # reads and parses ~/.claude data

How it reads your data

The app reads directly from ~/.claude/projects/ on your filesystem. Each project directory contains JSONL session files that are streamed line-by-line for efficiency. No data is sent anywhere — everything stays local.

Token pricing estimates use current published API rates:

| Model | Input | Output | Cache read | Cache write | |:------|:------|:-------|:-----------|:------------| | Opus 4.6 / 4.5 | $5/MTok | $25/MTok | $0.50/MTok | $6.25/MTok | | Sonnet 4.6 / 4.5 / 4 | $3/MTok | $15/MTok | $0.30/MTok | $3.75/MTok | | Haiku 4.5 | $1/MTok | $5/MTok | $0.10/MTok | $1.25/MTok |

Contributing

Contributions are welcome. Open an issue or submit a PR.

License

This project is licensed under the GNU Affero General Public License v3.0. If you deploy this as a service, you must make your source code available to users.