A real-time monitoring and management dashboard for AI agents in the ecosystem.
- System Overview: Quick stats on total, active, and idle agents
- Agent Status Cards: Detailed information for each agent
- Live Activity Log: Real-time log streaming with color-coded levels
- Performance Metrics: Uptime, request count, and response times
- Agent Management: Restart and view logs for individual agents
- Auto-updating: Metrics and logs update automatically
Open index.html in a web browser. The dashboard displays:
- System Overview: Total agents, active count, idle count, tasks completed
- Agent Status: Individual cards for each AI agent
- Activity Log: Real-time log entries with timestamps
Each agent card includes:
- Status Badge: Active, Idle, or Offline indicator
- Metrics: Uptime percentage, request count, average response time
- Actions:
- "View Logs" - Filters log for specific agent
- "Restart" - Simulates agent restart
Logs are color-coded by severity:
- INFO (Blue): General information
- SUCCESS (Green): Successful operations
- WARNING (Yellow): Potential issues
- ERROR (Red): Critical errors
Add new agent cards to index.html:
<article class="agent-card" role="listitem">
<div class="agent-header">
<h3>Your Agent Name</h3>
<span class="status-badge status-active" role="status">Active</span>
</div>
<p class="agent-description">Description of what the agent does</p>
<div class="agent-metrics">
<div class="metric">
<span class="metric-label">Uptime:</span>
<span class="metric-value">99.9%</span>
</div>
<!-- Add more metrics -->
</div>
<div class="agent-actions">
<button class="btn-secondary">View Logs</button>
<button class="btn-primary">Restart</button>
</div>
</article>Modify the updateMetrics() function in script.js to fetch real data:
async function updateMetrics() {
const response = await fetch('/api/agents/metrics');
const data = await response.json();
updateDashboard(data);
}Connect to a real log stream:
const eventSource = new EventSource('/api/logs/stream');
eventSource.onmessage = (event) => {
const logData = JSON.parse(event.data);
addLogEntry(logData.level, logData.message);
};- Logs update automatically every 5 seconds (simulated)
- Auto-scroll keeps latest logs in view
- Manual scroll disables auto-scroll
- Maximum 50 log entries displayed
- Click "Restart" to simulate agent restart
- Shows loading state during restart
- Adds log entries for restart events
- Displays success notification
- Mobile-friendly layout
- Touch-optimized controls
- Flexible grid adapts to screen size
- Semantic HTML structure
- ARIA labels and live regions
- Keyboard navigation support
- Screen reader announcements
- Focus indicators
- High contrast support
- Color-coded status with text labels
Replace simulated data with real API calls:
// Fetch agent status
async function loadAgentStatus() {
const response = await fetch('/api/agents/status');
const agents = await response.json();
renderAgents(agents);
}
// Restart agent
async function restartAgent(agentId) {
const response = await fetch(`/api/agents/${agentId}/restart`, {
method: 'POST'
});
return response.json();
}Agents is part of a larger accessible web ecosystem:
- PinkFlow: Accessibility query interface
- PinkSync: Graph API
- DeafAuth: Authentication system
- FibronRose: Trust dashboard
- Agents: AI agent status page (this component)
- DAO: Governance interface
Open source - use and modify as needed for your projects.