Skip to content

Live Wikipedia mode with globe, exact always-on history, and a WebGL visual overhaul - #1

Merged
clark719664 merged 3 commits into
mainfrom
live-wikipedia-visual-upgrade
Oct 22, 2026
Merged

clark719664 merged 3 commits into
mainfrom
live-wikipedia-visual-upgrade

Conversation

@clark719664

Copy link
Copy Markdown
Owner

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 maxlag and 429 Retry-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 one snapshot.json to the orphan data branch 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; L toggles 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-motion respected, 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).
  • CI no longer runs on the data branch.
  • Bundle: 46.19 kB JS + 4.43 kB CSS + 0.65 kB HTML gzipped (51.27 kB), per Vite's build report.
  • Verified in Chrome against the dev server: live stream flowing (~15 changes/s), only changes with ≤1.2 s delivery lag animated, history "every second accounted for", no lookup errors.

Notes

  • Merging deploys GitHub Pages.
  • The collector pushes to data with the existing git credentials on the PC; no new keys or tokens were added.

🤖 Generated with Claude Code

clark719664 and others added 3 commits October 21, 2026 22:53
- 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>
@clark719664
clark719664 merged commit de2d598 into main Oct 22, 2026
2 checks passed
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 22, 2026
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant