Skip to content

desis123/claude-code-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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 Issues β€’ Feature Requests