Skip to content

Stats Dashboard Page (/stats) #5228

@MarkusNeusinger

Description

@MarkusNeusinger

Feature: Public Stats Dashboard

A public /stats page that meta-visualizes the platform's own data — a data viz site showing stats about its data viz.

What it shows

  • Summary counters: total specs, total implementations, total lines of code, avg quality score
  • Per-library bar chart: avg quality score, implementation count (pure CSS bars)
  • Coverage heatmap: spec rows x library columns, cells colored by quality score (clickable)
  • Score distribution histogram: 10 buckets (0-100)
  • Top 10 implementations leaderboard (score >= 95)
  • Tag distribution: most common plot types, domains, features
  • Timeline: implementations per month

Technical Approach

  • New router: api/routers/insights.py with GET /insights/dashboard
  • Reuses SpecRepository.get_all() with stale-while-revalidate caching
  • Frontend: app/src/pages/StatsPage.tsx (lazy-loaded)
  • All visualizations rendered as MUI Box elements (no chart library)

Inspired by

GitHub contribution graphs, npm package stats, "Are We There Yet" dashboards

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions