Skip to content

Web UI

The Web UI is an embedded Single Page App (Preact) providing real-time visualizations of network state, timeline, and projections.

  • Architecture: Embedded SPA (Preact) in the Go binary.
  • Serving: Local-only by default on port 8080.
  • Data Flow: REST (JSON) snapshots + Server-Sent Events (SSE) for real-time updates.
  • Dashboard: Local status, memory usage, and Aura.
  • Network Map: 2D Vivaldi coordinate visualization with Barrio markers.
  • Timeline: Real-time event feed (interactions, presence, pings).
  • Inspector: Auditing tools for SyncLedger, Checkpoints, and Projections.
  • World: Journey tracking.
  • GET /api.json: Full network snapshot.
  • GET /narae.json: Summary peer list.
  • GET /social/clout: Subjective rankings.

SSE-formatted stream.

{
"id": "event-id",
"service": "social",
"timestamp": 1700000000000000000,
"icon": "👋",
"text": "Human-readable summary",
"detail": "Context"
}
  • Transformation: SyncEvent mapped to UI format (e.g., hey-there → 👋).
  • Resilience: Client-side deduplication and auto-reconnecting SSE.
  • Access: Local/firewalled access assumed; non-mutating except for Stash/World triggers.
  • TestHTTP_UI_JSON: Schema validation.
  • TestHTTP_UI_SSE: Heartbeat and event delivery.