GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - rohitguta2432/news-globe: Interactive 3D globe plotting real-time world events — earthquakes (USGS), natural disasters (NASA EONET) & crypto (CoinGecko) — from keyless, CORS-open public APIs. Single-file, no backend, no build.

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
index.html
index.html
 
 

Repository files navigation

World News Globe · Live

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.


What it does

  • 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 DEMO and falls back to a static seed if every feed is unreachable, so the globe is never blank.

Live data sources

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.allSettled so 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.

Resilience by design

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.

Running it

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.

Tech & engineering notes

  • 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 a sha384 hash + crossorigin, so a tampered CDN payload won't execute.
  • XSS-safe — every string from a live API is passed through escapeHtml() before it touches innerHTML. 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. A selfTest() 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.

Roadmap

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.

License

MIT © Rohit Raj

Built with globe.gl. Data © USGS, NASA EONET, and CoinGecko — all public, all free.


🤝 Work with me

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.

→ rohitraj.tech/en/hire

About

Interactive 3D globe plotting real-time world events — earthquakes (USGS), natural disasters (NASA EONET) & crypto (CoinGecko) — from keyless, CORS-open public APIs. Single-file, no backend, no build.

Topics

data-visualizationdatavizglobeglobe-gljavascriptnasa-eonetreal-timethreejsusgswebgl

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.