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

@every-env/cctime

v1.0.5

Published

Claude Code Transcript Time Analyzer - Analyze response times from claude.ai transcripts

Downloads

9

Readme

cctime - Claude Code Response Time Analyzer

Analyze response times from Claude Code sessions to understand performance patterns and optimize your AI-assisted development workflow.

Features

  • 📊 Daily Response Time Analytics: Track how long Claude takes to respond to your messages
  • 📈 Trend Visualization: ASCII charts showing response time trends over time
  • 🗂️ Session Analysis: Break down response times by individual sessions
  • 📊 Statistical Insights: Percentiles (P50, P90, P99), averages, and totals
  • 💾 Multiple Export Formats: JSON, CSV, and Markdown reports
  • 🎨 Interactive Terminal UI: Built with Ink (React for CLIs)
  • Real-time Updates: Watch mode for monitoring active sessions

Installation

# Clone the repository
git clone https://github.com/EveryInc/cctime.git
cd cctime

# Install dependencies with Bun
bun install

# Run the CLI
bun run src/cli.tsx

Usage

Interactive Mode (default)

# Launch interactive dashboard
bun run src/cli.tsx

# Navigate with keyboard:
# - ↑/↓: Navigate table rows
# - Tab: Switch between table and chart
# - Enter: View details for selected date
# - s: Cycle sort options
# - e: Export data
# - q: Quit

Command Line Options

# Analyze specific date range
bun run src/cli.tsx --from 2024-01-01 --to 2024-01-31

# Export directly without interactive mode
bun run src/cli.tsx --no-interactive --export report.json --export-format json

# Export as CSV
bun run src/cli.tsx --no-interactive --export report.csv --export-format csv

# Export as Markdown report
bun run src/cli.tsx --no-interactive --export report.md --export-format markdown

How It Works

cctime analyzes the JSONL transcript files that Claude Code stores locally:

  • Location: ~/.claude/projects/{project-path}/{sessionId}.jsonl
  • Calculates time between user messages and Claude's responses
  • Aggregates data by day, session, and overall statistics
  • Provides insights into Claude's response patterns

Export Formats

JSON Export

Complete data structure with all metrics, suitable for further analysis.

CSV Export

Tabular format with daily breakdowns, perfect for spreadsheet analysis.

Markdown Export

Human-readable report with tables and statistics, great for documentation.

Architecture

Built using a parallel development approach with 5 independent streams:

  1. Data Processing: JSONL parsing and response time calculation
  2. File System: Session discovery and caching
  3. UI Components: Ink-based terminal UI components
  4. State Management: React-style state handling
  5. CLI & Config: Command-line interface and configuration

Core Modules

  • src/parser/: JSONL file parsing
  • src/calculator.ts: Response time calculations
  • src/aggregator.ts: Data aggregation and statistics
  • src/finder.ts: Claude session file discovery
  • src/components/: Ink UI components
  • src/export/: Export functionality

Development

# Run tests
bun test

# Run demo with sample data
bun run demo.ts

# Test core functionality
bun run test-minimal.ts

Configuration

Create ~/.cctime/config.json:

{
  "theme": {
    "primaryColor": "cyan",
    "successColor": "green",
    "errorColor": "red"
  },
  "analysis": {
    "outlierThresholdMs": 300000,
    "defaultDateRangeDays": 30
  },
  "export": {
    "defaultPath": "./exports",
    "includeDetailedStats": true
  }
}

License

MIT