realtime-dashboardComplete guide to building real-time dashboards with streaming data, WebSocket/SSE, and live updates. Orchestrates dual-stream architecture, React hooks, and data visualization. Use when building trading dashboards, monitoring UIs, or live analytics. Triggers on realtime dashboard, live data, streaming dashboard, trading UI, monitoring.
Install via ClawdBot CLI:
clawdbot install wpank/realtime-dashboardComplete guide to building real-time dashboards with streaming data.
npx clawhub@latest install realtime-dashboard
┌─────────────────────────────────────────────────────────────┐
│ Data Sources │
│ APIs, Databases, Message Queues │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ Backend Services │
├─────────────────────────────────────────────────────────────┤
│ Kafka (durable) │ Redis Pub/Sub (real-time) │
│ See: dual-stream-architecture │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ WebSocket/SSE Gateway │
│ See: websocket-hub-patterns │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ React Application │
├─────────────────────────────────────────────────────────────┤
│ Real-time Hooks │ Data Visualization │
│ See: realtime-react-hooks│ See: financial-data-visualization
├─────────────────────────────────────────────────────────────┤
│ Animated Displays │ Connection Handling │
│ See: animated-financial │ See: resilient-connections │
└─────────────────────────────────────────────────────────────┘
Set up dual-stream publishing for durability + real-time.
Read: ai/skills/realtime/dual-stream-architecture
func (p *DualPublisher) Publish(ctx context.Context, event Event) error {
// 1. Kafka: Must succeed (durable)
err := p.kafka.WriteMessages(ctx, kafka.Message{...})
if err != nil {
return err
}
// 2. Redis: Best-effort (real-time)
p.publishToRedis(ctx, event)
return nil
}
Create horizontally-scalable WebSocket connections.
Read: ai/skills/realtime/websocket-hub-patterns
type Hub struct {
connections map[*Connection]bool
subscriptions map[string]map[*Connection]bool
redisClient *redis.Client
}
// Lazy Redis subscriptions
func (h *Hub) subscribeToChannel(conn *Connection, channel string) {
// Only subscribe to Redis on first local subscriber
}
Connect React to real-time data.
Read: ai/skills/realtime/realtime-react-hooks
const { data, isConnected } = useSSE({
url: '/api/events',
onMessage: (data) => updateState(data),
});
// Or with SWR integration
const { data } = useRealtimeData('metrics', fetchMetrics);
Handle connection failures gracefully.
Read: ai/skills/realtime/resilient-connections
const { isConnected, send } = useWebSocket({
url: 'wss://api/ws',
reconnect: true,
maxRetries: 5,
onMessage: handleMessage,
});
Build dark-themed financial charts.
Read: ai/skills/design-systems/financial-data-visualization
<PriceChart
data={priceHistory}
isPositive={change >= 0}
/>
Add smooth number animations.
Read: ai/skills/design-systems/animated-financial-display
<AnimatedNumber value={price} prefix="$" decimals={2} />
<FlashingValue value={value} formatter={formatCurrency} />
| Skill | Purpose |
|-------|---------|
| dual-stream-architecture | Kafka + Redis publishing |
| websocket-hub-patterns | Scalable WebSocket server |
| realtime-react-hooks | SSE/WebSocket React hooks |
| resilient-connections | Retry, circuit breaker |
| financial-data-visualization | Chart theming |
| animated-financial-display | Number animations |
Never wait for all data. Show immediately, improve progressively:
Phase 1: Initial data + hints → Immediate display
Phase 2: Background refinement → Prices update in place
Phase 3: Historical data → Charts populate
Never zero out data when refinement fails. Only update when you have better data.
Always show users their connection state:
<ConnectionStatus isConnected={isConnected} />
Generated Mar 1, 2026
Real-time display of cryptocurrency prices, order book updates, and trade executions for active traders. Uses WebSocket streams from exchanges to show live price movements and market depth, with animated charts and flashing values for rapid price changes. Ideal for high-frequency trading environments where latency is critical.
Live monitoring of server health, network traffic, and application performance metrics for IT operations teams. Integrates with backend services like Kafka for durable event logging and Redis for real-time alerts, providing instant visibility into system outages or anomalies. Supports SSE for continuous data flow without manual refreshes.
Dynamic dashboard for sports betting platforms, showing real-time odds updates, live scores, and betting market movements. Employs dual-stream architecture to ensure data durability and low-latency updates, with React hooks for seamless UI integration. Helps users make informed bets during fast-paced events.
Real-time tracking and control of IoT devices across locations, displaying sensor data, device status, and alerts. Uses WebSocket gateways for bidirectional communication, enabling live updates and remote commands. Visualizes data with charts and animated displays for quick decision-making in industrial settings.
Interactive dashboard for investors to monitor stock portfolios, with live price feeds, performance metrics, and news updates. Implements resilient connections to handle market volatility, and financial data visualization for clear insights. Supports progressive data refinement to show immediate updates while fetching historical data.
Offer the dashboard as a cloud-based service with tiered pricing based on features like data volume, real-time updates, and custom visualizations. Revenue comes from monthly or annual subscriptions, targeting businesses needing scalable monitoring or trading solutions. Includes premium support and integration services.
Sell perpetual licenses or annual contracts to large enterprises for on-premises or private cloud deployment. Focus on industries like finance or tech with high data security requirements, providing customization, training, and dedicated support. Revenue is generated through upfront fees and maintenance renewals.
Provide a basic free version of the dashboard with limited data sources or update frequency, then upsell premium features such as advanced analytics, more integrations, or higher scalability. Monetize through in-app purchases or upgrades, appealing to startups and small businesses looking to scale.
💬 Integration Tip
Start by integrating with a single data source using WebSocket or SSE, then gradually add Kafka for durability and Redis for real-time pub/sub to scale efficiently.
Use the @steipete/oracle CLI to bundle a prompt plus the right files and get a second-model review (API or browser) for debugging, refactors, design checks, or cross-validation.
Manage Things 3 via the `things` CLI on macOS (add/update projects+todos via URL scheme; read/search/list from the local Things database). Use when a user asks Clawdbot to add a task to Things, list inbox/today/upcoming, search tasks, or inspect projects/areas/tags.
Local search/indexing CLI (BM25 + vectors + rerank) with MCP mode.
Use when designing database schemas, writing migrations, optimizing SQL queries, fixing N+1 problems, creating indexes, setting up PostgreSQL, configuring EF Core, implementing caching, partitioning tables, or any database performance question.
Connect to Supabase for database operations, vector search, and storage. Use for storing data, running SQL queries, similarity search with pgvector, and managing tables. Triggers on requests involving databases, vector stores, embeddings, or Supabase specifically.
Query, design, migrate, and optimize SQL databases. Use when working with SQLite, PostgreSQL, or MySQL — schema design, writing queries, creating migrations, indexing, backup/restore, and debugging slow queries. No ORMs required.