Route trace
A live system diagram routed like a circuit board. Traffic shows as packets, and failure shows as silence. It always fits its container: wide spaces flow left to right, narrow ones turn the flow top to bottom. Arrow keys walk the services, and the line underneath reads the focused one's traffic.
How to use
import { RouteTrace } from "@/components/bjork-ui/charts/route-trace";<RouteTrace nodes={[ { id: "client", label: "Client", col: 0, row: 1 }, { id: "gateway", label: "Gateway", col: 2, row: 1 }, { id: "auth", label: "Auth", col: 3, row: 0 }, { id: "search", label: "Search", col: 3, row: 1 }, ]} edges={[ { from: "client", to: "gateway", throughput: 0.9 }, { from: "gateway", to: "auth", throughput: 0.3 }, { from: "gateway", to: "search", throughput: 0.7, status: "degraded" }, ]} onNodeSelect={(id) => console.log(id)}/>