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

ccconv

v0.0.2

Published

A command-line tool for analyzing Claude Code conversation logs

Downloads

3

Readme

ccconv Claude Code Conversations

README(日本語) | README(English)

A command-line tool for handling Claude Code conversation logs

Overview

This tool reads Claude Code conversation logs stored in ~/.claude/projects/ and provides various ways to display and handle the data.

Installation

npm install --global ccconv

After global installation, you can use it as the ccconv command.

Usage

Basic Commands

# Show today's log files and statistics
node ccconv.js

# Export today's conversation data as JSON (default)
node ccconv.js raws

# Export all conversation data as JSON
node ccconv.js raws --since=all

# Export data from specified date onwards
node ccconv.js raws --since=2024-08-20

# Export data from specific project only
node ccconv.js raws --project=ccconv

# Export in conversation-style readable format
node ccconv.js raws --format=talk

# Export in simple key: value format
node ccconv.js raws --format=plain

# Show messages in reverse order (newest first)
node ccconv.js raws --reverse

# Show today's updated projects (default)
node ccconv.js projects

# Show all projects with summary
node ccconv.js projects --since=all

# Show token usage for last 4 hours
node ccconv.js tokens

Project Display Options

# Display in compact one-line format
node ccconv.js projects --one-line

# Sort by token count
node ccconv.js projects --sort=tokens

# Sort by message count
node ccconv.js projects --sort=messages

# Output in JSON format
node ccconv.js projects --json

Data Filtering

# Filter by specific columns
node ccconv.js raws --column=timestamp,type,message.content

# Filter by specific project
node ccconv.js raws --project=ccconv

# Specify output format
node ccconv.js raws --format=talk     # Conversation style
node ccconv.js raws --format=plain    # Key: value format

# Control display order
node ccconv.js raws --reverse         # Show newest messages first (reverse order)

# Filter by message type
node ccconv.js raws --type=user          # User messages only (excludes tool_result)
node ccconv.js raws --type=userandtools # User messages including tool_result
node ccconv.js raws --type=assistant    # Assistant messages + tool_result

Features

Data Display

  • Default: Shows today's created/updated files with size, message count, and token usage
  • raws: Outputs conversation data in JSON format (default: today's data only)
  • projects: Shows project list and summary (default: today's updates only)
  • tokens: Displays total token usage for the last 4 hours

Date Filtering

  • --since=all: Show data from all periods
  • --since=date: Show data from specified date onwards (e.g., --since=2024-08-20)
  • Default: Shows today's data only when no --since option is specified

Project Display Formats

  • Standard format: Detailed information displayed in multiple lines
  • --one-line: Compact one-line format (💬message count ⏱️period 📅last update)
  • --json: JSON format output
  • --sort=: Specify sort order (tokens/messages/update)

Other Features

  • Project Filter: Use --project= to show data from specific project only
  • Output Formats: --format=talk (conversation style), --format=plain (key: value format)
  • Display Order: Use --reverse to show newest messages first (reverse chronological order)
  • Column Filter: Use --column= to specify which fields to display (combinable with --format=plain)
  • Type Filter: Use --type= to filter by message type
  • Nested Access: Supports deep property access like message.content[0].text

Examples

# Show timestamp and token usage for assistant messages from specified date
node ccconv.js raws --since=2024-08-20 --column=timestamp,message.usage --type=assistant

# Show today's projects in one-line format sorted by token count
node ccconv.js projects --one-line --sort=tokens

# Show session ID and working directory for all user messages
node ccconv.js raws --since=all --column=sessionId,cwd --type=user

# Show latest conversations first in talk format
node ccconv.js raws --format=talk --reverse

Data Structure

Claude Code log data follows this structure:

{
  "parentUuid": "UUID of previous message (null for first)",
  "isSidechain": false,
  "userType": "external",
  "cwd": "/working/directory",
  "sessionId": "Session ID",
  "version": "Claude Code version",
  "gitBranch": "Git branch name",
  "type": "user" | "assistant",
  "message": { /* Message content */ },
  "uuid": "UUID of this message",
  "timestamp": "ISO8601 timestamp"
}

Requirements

  • Node.js
  • Claude Code installed (log files must exist in ~/.claude/projects/)

License

MIT