Skip to content
0ffrianPublic

About

Odysseus: NASA Space Apps 2026 (Port Louis), Planet X and SPHEREx challenge. Play real SPHEREx frames of any sky patch, click an object to see its spectrum, then explore it as a 3D body you can rotate and listen to.

Topics

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Odysseus

Note

Odysseus did not end with the hackathon. In real NASA SPHEREx images it found the known asteroid 2253 Espinette without being told where to look, and one of our two technical papers measures how often the method is wrong. We are still building it to contribute to real science, and working towards open-sourcing it so amateur astronomers and physicists can fork and adapt it. Development happens on dev. main is frozen apart from CI and documentation updates.

NASA Space Apps 2026, Port Louis. Challenge: Planet X and SPHEREx.

A public web tool: enter coordinates or a name, watch real SPHEREx frames of that patch play as a series, click any object to see its spectrum, then explore it as a 3D body you can rotate and listen to.

Technical papers

See it

Recorded from the app running on real cached SPHEREx data (20 Nov 2026). The clips have no sound.

Discovery: find what no catalogue explains

The Discovery eye is clicked, a 28-square region over the Milky Way is selected and scanned square by square
Start a scan. Click the eye, pick a patch of sky, and it is scanned square by square. Green circles are known objects, amber ones unexplained. This clip uses test data, not a real scan.
Our 14 November scan is replayed at speed, then square 2 is opened and the unexplained track T485 shows its spectrum
Replay a real scan. Our 14 Nov scan of 4 squares, replayed in seconds. Open a square and pick an unexplained track to see its spectrum.
Square 1 opens alone with all its plot points; the unexplained track T23 is selected and its graph points are traced, then the list of points used opens
One square, one unknown. Square 1 with all its plot points. T23 is unexplained; its graph compares each measurement with the Sun's colour.

Barnard's Star: from the sky to 3D

Barnard's Star is searched, its SPHEREx frames play, it is built in 3D, explored up close, then switched from true colour to the ultraviolet Observatory view
Search, play, build. Find Barnard's Star, play its SPHEREx frames, build it in 3D, explore the surface, then switch from true colour to ultraviolet.
Searching for Barnard's Star: the sky flies to it and its SPHEREx frames play
Search the sky. Type a name and the sky flies there. The flipbook plays the real SPHEREx frames of that patch.
Barnard's Star built in steps: mould, surface, spots, colour A flare rising from the surface of Barnard's Star
Build it. Mould, surface, spots, colour. Explore a star. A flare at the edge of Barnard's Star.

More of the app

433 Eros moving along its predicted path across SPHEREx frames, its spectrum building hop by hop
Track a moving asteroid. 433 Eros across SPHEREx frames, its spectrum built hop by hop. The app tags this view as demo data.
The flipbook card playing frames above a measured spectrum Jupiter, Saturn, K2-18 b and Kepler-186 f turned by hand
Flipbook and spectrum. Each frame is a different wavelength; the spectrum is measured from them. Turn it in your hand. Jupiter, Saturn, K2-18 b and Kepler-186 f.
TRAPPIST-1 e forming from a grey mould through a molten globe to continents 433 Eros morphing from a sphere into its shape model, then tumbling
Build a planet. TRAPPIST-1 e from molten globe to continents. A real shape. 433 Eros built from its shape model.

Fly over it

Flying low over 55 Cancri e: dark crust cracked by glowing lava and a river of molten rock Flying out over the sea of TRAPPIST-1 f, past its coastline and islands Rising over Jupiter's cloud tops: a pale zone with a turbulent edge onto a brown belt
A rocky world. 55 Cancri e, cracked crust and rivers of lava. A water world. TRAPPIST-1 f, out over its sea. A gas giant. Jupiter's cloud tops, zone and belt.

Planet and star surfaces are artist's impressions, and the app labels them so. Spectra, frames and tracks are measured from SPHEREx data unless the caption says otherwise.

Repo map

Path What
docs/ Specs, decision log and UML diagrams. Start with docs/README.md.
mockup/spherex-ui.html Single-file UI mock-up. Open it in a browser.
backend/ Python 3.12 FastAPI: name resolver, SPHEREx frames and cutouts, read-through cache (see its README).
frontend/ Web app, 3D viewer and sound.
shared/ JSON schemas for the ObjectCard and RenderParams.

