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

ccsearch

v0.0.8

Published

A powerful search and management tool for Claude AI conversation sessions

Readme

ccsearch - Claude Conversation Search

A powerful search and management tool for Claude AI conversation sessions. Search, browse, export, and import your Claude conversation history with ease.

Features

🔍 Advanced Search

  • Full-text search across all conversation history
  • Multi-term search with relevance scoring
  • Project-based filtering
  • Title and content weighted search
  • Contextual highlights with surrounding text
  • Tag-based filtering for organized session management

💻 Dual Interface

  • CLI mode: Direct command-line search and export
  • Web UI: Browser-based intuitive interface
    • Real-time search
    • Session list view
    • Full conversation viewer
    • Batch selection
    • Dark mode support with persistent preferences
    • Multi-language support (English/Japanese)

🎯 Enhanced Filtering & Sorting

  • Tag Management: Add, edit, and filter sessions by custom tags
  • Advanced Filters:
    • Date range filtering (from/to dates)
    • Message count filtering (min/max)
    • Active filter indicators
  • Smart Sorting: Sort by update time, creation time, or message count

📤 Export/Import

  • Selective export (by project, recent N sessions)
  • Batch export for multiple sessions
  • Cross-platform support with path normalization
  • Import preview functionality with dedicated import mode
  • Complete data preservation in JSON format

🔗 Claude CLI Integration

  • One-click session resumption in Claude CLI
  • Direct access via session ID
  • Automatic session detection from ~/.claude/projects/

🌐 Internationalization

  • Full UI translation support
  • Available in English and Japanese
  • Auto-detection of browser language preference
  • Persistent language selection

Installation

Global Installation

npm install -g ccsearch

Use with npx (no installation required)

# Run the latest version
npx ccsearch@latest

# Run with custom port
npx ccsearch@latest --port 8080

# Export sessions
npx ccsearch@latest export -l 10 -o sessions.json

# Search sessions
npx ccsearch@latest search "your search query"

Quick Start

# Start the web interface immediately
npx ccsearch@latest

# Open your browser to http://localhost:3210

Usage

CLI Commands

# Start the web server (default port: 3210)
ccsearch

# Start with custom port
ccsearch --port 8080

# Export recent sessions
ccsearch export -l 10 -o recent-sessions.json

# Export from specific project
ccsearch export -p /path/to/project -o project-sessions.json

# Interactive export mode
ccsearch export -i

# Search from command line
ccsearch search "API implementation"

CLI Options

Global Options

  • --port <number>: Specify custom port for web server (default: 3210)

Export Options

  • -p, --project <path>: Filter by project path
  • -l, --last <number>: Export last N sessions
  • -i, --interactive: Interactive session selection mode
  • -o, --output <file>: Output file path (default: ccsearch-export.json)

Web Interface

  1. Start the server:

    ccsearch
    # or with custom port
    ccsearch --port 8080
  2. Open your browser to http://localhost:3210 (or your custom port)

  3. Use the interface to:

    • Search conversations with keywords
    • Filter by project
    • Select multiple sessions
    • Export selected sessions
    • Open sessions in Claude CLI

Export Format

Exported data follows this structure:

{
  "version": "1.1",
  "exportDate": "2024-01-01T00:00:00.000Z",
  "sessionCount": 10,
  "exportedFrom": "darwin",
  "sessions": [
    {
      "id": "session-id",
      "title": "Session Title",
      "created_at": "2024-01-01T00:00:00.000Z",
      "updated_at": "2024-01-01T00:00:00.000Z",
      "messages": [
        {
          "role": "user",
          "content": "Message content",
          "timestamp": "2024-01-01T00:00:00.000Z"
        }
      ],
      "project": "/path/to/project"
    }
  ]
}

Technical Details

Architecture

  • Backend: Node.js/TypeScript with Express
  • Frontend: React/TypeScript
  • Data Format: JSONL (Claude's native format)
  • Search Algorithm: Full-text search with relevance scoring

Requirements

  • Node.js 16+
  • Claude CLI (for session opening functionality)
  • Access to ~/.claude/projects/ directory

Development

# Clone the repository
git clone https://github.com/suthio/ccsearch.git
cd ccsearch

# Install dependencies
npm install

# Development mode (with hot reload)
npm run dev

# Development with unified server (single port)
npm run dev:unified

# Build for production
npm run build

# Start production server
npm start

Recent Updates

Session Analysis and Enhanced UI (2025-07-03)

  • Session Content Analysis: Automatically detects conversation type (coding, debugging, Q&A, etc.)
  • Enhanced Session List: Shows conversation topics, duration, code blocks, and error indicators
  • Improved Detail View:
    • Session summary with key statistics and insights
    • Compact/full message view toggle
    • Better message formatting with role colors and numbering
  • Smart Message Preview: Displays important messages (questions, errors) first

Enhanced Session Preview (2025-07-03)

  • Improved session preview to show multiple messages instead of just the first one
  • Preview now displays up to 5 messages with role indicators (User/Assistant)
  • Color-coded roles for better readability (blue for User, green for Assistant)
  • Enhanced expanded view with up to 10 messages and better formatting
  • Added hover effects and improved UI responsiveness

Search Enhancement (2025-07-03)

  • Fixed search functionality to include tool_result content in Claude sessions
  • Tool results (like file contents shown by Claude) are now searchable
  • This allows searching for content within files that Claude displayed using tools

Unified Server

  • Added unified server mode that serves both API and Web UI on a single port
  • Use npm run dev:unified for development or npm start for production
  • Default port is 3210 for both API and static file serving
  • Eliminates CORS issues and simplifies deployment

Internationalization and Enhanced UI (2025-07-06)

  • Full Internationalization Support:
    • Complete UI translation for English and Japanese
    • Auto-detection of browser language preference
    • Language switcher component for easy language toggling
    • Persistent language selection stored in localStorage
  • Dark Mode:
    • Toggle between light and dark themes
    • Persistent theme preference
    • Application-wide theme context
  • Advanced Filtering System:
    • Tag-based filtering with tag editor and visual indicators
    • Date range filtering (from/to dates)
    • Message count filtering (min/max)
    • Active filter indicators with reset functionality
  • Enhanced Sorting Options:
    • Sort by update time, creation time, or message count
    • Visual icons for each sort option
    • Persistent sort preference
  • Import Mode Enhancement:
    • Dedicated import context with visual indicators
    • "Import Mode" banner during active imports
    • Improved import workflow management

Unique Features

  • Smart Path Normalization: Handles project paths across Windows/Mac/Linux
  • Relevance Scoring: Title matches weighted higher in search results
  • Context Preservation: Shows search matches with surrounding context
  • Batch Operations: Select and process multiple sessions at once
  • Import Preview: Browse and search imported sessions before integration

License

MIT

Contributing

Issues and pull requests are welcome at https://github.com/suthio/ccsearch