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.
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:
- Frontend: http://localhost:5173
- Backend API: http://localhost:3001
π Usage
First Time Setup
- Navigate to Settings (
/settings) - Click "Sync Now" to import your Claude Code data from
~/.claude/projects - Monitor real-time progress as your sessions are processed
- View your analytics on the Dashboard (
/)
Navigation
- 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
- API Reference - Complete API endpoint documentation
- Configuration Guide - Environment setup and deployment scenarios
- Development Guide - Development workflow and best practices
- Architecture Guide - Technical architecture and design decisions
- Contributing - How to contribute to the project
π³ 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:
- Claude Code CLI - Data source and inspiration
- TanStack - Router & Query libraries
- Recharts - Beautiful React charts
- Fastify - Fast backend framework
- Tailwind CSS - Utility-first styling
π¨ 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