Install and run (step by step)

You need a computer with internet, a desktop browser (Chrome or Edge recommended) and about 2 GB of free disk space. Nothing here needs coding knowledge: you copy each command into a terminal and press Enter.

What is a terminal? Windows: press the Windows key, type PowerShell, press Enter. Mac: press Cmd+Space, type Terminal, press Enter.

Step 1. Install the three tools (one time only)

Tool Get it from Check it worked
Git https://git-scm.com/downloads git --version
Node.js 24 or later (pick "LTS" or "Current") https://nodejs.org node --version shows v24 or higher
uv (installs Python for you) Windows: winget install astral-sh.uv. Mac/Linux: curl -LsSf https://astral.sh/uv/install.sh | sh uv --version

After installing, close the terminal and open a new one so it finds the new tools. You do not need to install Python yourself; uv does it.

Step 2. Download the project (one time only)

git clone https://github.com/0ffrian/SphereX.git
cd SphereX

If you forked the project to contribute (see CONTRIBUTING.md), clone your fork instead, so you can push to it:

git clone https://github.com/<your-github-username>/SphereX.git
cd SphereX

Step 3. Install the project's parts (one time only)

npm run setup
npm run backend:setup

Each takes a few minutes. Warnings in yellow are normal. Red error lines are not; see Troubleshooting.

Step 4. Start the app

The app has two halves, so you open two terminals, both inside the SphereX folder.

Terminal 1: the data server

npm run backend:dev

Wait until it says Application startup complete. Leave this window open.

Terminal 2: the website

npm run dev

Leave this window open too.

Step 5. Open it

Go to http://localhost:5173 in your browser. Type an object name (for example Barnard's Star) or coordinates, and press Enter. The first time you look up an object it can take a minute, because the real SPHEREx images are downloaded from NASA. They are saved, so the second time is fast.

To stop the app, click each terminal and press Ctrl+C.

Next time

Skip steps 1 to 3. Just do steps 4 and 5. To get newer code, run git pull, then npm run setup and npm run backend:setup again.

Just want to look around, with no data server?

Run npm --prefix frontend run dev:fixtures (one terminal, no Step 4 Terminal 1). It shows made-up sample data, so use it only to see the interface.

Troubleshooting

Problem Fix
command not found / not recognized Close the terminal, open a new one, and try again. If it persists, reinstall that tool from Step 1.
node --version is lower than 24 Install the newer Node.js from https://nodejs.org.
Page is blank or says it cannot reach the server Terminal 1 (backend:dev) must be running. Check it for red errors, then reload the page.
"Address already in use" Another copy is running. Close the old terminals, or restart the computer.
3D view is black or very slow Use the latest Chrome or Edge, and turn on hardware acceleration in the browser settings.
Object takes ages to load The NASA archive can be slow. Wait, or try again later.

Other commands (for developers)

npm run check              # frontend: typecheck + lint + unit tests + build
npm run backend:check      # backend: ruff + mypy + pytest (offline, recorded fixtures)
npm run backend:prefetch   # fill the cache for the test targets while the internet is good
npm run dev:phone          # HTTPS (self-signed) for phones on the same Wi-Fi, so WebGPU is available

SX_OFFLINE=1 makes the backend never touch the network (the demo runs this way); set it before npm run backend:dev. The cache lives outside the repo; details in backend/README.md. Other root scripts (build, preview, test, test:e2e, lint, typecheck, format) forward to frontend/.

Contributing

Want to help? Read CONTRIBUTING.md. Its "Your first PR" section takes you from a good first issue to a merged pull request.

Status

Under active development for NASA Space Apps 2026.

Licence

The code and the mock-ups are released under the BSD 3-Clause licence. Documentation is CC-BY-4.0. Data, fixtures and third-party parts keep the terms of their source, and GPL code is only ever an optional plugin you install yourself. NOTICE.md lists which part falls under which terms, and the decision is D-41.

About

Odysseus: NASA Space Apps 2026 (Port Louis), Planet X and SPHEREx challenge. Play real SPHEREx frames of any sky patch, click an object to see its spectrum, then explore it as a 3D body you can rotate and listen to.

Topics

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages