I'll build this Minecraft analytics dashboard — called "CraftMetrics" — with live-updating filters, animated KPI cards, Recharts visualizations, a sortable table, and a dark mode toggle. First, let me explore the project setup.
Tailwind v4 setup. Let me check the existing CSS and HTML entry.
Now installing the charting, animation, and icon libraries:
Now I'll build the core files. Starting with the HTML entry (title + fonts) and the global stylesheet with theme tokens for Tailwind v4:
Now the data engine — deterministic, seeded time-series generation with weekly seasonality, weekend spikes, and growth trends so every filter combination produces realistic data:
Minor lint fix — removing the unused index parameter:
Now the app chrome — pixel-cube logo, sticky header with theme toggle, and the customer-facing CTA banner:
Quick cleanup of two small issues in the chrome file:
Now the filter toolbar (date range, segment, live pulse) and the KPI cards with animated counters and sparklines:
Now the chart suite — custom tooltips, the activity area chart with series toggles, revenue bars, the donut, and a GitHub-style playtime heatmap:
Quick lint fixes in the charts file:
Also simplifying a redundant tick-interval expression:
Now the sortable, filterable, exportable content performance table:
Now the main App that wires everything together with live filter state and theme management:
Adding the className pass-through to the heatmap component:
Now let's verify the full build:
The build succeeded. Here's a rundown of the CraftMetrics dashboard I created:
What was built
Data engine (src/lib/data.ts) — A deterministic, seeded random generator that produces realistic Minecraft analytics: daily active players with weekend spikes, mid-week dips, seasonal waves and an organic growth trend, plus derived metrics (new players, sessions, revenue, retention, session length). Every filter combination generates its own stable dataset, including a previous period series so trend deltas are genuine comparisons.
Live filters (Toolbar.tsx) — A 7D/30D/90D segmented control with a spring-animated sliding pill, a player-segment dropdown (All / New / Returning / Java / Bedrock / Console / Mobile), and a pulsing "Live" badge. Changing either filter re-feeds every single view — cards, charts, heatmap, and table all transition at once.
KPI cards (KpiCard.tsx) — Four cards (daily players, gross revenue, D1 retention, session length) with eased count-up animations on every filter change, up/down trend badges versus the previous period, and gradient sparklines rendering each metric's own time series.
Chart suite (charts.tsx)
- Player activity — dual-gradient area chart with custom glass tooltips (players, new players, sessions per day) and clickable legend pills that toggle series
- Revenue by game mode — animated bar chart with rounded, color-coded bars and currency tooltips
- Audience donut — switches contextually (platform mix ↔ audience loyalty when you drill into a platform), with center total, hover share tooltips, and a value legend
- Playtime heatmap — GitHub-style 7×12 day/hour grid (typical Minecraft evening peaks) with hover popovers and a low/peak scale legend
Data table (ContentTable.tsx) — 14 marketplace items with pixel-block avatars, category chips, sortable header columns, live search, category filtering, rank badges, growth indicators, and a working CSV export of the current view.
Theme & polish — Dark/light toggle (persisted, respects system preference) with a sliding sun/moon switch, Space Grotesk display type with tabular tabular number fonts, ambient glow + blueprint-grid background, staggered entrance animations, sticky blur header, and a customer-facing demo badge + gradient CTA banner. Fully responsive from mobile (stacked cards, scrollable table) to wide desktop.
Files built: index.html, src/index.css, src/lib/data.ts, src/hooks/useAnimatedNumber.ts, src/components/chrome.tsx, src/components/Toolbar.tsx, src/components/KpiCard.tsx, src/components/charts.tsx, src/components/ContentTable.tsx, src/App.tsx