UFO@home
UFO@home lets a UFO observer record the shape, appearance and movement of what they saw, and replay it
against the real sky, weather and place of the observation, instead of relying only on a written or spoken account.
Everything about using it lives on ufoathome.org, which is built from this
repository (see The site) so that it always describes the version it ships with:
- Demos: every published reconstruction, running.
- Player and editor.
- Documentation: embedding the components (
<rr0-sighting>, <rr0-scene>,
<rr0-sighting-editor>), the recording format, the data sources, sharing a recording.
- Roadmap and FAQ.
The components are published on npm as @rr0/ufoathome.
This README only covers what a contributor needs: installing, fetching the data, testing, debugging, releasing.
The project's history is in the Wiki.
Setup
Node ≥ 20 (Node 22 recommended, as pinned in netlify.toml).
git clone https://github.com/RR0/UfoAtHome.git
cd UfoAtHome
npm install
npm test
Nothing else is needed to develop, test or build: every catalogue the browser uses is committed (see
Data). No .env either: the only keys the project knows of are the ones a reader types into the
editor themselves (e.g. an Anthropic key to draft a recording from its description), which never leave their
browser.
Layout
| Path |
What |
src/engine/ |
Framework-agnostic core: model (Shape, Timeline, Sighting), recording, playback, persistence, astronomy, atmosphere, weather, place, assessment. No DOM, no three.js. |
src/render/ |
2D canvas drawing: the texture of each phenomenon plane, editing handles, the observer map. |
src/render3d/ |
The three.js scene (SceneRenderer) and its systems: sky, terrain, decor, bodies, clouds, optics, phenomena. |
src/component/ |
The Web Components. SceneElement (<rr0-scene>) composes the playback layer UfoElement; SightingElement and SightingEditorElement compose a SceneElement. Vanilla custom elements, no framework. |
src/assets/ |
The star catalogue tiers (generated) and sounds. The other catalogues are generated modules in src/engine/astronomy/. |
src/generated/ |
Derived from the TypeScript by npm run build:schema; gitignored, never edited. |
public/demo-data/ |
The published recordings (observer-*.json, case-*.json) and the examples the docs quote. |
public/models/, public/roads/, public/tle/, public/reentries/, public/fireballs/, public/light-pollution/, public/aircraft/ |
Archived glTF models, road networks, orbital elements, re-entries, recorded fireballs, night-sky brightness tiles and a slice of air traffic, served next to the bundles (see public/models/README.md). |
site/ |
The ufoathome.org generator (see The site). |
scripts/ |
One-off data builds, case maintenance, GPU checks and performance harnesses. |
test/ |
Vitest suites mirroring src/ (engine, render, render3d, component, site). |
checks/ |
Pages that must run on a real GPU (see Debugging). |
docs/ |
Developer notes: performance, past audits. |
doc/web/ |
The 2003 Java applet's documentation, kept for history. |
Data
Every data build is a one-off step: its output is committed, and neither build, test nor prepublishOnly
runs it. Re-run one only when its source or its script changes, and commit the result. Raw inputs go under
scripts/data/, which is gitignored (except scripts/data/novae/, kept so that catalogue stays reproducible).
Each script's header comment says what it takes, what it deliberately leaves out, and why.