{"repo":"spences10/claude-code-analytics","free":true,"listed":false,"github":"https://github.com/spences10/claude-code-analytics","clone":"git clone https://github.com/spences10/claude-code-analytics.git","description":"👀 Local-first analytics and statusline for Claude Code - capture sessions, tool calls, costs, and performance into SQLite for fast, actionable insights.","language":"TypeScript","stars":11,"topics":["analytics","claude","claude-code","cli","sqlite","statusline"],"license":"MIT","category":"analytics","readme_excerpt":"Claude Code Analytics This is Claude Code Analytics! It uses ClaudeCode statusline and Claude Code hooks to store information about your Claude Code sessions in a local SQLite database. Hook-Driven Architecture Why use hooks instead of just reading statusline data? The statusline updates every 300ms, so we could do all analytics calculations in real-time. But this marvellous monstrosity explores a different approach: - Hooks do heavy lifting during natural Claude Code pauses (PostToolUse, UserPromptSubmit) - Statusline stays responsive with sub-millisecond lookups of pre-computed data - True zero-impact analytics - expensive queries happen when Claude Code is already waiting - Separation of concerns - data processing vs. display logic The result? A statusline that can show complex productivity insights, cache efficiency metrics, and sparkline visualizations without ever slowing down your workflow. Sometimes the best solution is the most over-engineered one! 😂 There's a CLI for reports and analytics, for example Cost Analytics... Activity patterns... Installation Install globally with your preferred package manager: First Run (Onboarding) Run interactive setup to install the statusline and hooks: This lets you: - Install the statusline and/or lightweight hooks in /.claude/settings.json . - Enable or disable local data collection in /.claude/claude-code-analytics.json . Note: Running claude-code-analytics with no arguments is intended for Claude Code statusline integration and","default_branch":null,"files":null,"tree":[],"storefront":"/r/spences10","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spences10/claude-code-analytics/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}