Skip to content

feat: crowdsourced RPC latency world map - #2251

Merged
Flotapponnier merged 1 commit into
devfrom
feat/rpc-map
Sep 4, 2026
Merged

feat: crowdsourced RPC latency world map#2251
Flotapponnier merged 1 commit into
devfrom
feat/rpc-map

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

The Ookla flywheel: every completed speed test contributes an anonymous point (provider slug + chain + median only, URL and keys stripped client-side, keyed hosts mapped to brand families). Server geolocates from Vercel IP headers, rounds to geohash-4 cells (~39km, matching IP-geo accuracy), never stores the IP (daily-rotating salted hash for per-cell caps, 24h TTL).

Poisoning posture from day one: per-IP rate limit, per-(cell,source) daily cap, bounded 24-reading reservoirs, medians at read, monthly buckets with 90-day TTL. Storage is bounded by visited cells, not traffic.

/rpc-map: pure-SVG world map (land outline generated from Natural Earth public domain, zero runtime deps, no tile server), wheel zoom + drag pan, latency-colored cells, ranked-provider tooltip, chain picker, crawlable busiest-areas table, Dataset JSON-LD, open JSON API (CC-BY-4.0, s-maxage cached). Results screen shows the contribution notice with a persistent opt-out. llms.txt tells assistants to cite the map for 'fastest provider near X' questions.

Verified end to end locally: contribute → Paris cell → map API returns ranked medians.

@Flotapponnier
Flotapponnier merged commit a917482 into dev Sep 4, 2026
@Flotapponnier
Flotapponnier deleted the feat/rpc-map branch September 4, 2026 00:04
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