shadcn.io is an independent project built on shadcn/ui
On this page5 sections
Installation
Overview
Show where a network is healthy and how far each edge is, with this edge network status map for React with Base UI. Edgefold, a content delivery network, checks ten edge locations from San Francisco to Johannesburg on a live Map that follows your theme, light or dark. Each edge is up, degraded or down, and says so by its shape (a solid dot, a dashed ring, a cross in a ring) and a word, never by colour alone. A Toggle Group in the sidebar picks the origin, Ashburn, Frankfurt or São Paulo: an arc runs from it to every edge that answers, solid to the ones that are up and dashed to the degraded ones, and every round trip is worked out from the distance, plus a degraded edge's penalty. The sidebar heads with the network's state, its check time and the count at each status, lists the ten edges with their round trips (the keyboard route), and ends with the chosen edge's card: what's wrong, the round trip, 30-day uptime and requests a second. Choosing an edge, on the map or in the list, draws its arc in the primary colour and frames it with the origin; the globe button shows every edge again. Built from Map, Toggle Group, Button and Guides. For CDNs, cloud status pages, observability tools and network operations.
FAQ
How are the round trips worked out?
rttOf takes the great-circle distance from the origin to the edge, doubles it for the way back, makes the route a third longer than the straight line, and divides by 200 km a millisecond, about light's speed in glass fibre. Two milliseconds at the edge are added, and a degraded edge adds its typed penalty. A down edge gets no round trip: it doesn't answer.
How is each status shown without colour?
On the map, an edge that is up is a solid dot, a degraded one a dashed ring and a down one a cross in a ring; their arcs are solid, dashed or missing. In the list the same three states have a check, an alert or a cross icon and the word, and the sidebar's head counts each. The primary colour marks only the chosen edge's arc.
Where does the data come from, and what stays local?
The ten edges are typed into LINES at the top of the file, with their real cities and places; Edgefold, the statuses, the notes, uptime and traffic are invented, and the check time is fixed. Nothing is fetched or sent except the map's tiles. In your app, fill the same shape from your health checks and keep the round trips you measure instead of the formula.
Can I use it without a mouse?
Yes. The origin is a toggle group, and every edge in the list is a button that draws its arc and frames it with the origin, the same as pressing its mark on the map. The zoom buttons and the globe button work from the keyboard, and the map takes the arrow keys and plus and minus once focused. A polite message gives the chosen edge's state and round trip once the choice settles.





