An interactive 3D globe that plots real-time world events — earthquakes, natural disasters, and market moves — pulled from live public APIs and rendered on a rotating night-earth globe. No build step, no backend, no API keys: it's a single index.html you can open in any modern browser.
Open it and watch the seismic points cluster along the Pacific "Ring of Fire." That's the tell that the data is real — no hand-placed seed markers trace tectonic plate boundaries that precisely. It's live USGS data.
- Live 3D globe — every event is a point on a rotating, auto-orbiting Earth. Point size and color scale with earthquake magnitude; disasters and world events get their own palette.
- Expanding ring pulses — the featured event and every major quake (M5+) emit an animated shockwave ring in its category color.
- Market ticker — live BTC / ETH / SOL prices with 24h change, refreshed every minute.
- Live events panel — a searchable, scrollable feed of the 80 most recent events with category tags, source attribution, and relative timestamps ("3m ago"). Click any event to fly the camera to it.
- Auto-cycle tour — the camera flies between the top events every 6 seconds and pauses the moment you interact.
- LIVE / DEMO badge — flips to
DEMOand falls back to a static seed if every feed is unreachable, so the globe is never blank.
All feeds are keyless and send Access-Control-Allow-Origin: *, which is what makes a pure-browser build possible — no proxy, no server.
| Source | Data | Key | CORS | Refresh |
|---|---|---|---|---|
| USGS Earthquakes | M2.5+ quakes, past 24h (GeoJSON) | none | * |
5 min |
| NASA EONET v3 | Wildfires, storms, volcanoes, sea-ice | none | * |
5 min |
| CoinGecko | BTC / ETH / SOL price + 24h % | none | * |
60 s |
| GDELT GEO | Geolocated news headlines | none | ❌ blocked | fails soft |
GDELT is wired in but CORS-blocked from the browser. It's included behind
Promise.allSettledso it fails silently without ever affecting the other feeds — the moment a tiny proxy/backend is added, headline news lights up with zero front-end changes.
The refresh loop is built so one flaky feed never blanks the screen:
const res = await Promise.allSettled(feeds.map(([, fn]) => fn())); const live = res.flatMap(r => r.status === 'fulfilled' ? r.value : []); EVENTS = (live.length ? live : SEED).sort((a, b) => b.time - a.time).slice(0, 80);
Only fulfilled feeds are flattened in; a rejected feed is logged and dropped. If all feeds fail, a 6-item seed keeps the globe populated and the badge flips to DEMO.
It's one static file — three equivalent ways to run:
# 1. Just open it open index.html # 2. Serve it (any static server) python3 -m http.server 8124 # → http://localhost:8124/index.html # 3. npx, no install npx serve .
No npm install, no bundler, no environment variables.
- globe.gl 2.46.1 (wraps three.js + three-globe) for the WebGL globe, points, and rings.
- Vanilla JS, zero dependencies beyond the one CDN script — no framework, no build.
- Subresource Integrity (SRI) — the globe.gl CDN
<script>is pinned with asha384hash +crossorigin, so a tampered CDN payload won't execute. - XSS-safe — every string from a live API is passed through
escapeHtml()before it touchesinnerHTML. External data is treated as a trust boundary. - The USGS coordinate gotcha — USGS GeoJSON orders coordinates
[lng, lat, depth], the reverse of what most mapping code assumes. AselfTest()IIFE asserts the lat/lng aren't swapped (plus quake-color,timeAgo, and escaping) on every load, so the classic bug can't silently ship.
Features from the original concept that genuinely need a backend, and how they'd slot in:
- Live chat "Rooms" — needs a WebSocket server (browser-only can't host rooms).
- S&P 500 / Dow / Gold ticker — needs a paid market-data key; the ticker component already renders any
{sym, price, chg}row. - GDELT headline news — already coded; needs only a thin CORS proxy to go live.
MIT © Rohit Raj
Built with globe.gl. Data © USGS, NASA EONET, and CoinGecko — all public, all free.
I'm an AI Consultant · Forward Deployed Engineer — I embed with teams and ship AI to production: agents, MCP integrations, and LLM features, with evals proving they work.