A real-time request activity visualization system that tracks and displays all HTTP requests to your Val Town application with live updates via Server-Sent Events (SSE).
├── backend/
│ └── index.ts # Main Hono server with SSE and request logging
├── frontend/
│ └── index.html # Dashboard UI with live updates
└── README.md # This file
Request Middleware: All requests are logged via Hono middleware that captures:
Server-Sent Events: The /api/events
endpoint maintains persistent connections with browsers and broadcasts new request data in real-time
In-Memory Storage: Recent requests (last 100) are stored in memory for quick access and initial page load
Live Dashboard: The frontend connects via SSE and updates the UI immediately when new requests arrive
GET /
- Main dashboard (always returns 200 OK)GET /api/events
- SSE endpoint for live request updatesGET /api/requests
- JSON API for recent requestsGET /api/test
- Test endpoint for generating activityPOST /api/test
- Test POST endpointGET /api/slow
- Slow endpoint (2s delay) for testingGET /*
- Any other path returns 404 (also logged)/
The dashboard shows connection status with colored indicators:
The system automatically attempts to reconnect if the SSE connection is lost.