I'll build this live flight tracker with a 3D Earth. For real-world data I'll use two free, CORS-friendly APIs: adsb.lol (live aircraft positions/headings by callsign) and adsbdb (route info: departure/arrival airports). Let me first check the project setup and verify those APIs are current.
Both APIs confirmed. Now let me check the project configuration.
React 19 + Tailwind 4 + Vite 7. Now I'll install the needed packages: three.js ecosystem for the 3D globe, leaflet for the real-life map, framer-motion and lucide for UI.
Now I'll build the app architecture. Starting with the HTML shell (title + fonts), the Tailwind theme/CSS, core types, and the airline IATA→ICAO mapping.
Now the geo-math library (lat/lon → 3D vectors, great-circle arcs, heading orientation) and the flight data service.
Quick fix for the unused variable in geo.ts:
Now the 3D layer. First: the Earth component (textured globe, night lights, atmosphere shader, texture-fail safety) and a stylized low-poly plane model.
Now the flight visualization layer (great-circle arcs, airport markers, live plane with heading vector, ground pings) and the globe canvas with camera/focus logic.
Now the UI components — a compass dial for real-world heading and the search bar:
Now the flight details panel and the real-life 2D map overlay:
Now the 2D real-life map overlay and a check of main.tsx:
Now the main App with the state machine, live polling, header/HUD layout:
Now let me build to validate everything:
The build succeeded. Let me harden the data layer with a third ADS-B source for redundancy, and polish two small panel details:
One layout refinement — on wide screens the globe should center in the free space right of the panel rather than behind it:
Final build to confirm everything compiles:
Build successful. VECTOR — Live Flight Intelligence is ready.
What I built
A 3D Earth flight tracker that uses real live data, not a simulation:
Data pipeline (no API keys needed, all CORS-enabled):
- adsb.lol → airplanes.live → adsb.one — three redundant live ADS-B sources for the aircraft's actual transponder position, altitude, speed, heading, and vertical rate
- adsbdb.com — route registry for departure/arrival airports
- Smart input normalization — you can type
UA123, UA 123, or UAL123; it converts IATA flight numbers to ICAO callsigns automatically
On the 3D model:
- Blue-marble globe with city-light night side + fresnel atmosphere, orbiting a star field; the globe auto-rotates and swings to face the flight when you search
- In the air: cyan arc for the flown leg, dashed amber arc to the destination, a stylized Jet at its true altitude and orientation, a heading ray showing exactly where the nose points, pulsing ground-radar rings, and airport pins
- Stationary / on the ground: the marker sits on the surface with green ground-status pings and reads "ON GROUND" with its parked coordinates
In real life (as requested):
- A live telemetry panel: altitude, ground speed, vertical rate, squawk, airframe, and a real compass dial with true heading in degrees + cardinal ("271° — W")
- Route card with origin/destination airports and a "% flown" progress bar
- A toggleable real 2D map (dark CARTO tiles) with the route, rotated plane icon, and recenter control
Live behavior: position refreshes automatically every 12 seconds with an "updated Xs ago" readout, graceful "not tracked" handling when a flight has landed, and a Zulu-time clock in the header.
Note: tracking only works for flights currently within ADS-B receiver coverage (essentially all airborne commercial flights); a flight that hasn't departed or already landed won't have a live fix, in which case its scheduled route is drawn instead.
Files built: index.html, src/index.css, src/types.ts, src/lib/airlines.ts, src/lib/geo.ts, src/lib/flightApi.ts, src/three/Earth.tsx, src/three/PlaneModel.tsx, src/three/FlightViz.tsx, src/three/GlobeCanvas.tsx, src/components/Compass.tsx, src/components/SearchBar.tsx, src/components/FlightPanel.tsx, src/components/LiveMap.tsx, src/App.tsx