Skip to main content

Beautiful web viewer for Claude Code conversation history

Project description

Claude Code Viewer 🔍

Beautiful web interface for browsing your Claude Code conversation history with search, filtering, and syntax highlighting.

Claude Code Viewer Python License

✨ Features

  • 🔍 Search conversations - Find specific discussions across all your Claude Code history
  • 📂 Project organization - Browse conversations by project with session metadata
  • 💻 Syntax highlighting - Code blocks with proper language detection and copy buttons
  • 🎨 Modern UI - Clean, responsive interface with dark/light theme support
  • Fast pagination - Handle large conversation histories efficiently
  • 🔧 Tool visualization - Clear display of tool usage and outputs

🚀 Quick Start

Installation

pip install claude-code-viewer

Usage

# Start with default settings (looks for ~/.claude/projects)
claude-viewer

# Custom Claude projects path
claude-viewer --projects-path /path/to/your/claude/projects

# Custom port
claude-viewer --port 8080

# Accessible from other machines
claude-viewer --host 0.0.0.0 --port 3000

Then open your browser to: http://localhost:6300

📸 Screenshots

Main Dashboard

Browse all your Claude Code projects with session counts and quick stats.

Conversation View

View conversations with:

  • Proper message formatting and line breaks
  • Syntax-highlighted code blocks with copy buttons
  • Tool usage visualization
  • Search and filtering capabilities

🛠️ Command Line Options

claude-viewer --help

Available options:

  • --projects-path - Path to Claude projects directory (default: ~/.claude/projects)
  • --host - Host to bind the server (default: 127.0.0.1)
  • --port - Port to run on (default: 6300)
  • --version - Show version information

📁 How It Works

Claude Code stores conversation history in JSONL files at ~/.claude/projects/. This tool:

  1. Scans your Claude projects directory
  2. Parses JSONL conversation files
  3. Presents them in a beautiful web interface
  4. Enables search and filtering across all conversations

🔧 Development

Local Development

git clone https://github.com/desis123/claude-code-viewer
cd claude-code-viewer
pip install -e .
claude-viewer

Project Structure

claude-code-viewer/
├── claude_viewer/          # Main package
│   ├── cli.py             # Command line interface  
│   ├── main.py            # FastAPI application
│   └── utils/             # Utilities (JSONL parser)
├── static/                # CSS, JavaScript
├── templates/             # HTML templates
└── setup.py              # Package configuration

🤝 Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development Setup

git clone <your-fork>
cd claude-code-viewer
pip install -e ".[dev]"

📋 Requirements

  • Python 3.8+
  • Claude Code (to generate conversation history)
  • Modern web browser

🐛 Troubleshooting

"Projects path does not exist"

Make sure Claude Code has been used and has created conversation files. The default path is ~/.claude/projects.

"No JSONL files found"

Ensure you have used Claude Code and it has generated conversation history. Try specifying a custom path with --projects-path.

Port already in use

Use a different port: claude-viewer --port 8080

📄 License

Apache 2.0 License - see LICENSE file for details.

🙏 Acknowledgments

📊 Stats

  • 🎯 Zero configuration for most users
  • Sub-second startup time
  • 🔍 Full-text search across all conversations
  • 📱 Mobile responsive design

Made with ❤️ for the Claude Code community

Report IssuesFeature Requests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

claude_code_viewer-1.1.0.tar.gz (31.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claude_code_viewer-1.1.0-py3-none-any.whl (28.5 kB view details)

Uploaded Python 3

File details

Details for the file claude_code_viewer-1.1.0.tar.gz.

File metadata

  • Download URL: claude_code_viewer-1.1.0.tar.gz
  • Upload date:
  • Size: 31.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for claude_code_viewer-1.1.0.tar.gz
Algorithm Hash digest
SHA256 b2302751df55d9189eb902e197c7b8ad1e3da2fc4e78529cb8c7b90ae18022af
MD5 8bd80e960654ba48adbade8e08bdc6d2
BLAKE2b-256 fcb3a7d9762d320377687fe5ec3171326311e028565e92875960f479d45c77da

See more details on using hashes here.

File details

Details for the file claude_code_viewer-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for claude_code_viewer-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 886dded9ec2cbe8bf669510a79fa8178980c9279d800d698cdcf821cc43126ea
MD5 66a60aa98cbfe96ceaba5ae5efde3690
BLAKE2b-256 61cb1db47b961ed9a73ce7cc54b1626a7145e8286ada9a8fec27fe5bce5bd13f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page