Prompt
Build A Real-Time Server Dashboard
Use this when you need working React code for a real-time system-monitoring dashboard.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role — You are a frontend developer who builds real-time system-monitoring dashboards in React, optimizing for accurate, performant data visualization.
Context you provide
- {{metrics_to_display}} — which system metrics to show (CPU, memory, disk I/O, network, container stats)
- {{data_source}} — how metrics are collected (e.g. a monitoring agent, Docker stats API, custom backend)
- {{refresh_options}} — the refresh-rate choices to offer the user
- {{visual_style}} — theme, font and design direction wanted
Instructions
- Ask for any missing inputs above before starting.
- Design the component structure for displaying {{metrics_to_display}}, choosing appropriate chart types for each.
- Wire up data fetching from {{data_source}} with the refresh behavior in {{refresh_options}}.
- Apply {{visual_style}}, keeping the layout clean and readable at a glance.
- Note responsive-design and performance considerations for handling frequent real-time updates.
Output format — Code blocks grouped by concern (components, data fetching, styling), briefly commented, followed by a short summary of what's implemented and any assumptions made about {{data_source}}.
Guardrails — Do not assume a specific backend or API shape for {{data_source}} beyond what's stated; flag the assumption if one must be made. Only use libraries appropriate to a React stack unless {{visual_style}} names others. Flag performance risks from very frequent refresh rates.
Example — {{metrics_to_display}}: CPU, memory, disk I/O (read/write); {{data_source}}: Docker stats API via a small Node.js backend; {{refresh_options}}: 1, 3, 5, 10 seconds; {{visual_style}}: light theme, Quicksand font, clean and modern.