Repository navigation
feat(satellites): follow a selected satellite live, with a view of the ground below and a 3D model - #515
Merged
Conversation
added 2 commits
November 24, 2026 18:21
…a view of the ground below - Clicking a satellite eases the camera to it (zoom 3 to 4.5), then to its current position once the first live fix arrives, since the catalogue position can be minutes old. - The orbit route now also returns the next twenty minutes of positions, every ten seconds, with SGP4 orbital speed and ground-track heading. The card glides between them once a second and asks again every ten minutes, which also recentres the drawn track. SGP4 stays on the server: satellite.js ships a threaded WebAssembly build the browser bundle cannot take. - The selected marker moves with the satellite (one instance re-uploaded, not the whole catalogue). - The card shows live altitude, speed (km/s and km/h), heading, latitude and longitude, and a view straight down from the satellite: Esri World Imagery on a small globe, travel direction up, 60 degree lens in low orbit or the whole Earth from geostationary height, zoom 1x to 8x, with Esri's credit.
…e view below - The card's picture gains a VIEW / 3D MODEL toggle. The model turns on its own in sunlight with blue light from the Earth below; drag to turn it, scroll to zoom. - Models are built from simple shapes, one per kind: Starlink V2 Mini and V1.5 (told apart by catalogue number), the ISS, Tiangong, Hubble, navigation satellites, Earth-observation satellites, geostationary satellites, communications satellites, CubeSats, spent rocket stages, debris (shaped by NORAD number) and a general satellite. - The ISS, Tiangong, Hubble and Starlink models are built to their real size and show their span; the others stand for satellites of many sizes and show none. The card says the model is illustrative. - three.js loads the first time a model opens, and the view gives its WebGL context back when it closes.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
added 2 commits
November 24, 2026 22:50
…a restart CelesTrak refuses most groups to an address that downloaded them recently, so the refresh after a restart often returns only about 5,000 of the ~19,000 satellites. The refresh already backfills from the cached catalogue, but a disk cache older than four hours was discarded at startup, leaving nothing to backfill from; the partial answer then replaced the full catalogue in memory and on disk. A disk cache up to seven days old is now loaded with its own time, so the first request still refreshes and newer TLEs win wherever CelesTrak answers, while the rest are kept.
The orbit line drawn around the globe for a selected satellite is removed, with the card's track status row and the ten-minute redraw. Selecting a satellite still flies to it, follows it live and shows the view below and the 3D model. /api/satellites/orbit keeps returning its segments for API callers; the page now reads only the period and the live samples from it.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Selecting a satellite now takes the camera to it and follows it live. The readout card shows the satellite's current speed, heading and position every second, and a picture of the ground beneath it from Esri World Imagery. A toggle switches the picture to a 3D model of the satellite.
The selected satellite's orbit line is no longer drawn. The satellite catalogue also no longer shrinks to a fraction of its size when the server restarts.
Changes
Fly to and follow
movePointinsatellite-layer.ts); the rest of the catalogue stays as it is./api/satellites/orbitstill returns its segments for API callers.Live position, speed and heading
/api/satellites/orbitalso returnslive: positions every 10 s for the next 20 minutes, each with the SGP4 orbital speed and the ground-track heading. The card glides between samples once a second (src/lib/satellite-live.ts) and asks again after ten minutes.next buildstalls on it), and one request per ten minutes is lighter than polling.tis rounded to the minute, so visitors within the same minute share one cached response.View below
SatelliteView: a small non-interactive globe of Esri World Imagery, the same tiles as the SAT basemap, looking straight down at the sub-satellite point.3D model
SatelliteModel, behind a VIEW / 3D MODEL toggle. A model of the satellite's kind turns in sunlight; drag to turn it, scroll to zoom.src/lib/satellite-models.tsbuilds 13 kinds from simple shapes: Starlink V2 Mini and V1.5 (told apart by catalogue number), ISS, Tiangong, Hubble, navigation, Earth observation, geostationary, communications, CubeSat, rocket body, debris (shaped by NORAD number) and a general satellite.Catalogue after a restart
Cleanup
satellites_at, because the orbit request no longer anchors on the catalogue epoch.Testing
npx vitest run: 178 files, 1,796 tests passed. New tests cover:satelliteState: ISS and geostationary speed and heading)npx tsc --noEmitis clean.eslintshows no new findings in the changed files; the satellites route keeps its five existinganyerrors from master.next buildpasses; three.js and satellite.js stay out of the main client chunk.next start, a headless browser selected a Starlink, a debris object, the ISS and a geostationary satellite, and checked:🤖 Generated with SIMPLIFAI