Tour the Atmosphere. Switch clients, share universal links, browse any PDS.

Explore: trending lexicons section with sparklines via UFOs API master

New TrendingLexicons component renders on /explore between the live network feed and the cross-link cards. Hits ufos-api.microcosm.blue: - GET /collections?order=records-created&limit=10&since=… for the ranking (top 10 lexicons by creates in the chosen window). - GET /timeseries?collection=…&since=…&step=… per collection for the sparkline data. Fetched in parallel; a single collection failure leaves an empty sparkline rather than dropping the row. Three-segment toggle for the window (1d / 7d / 30d) matches the record-editor's Form / JSON switch idiom. Bucket size scales with the window so each sparkline carries 10-30 points (1d: 2h, 7d: 12h, 30d: 1d). Sparkline is a hand-drawn SVG path — no chart library dependency. Each row links to /at/<nsid>, the existing AT URI catch-all that redirects into the explorer's collection view.


+384
2 changed files