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

cc-viewer

v1.4.13

Published

Claude Code Logger visualization management tool

Readme

CC-Viewer

A Claude Code request monitoring system that captures and visualizes all API requests and responses from Claude Code in real time (raw text, unredacted). Helps developers monitor their context for review and troubleshooting during Vibe Coding sessions.

English | 简体中文 | 繁體中文 | 한국어 | 日本語 | Deutsch | Español | Français | Italiano | Dansk | Polski | Русский | العربية | Norsk | Português (Brasil) | ไทย | Türkçe | Українська

Usage

Installation

npm install -g cc-viewer

Running and Auto-Configuration

ccv

This command automatically detects how Claude Code is installed locally (NPM or Native Install) and adapts accordingly.

  • NPM Install: Automatically injects an interceptor script into Claude Code's cli.js.
  • Native Install: Automatically detects the claude binary, configures a local transparent proxy, and sets up a Zsh Shell Hook to forward traffic automatically.

Configuration Override

If you need to use a custom API endpoint (e.g., a corporate proxy), simply configure it in ~/.claude/settings.json or set the ANTHROPIC_BASE_URL environment variable. ccv will automatically detect and correctly forward requests.

Silent Mode

By default, ccv runs in silent mode when wrapping claude, keeping your terminal output clean and consistent with the native experience. All logs are captured in the background and can be viewed at http://localhost:7008.

Once configured, use the claude command as normal. Visit http://localhost:7008 to access the monitoring interface.

Troubleshooting

If you encounter issues starting cc-viewer, here is the ultimate troubleshooting approach:

Step 1: Open Claude Code in any directory.

Step 2: Give Claude Code the following instruction:

I have installed the cc-viewer npm package, but after running ccv it still doesn't work properly. Please check cc-viewer's cli.js and findcc.js, and adapt them to the local Claude Code deployment based on the specific environment. Keep the scope of changes as constrained as possible within findcc.js.

Letting Claude Code diagnose the issue itself is more effective than asking anyone or reading any documentation!

After the above instruction is completed, findcc.js will be updated. If your project frequently requires local deployment, or if forked code often needs to resolve installation issues, keeping this file lets you simply copy it next time. At this stage, many projects and companies using Claude Code are not deploying on Mac but rather on server-side hosted environments, so the author has separated findcc.js to make it easier to track cc-viewer source code updates going forward.

Uninstall

ccv --uninstall

Check Version

ccv --version

Features

Request Monitoring (Raw Mode)

Conversation Mode

Click the "Conversation Mode" button in the top-right corner to parse the Main Agent's full conversation history into a chat interface:

  • Agent Team display is not yet supported
  • User messages are right-aligned (blue bubbles), Main Agent replies are left-aligned (dark bubbles)
  • thinking blocks are collapsed by default, rendered in Markdown, and can be expanded to view the reasoning process; one-click translation is supported (feature is still unstable)
  • User selection messages (AskUserQuestion) are displayed in a Q&A format
  • Bidirectional mode sync: switching to Conversation Mode automatically navigates to the conversation corresponding to the selected request; switching back to Raw Mode automatically navigates to the selected request
  • Settings panel: toggle the default collapsed state of tool results and thinking blocks
  • Mobile chat browse: in mobile CLI mode, tap the "Chat Browse" button in the top bar to slide in a read-only chat view overlay, allowing you to browse the full conversation history on your phone

Statistics Tool

The "Data Statistics" floating panel in the header area:

  • Displays cache creation/read counts and cache hit rate
  • Cache rebuild statistics: grouped by reason (TTL, system/tools/model changes, message truncation/modification, key changes) showing counts and cache_creation tokens
  • Tool usage statistics: displays call frequency for each tool sorted by number of calls
  • Skill usage statistics: displays call frequency for each skill sorted by number of calls
  • Concept help (?) icon: click to view built-in documentation for MainAgent, CacheRebuild, and each tool

Log Management

Via the CC-Viewer dropdown menu in the top-left corner:

  • Import local logs: browse historical log files grouped by project, open in a new window
  • Load local JSONL file: directly select a local .jsonl file to load and view (supports up to 500MB)
  • Save current log as: download the current monitoring JSONL log file
  • Merge logs: combine multiple JSONL log files into a single session for unified analysis
  • View user Prompts: extract and display all user inputs, supporting three view modes — Raw mode (original content), Context mode (system tags collapsible), Text mode (plain text); slash commands (/model, /context, etc.) shown as standalone entries; command-related tags are auto-hidden from Prompt content
  • Export Prompts to TXT: export user Prompts (plain text, excluding system tags) to a local .txt file

Multi-language Support

CC-Viewer supports 18 languages, automatically switching based on system locale:

简体中文 | English | 繁體中文 | 한국어 | Deutsch | Español | Français | Italiano | Dansk | 日本語 | Polski | Русский | العربية | Norsk | Português (Brasil) | ไทย | Türkçe | Українська

Auto-Update

CC-Viewer automatically checks for updates on startup (at most once every 4 hours). Within the same major version (e.g., 1.x.x → 1.y.z), updates are applied automatically and take effect on the next restart. Cross-major-version updates only show a notification.

Auto-update follows Claude Code's global configuration in ~/.claude/settings.json. If Claude Code has auto-updates disabled (autoUpdates: false), CC-Viewer will also skip auto-updates.

License

MIT