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

ccviz

v0.3.1

Published

CLI tool to visualize Claude Code conversations

Readme

ccviz

CLI tool to visualize Claude Code conversations. Opens a browser UI to explore conversation transcripts stored in ~/.claude/, with focus on debugging MCP tool calls, identifying context bloat, and understanding token/timing patterns.

npm

Install

npm i -g ccviz

Usage

# Start the browser UI
ccviz

# Custom port
ccviz --port 8080

# Don't auto-open browser
ccviz --no-open

# Dump a conversation as JSON (no server)
ccviz --json ~/.claude/projects/-Users-you-code-myproject/session-id.jsonl

# Open directly to a specific conversation
ccviz --conversation -Users-you-code-myproject/session-id

Features

Project Browser

  • Hierarchical folder tree of all Claude Code projects in ~/.claude/projects/
  • Most recent conversations shown on the landing page
  • Search/filter conversations by title, model, or session ID

Conversation View

Five tabs for analyzing a conversation:

Timeline — Turn-by-turn view with expandable user/assistant messages. Each turn shows a context contribution bar (green→red heat scale) and expandable tool call cards with full input parameters and result previews.

Tokens — Stacked area chart of per-turn token usage (input, output, cache creation, cache read) and cumulative context growth line chart. Interactive tooltips and per-turn breakdown table.

Tools — Sortable table of all tool calls with duration, result size, and MCP server info. Aggregation bar charts for call count and result size by tool. Filter by tool name or MCP/native. Click any row to see full input/output.

Context — Per-tool stacked bar chart showing exactly which tools cause context spikes at each turn. Click any bar segment to inspect the tool calls. Pie chart of context consumption by tool category — click a slice to drill down and see every call with input params and results. Optimization suggestions flag large results, repeated calls, and oversized reads.

Subagents — List of spawned subagents with token usage comparison bars. Click to expand and see the subagent's own timeline.

Data Source

Reads conversation transcripts from ~/.claude/projects/. Each project directory contains .jsonl files (one per conversation) with the full message history, tool calls, token usage, and subagent transcripts.

Tech Stack

  • CLI: Node.js, Commander, open
  • Server: Express 5
  • Parser: Streaming JSONL parser (handles 25MB+ conversations)
  • UI: React 19, Vite, Tailwind CSS v4, visx for visualizations
  • Build: tsup (server), Vite (UI)

Development

git clone https://github.com/dhruvyad/ccviz.git
cd ccviz
npm install
npm run dev    # Starts Express + Vite dev server with HMR
npm run build  # Production build
npm start      # Run production build

License

MIT