Claude Code Analytics Dashboard

November 23, 2025 Β· View on GitHub

Claulytics - Your personal analytics dashboard for Claude Code CLI usage tracking with beautiful visualizations and detailed insights.

Status Progress Claude Code 2.0

Track your Claude Code usage patterns, costs, and productivity metrics with this feature-rich analytics dashboard built specifically for individual developers.

✨ Key Features

  • πŸ“Š Comprehensive Analytics - Track sessions, costs, tokens, and model usage with detailed metrics
  • πŸ“ˆ Interactive Visualizations - Beautiful charts powered by Recharts with drill-down capabilities
  • πŸ”„ Real-time Sync - Advanced data synchronization with progress tracking and error handling
  • 🎯 Smart Filtering - Date ranges, URL-persistent filters, and seamless navigation
  • πŸ”’ Privacy First - All data remains localβ€”no external uploads or sharing
  • πŸš€ Claude Code 2.0 - Full support for extended sessions, checkpoints, and subagents
  • πŸ“± Responsive Design - Optimized for desktop, tablet, and mobile viewing
  • ⚑ Fast & Type-safe - Built with TypeScript, Vite, and modern React patterns

πŸš€ Quick Start

Prerequisites

  • Node.js 18+
  • PostgreSQL 14+
  • Claude Code CLI 2.0+ (data source)

Installation

# 1. Clone the repository
git clone https://github.com/istealersn-dev/claude-code-analytics.git
cd claude-code-analytics

# 2. Install dependencies
npm install
cd frontend && npm install && cd ..

# 3. Set up the database
createdb claude_code_analytics
psql -d claude_code_analytics -f schema.sql

# 4. Configure environment
cp .env.example .env
# Edit .env with your database credentials

# 5. Start the application
npm run dev:all

That's it! Open your browser to:

πŸ“– Usage

First Time Setup

  1. Navigate to Settings (/settings)
  2. Click "Sync Now" to import your Claude Code data from ~/.claude/projects
  3. Monitor real-time progress as your sessions are processed
  4. View your analytics on the Dashboard (/)
  • Dashboard (/) - Overview with key metrics and trend charts
  • Sessions (/sessions) - Detailed session list with filtering
  • Session Details (/sessions/:id) - Deep-dive into individual sessions
  • Settings (/settings) - Data sync and configuration

Features in Action

Interactive Charts: Click any data point to filter sessions by date

Date Filtering: Use the date range picker (7d, 30d, 90d, custom) for time-based analysis

Real-time Sync: Watch progress indicators as new Claude Code data is processed

Data Quality: Built-in validation ensures data integrity with automated cleanup

πŸ—οΈ Tech Stack

Frontend: React + TypeScript + Vite + Tailwind CSS + TanStack Router/Query + Recharts

Backend: Fastify + TypeScript + PostgreSQL

DevOps: Docker + Docker Compose + Vitest + Biome

See docs/ARCHITECTURE.md for detailed technical information.

πŸ“š Documentation

🐳 Docker Deployment

# Quick start with Docker Compose
cp .env.example .env
# Edit .env with your settings

docker-compose up -d

# View logs
docker-compose logs -f

# Stop services
docker-compose down

See docs/CONFIGURATION.md for production deployment guides.

πŸ”§ Development

# Start both backend and frontend
npm run dev:all

# Or run separately
npm run dev              # Backend only
npm run dev:frontend     # Frontend only

# Run tests
npm run test

# Build for production
npm run build:all

See docs/DEVELOPMENT.md for detailed development workflow.

πŸ—ΊοΈ Roadmap

βœ… Completed (v1.0 - Production Ready)

  • βœ… Phase 1-6: Complete data pipeline, frontend, analytics, and production deployment
  • βœ… Claude Code 2.0: Extended sessions, checkpoints, subagents, VS Code integration
  • βœ… Testing Suite: Comprehensive unit, integration, and E2E tests
  • βœ… Docker: Production-ready containerization
  • βœ… Claulytics Branding: Modern UI with enhanced design system

🎯 Future Enhancements

  • πŸ“€ Data Export - CSV, PNG, PDF export capabilities
  • πŸ”” Alerts - Custom metrics and threshold alerts
  • πŸ“Š Advanced Filters - Project-based and model-based filtering
  • πŸ“§ Reporting - Automated weekly/monthly reports (optional)
  • πŸ”— Integrations - Slack notifications, webhooks (optional)

See TODOs.md for detailed post-launch enhancement plans.

🀝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for:

  • Code of Conduct
  • Development setup
  • Pull request process
  • Code style guidelines

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

Built with:

🎨 Branding Note

The dashboard features Claulytics branding in the UI, while the project repository retains the name "claude-code-analytics" for consistency with existing installations.


Built with ❀️ for the Claude Code community

Report Bug Β· Request Feature Β· View Docs