home / work / eye of horus

Open source

Eye of Horus

A live 3D globe of about 19,600 satellites and debris fragments: built for NASA Space Apps 2019, preserved in the GitHub Arctic Code Vault, and rebuilt from scratch in 2026.

Role
Creator and developer; the 2019 version was a NASA Space Apps team entry, rebuilt from scratch as v2.0 in 2026
Stack
  • React 19
  • TypeScript
  • Vite
  • three.js / React Three Fiber
  • GLSL shaders
  • satellite.js (SGP4)
  • Web Workers
  • PWA (Workbox)
  • Vitest

The problem

There are thousands of satellites in orbit and far more pieces of debris, and almost nobody has a feel for what that looks like. Eye of Horus started in October 2019 as my team's entry to the NASA Space Apps Challenge, answering its "Set your sights high" challenge: make space, and the debris crowding it, understandable to anyone.

In 2020 the original code was preserved in the GitHub Arctic Code Vault, GitHub's 1,000-year archive of open-source software, stored in the permafrost of Svalbard, Norway.

By 2026 that version had aged badly: a deprecated mapping SDK, jQuery, and orbital data frozen in 2017. So I rebuilt it from scratch as v2.0, with live data, a modern stack, and an Earth I render myself.

What it is

A real-time 3D globe that plots about 19,600 objects: every active satellite, plus the debris clouds from three of history's worst orbital breakups (Fengyun-1C, Cosmos 2251, and Iridium 33). You can spin the Earth, click any object to see where it is, how fast it's going, who launched it, and the full path of its orbit, and filter the sky down to what you care about.

  • Live orbital data: current orbital elements downloaded from CelesTrak for every object on load.
  • Real-time motion: SGP4 propagation runs in a Web Worker and the GPU interpolates between updates, so all 19,600 points move smoothly at 60 fps.
  • A physically lit Earth: a custom shader draws the real day/night terminator from the Sun's actual position, with city lights at night, sun glint on the oceans, and an atmospheric glow.
  • Click to explore: live altitude and speed, owner, launch date, period, inclination, apogee and perigee, and the orbit drawn as a closed ellipse.
  • Search and filters: search by name or NORAD ID; filter by country, object type, launch year, and orbital parameters, or use one-click presets for GPS, Starlink, the space stations, or geostationary orbit.
  • Works everywhere: the layout adapts to phones, and the app installs as a Progressive Web App.

Decisions that shaped it

One inertial frame for everything. Satellites, orbit paths, and the Sun are all drawn in the Earth-centred inertial frame, and only the Earth mesh rotates, by Greenwich sidereal time. Orbits render as true closed ellipses instead of smearing into spirals, and every object still sits over the right point on the ground.

Keeping the main thread out of the hot loop. Positions and velocities are computed once a second off the main thread and handed over as transferable typed arrays. A vertex shader extrapolates each point every frame, so the main thread does almost no per-object work for 19,600 moving objects.

Picking without raycasting the whole sky. Hover and click are resolved by projecting points to screen space, and anything hidden behind the Earth is rejected with a ray–sphere test.

Respecting a free public API. CelesTrak limits repeat downloads per IP, so the app dedupes requests, cancels in-flight work when a required feed fails, and caches for two hours. It degrades in steps: live data, then the cached copy, then a bundled snapshot that a daily GitHub Action keeps fresh. Optional feeds such as the debris clouds can fail without taking live satellite data down with them.

The original is still there. The 2019 Space Apps version is tagged as v1.0.0 in the same repository, so you can compare the two side by side.

Timeline

  • 2019: built for the NASA Space Apps Challenge ("Set your sights high").
  • 2020: original code preserved in the GitHub Arctic Code Vault.
  • 2026: rebuilt from scratch as v2.0 with live data, React, and three.js, deployed on Vercel.

The code is on GitHub under the MIT license, and the app is live at eye-of-horus.kerolosxgad.com.

← All work