Create an interactive analytics dashboard for monitoring a homelab computer aimed at…
- User
Create an interactive analytics dashboard for monitoring a homelab computer aimed at home server admins. Include KPI summary cards with trend indicators, a mix of line, bar, and donut charts with hover tooltips and smooth transitions, a sortable and filterable data table, and date-range and segment filters that update every view live. Use a clean, modern visual style with clear layout hierarchy and a dark mode toggle, generate realistic sample data so every chart feels alive, and make it fully responsive.
Assistant
Installing the required packages for charts, icons, and date utilities.
Now let me update the HTML title and create all the dashboard files. I'll build this with a modular structure.
Now let me create the data generator module:
Now let me create the theme context for dark mode:
Now the KPI cards component:
Now the charts components:
Now the power/temperature chart:
Now the sortable/filterable services data table:
Now the filter bar component:
Now create a services donut chart for service status distribution:
Now the main header component:
Now let me create the main App component that ties everything together:
Now let me update the CSS for dark mode support and some custom styles:
Now let's build and see if there are any issues:
The project builds successfully. Let me verify all the key files are in place:
Everything is in place. The build succeeded. Here's a summary of what was created:
HomeLab Monitor — Server Analytics Dashboard
Architecture & Files
src/App.tsx— Main dashboard orchestrator with state management for filters, auto-refresh (30s), and layoutsrc/context/ThemeContext.tsx— Dark/light mode context with system preference detectionsrc/data/generate.ts— Realistic data generators with daily patterns, usage spikes, and 15 Docker services
Components
Header.tsx— Branded header with live indicator, server specs, and dark mode toggle (sun/moon icons)KPICards.tsx— 6 KPI summary cards (CPU, Memory, Disk I/O, Network, Temperature, Uptime) with color-coded trend arrows showing % changeCPUMemoryChart.tsx— Multi-line area chart (Recharts) for CPU, memory, and temperature with gradient fills and hover tooltipsNetworkChart.tsx— Stacked bar chart showing inbound/outbound throughput over timeDiskDonutChart.tsx— Donut chart for storage partitions (NVMe SSD, RAID1, HDD) with usage bars belowPowerTempChart.tsx— Dual-axis line chart with temperature (°C) and power draw (W)ServiceStatusDonut.tsx— Donut showing running/warning/stopped service health percentageServicesTable.tsx— Full data table with search, status filter dropdown, clickable column sorting (asc/desc), showing service name, container, CPU, memory, port, requests, errors, and uptimeFilterBar.tsx— Date range selector (24h/7d/30d/90d) and segment filter (All/Compute/Storage/Network) with pill-style toggle buttons
Key Features
- Dark mode toggle with system preference auto-detect
- Live updates every 30 seconds with manual refresh button
- Segment filters dynamically show/hide relevant chart sections
- Date range filters slice the 90-day dataset to the selected window
- Smooth animations on all charts (800ms transitions)
- Hover tooltips on every chart with styled dark/light variants
- Fully responsive — 6-col KPIs collapse to 2-col on mobile, table columns hide progressively
- Realistic data with daily usage patterns, random spikes, and 15 actual homelab services (Plex, Pi-hole, Nextcloud, etc.)
Files built:
index.html,src/data/generate.ts,src/context/ThemeContext.tsx,src/components/KPICards.tsx,src/components/CPUMemoryChart.tsx,src/components/NetworkChart.tsx,src/components/DiskDonutChart.tsx,src/components/PowerTempChart.tsx,src/components/ServicesTable.tsx,src/components/FilterBar.tsx,src/components/ServiceStatusDonut.tsx,src/components/Header.tsx,src/App.tsx,src/index.css
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.