Repository navigation
Live Wikipedia mode with globe, exact always-on history, and a WebGL visual overhaul - #1
Merged
Merged
Conversation
- Live mode reads Wikimedia's recent-changes EventStream (keyless, CORS): editors -> wiki -> EventStreams as async traces, measured delivery lag, reverts/blocks as errors, per-wiki burst detection as map alerts, honest connecting/live/stalled/disconnected/paused states. - Globe: changes to pages with coordinates (articles, Wikidata items, Commons files) arc from their wiki onto a dotted Natural Earth globe, looked up through the wikis' own APIs, batched and rate-limited. - WebGL: half-float scene buffer with dual-filter bloom and tone mapping, glass node orbs, flowing edge beams, comet trails, arrival flares, parallax dust and a world-anchored grid; reduced motion respected. - Tidy layered layout (columns by depth, crossing-reducing order) by default. - Panels: source switcher, bursts card, waterfall details pane, new styles. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- collector/collect.py: stdlib-only, idle-priority collector that follows Wikimedia's stream around the clock, commits events in event-time order behind a 15 s settle window, resumes exactly after drops/restarts by replaying from its boundary, looks up coordinates for every eligible change (429-aware), and force-pushes one snapshot.json to the `data` branch every minute: per-second counts (1 h), per-minute (24 h), bursts, per-place counts and coverage gaps. - Page loads the snapshot, replays from its boundary (counted, never animated), then draws each change the moment it arrives. History card (10 min / 1 h per second, 24 h per minute) with exact coverage notes. - Fixes: reconnect loop from stale stall timing, visibility flapping, device-clock skew dropping events, URL-length batching, burst tags colliding with labels, labels clipped at the map edge, heavy glow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… screenshots Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Live mode (now the default). Synapse reads Wikimedia's public EventStreams (keyless, CORS) straight from the browser. Each edit, page creation or log action becomes an asynchronous trace: editor kind → wiki host → EventStreams, the last span being the measured delivery lag. Reverts and moderation logs are the errors; a wiki at 3× its usual pace is flagged as a burst. Every change is drawn the moment it arrives; nothing old is animated. Status is honest: loading history, live, stalled, disconnected (with a retry countdown), paused when hidden.
?source=sim(or?rps=/?scenario=) opens the simulator as before.Globe. Changes to pages that have coordinates (articles, Wikidata items, Commons files) arc from their wiki onto a dotted Natural Earth globe and pulse; pins stay ten minutes, and the last 24 hours show as per-place counts. Coordinates come from each wiki's API, batched, cached and rate-limited, honouring
maxlagand 429Retry-After. Editors' locations are never published, and the page says so.Exact always-on history.
collector/collect.py(Python stdlib, idle priority, ~20 MB) follows the stream 24/7 and force-pushes onesnapshot.jsonto the orphandatabranch every minute: per-second counts for an hour, per-minute for a day, bursts, per-place counts and coverage gaps. It commits by event time behind a 15 s settle window and resumes after any drop or restart by replaying from its boundary. The page loads the snapshot, replays from the same boundary (counted, not animated) and is exact to the current second; uncovered time is shown as a gap, never as zeros. It is running on Clark's PC now (Startup shortcut); the README covers how to stop it.Visuals. Half-float scene buffer with dual-filter bloom and tone mapping, glass node orbs, flowing edge beams, comet trails, arrival flares, parallax dust and a world-anchored grid. Tidy layered layout by default (depth columns ordered to cut crossings;
Ltoggles the force layout). Labels never collide and make room for burst tags. Rebuilt sidebar (History card, Bursts log), waterfall with a span details pane and links to the page and diff,prefers-reduced-motionrespected, phone layout stacks the globe under the network.Checks
npm run lint,npm run typecheck,npm test(84 tests),npm run build; collector:python -m unittest discover -s collector(13 tests, now also in CI).databranch.Notes
datawith the existing git credentials on the PC; no new keys or tokens were added.🤖 Generated with Claude Code