Data engineering · 2026 · Open source
Claude Code Analytics Platform
Analytics and forecasting for AI coding telemetry
A complete analytics platform for AI telemetry monitoring: JSONL telemetry is normalized into a DuckDB warehouse and served through Streamlit dashboards, FastAPI analytics endpoints, and machine-learning forecasts.
- Analytics APIs
- Usage forecasting
- One-command run
- CI-tested
Architecture
Key features
Unified ingestion
JSONL telemetry logs and employee datasets loaded into warehouse structures.
Validation
Parsing, normalization, and data validation for large volumes of events.
Fast queries
DuckDB storage tuned for local OLAP workloads, with pre-aggregations.
Analytics API
FastAPI endpoints for events, metrics, user insights, and forecasts.
Forecasting
Scikit-learn RandomForest models and forecasting pipelines.
Quality gates
Pytest, Ruff, Black, isort, pre-commit hooks, and GitHub Actions CI.
The problem
Telemetry was scattered and there was no central analytics API, so reporting was manual and slow.
What I built
- Ingestion pipelines that process JSONL telemetry logs and employee datasets into analytical warehouse structures.
- Streamlit dashboards for token usage, model utilization, peak activity periods, and user behavior.
- FastAPI services for events, metrics, user insights, and forecasting endpoints.
- Real-time simulation tooling that generates producer–consumer telemetry for event-streaming demos.
- Orchestration scripts that deploy and run the complete pipeline with one command.
Results
- Telemetry centralized behind programmatic APIs, replacing manual reporting.
- Reproducible dashboards and faster ad-hoc analysis for downstream services.
Tech stack
- Python
- DuckDB
- FastAPI
- Streamlit
- scikit-learn
- pandas
- Pytest
- Ruff
- GitHub Actions
Run it locally
- 1
Clone the repository
git clone https://github.com/mrprogrammingx/claude-code-analytics-platform.git - 2
Install the dependencies and run the ingestion and materialization scripts
- 3
Start the Streamlit dashboard and the FastAPI service to explore the data