Browser-based dashboard for visual and intuitive exploration of main-belt asteroids using official NASA/JPL public API data.
- Canonical public VPS deployment: https://asteroids.classroom-fox.com/
- Health check: https://asteroids.classroom-fox.com/healthz
- Previous Render deployment: suspended on 22 October 2026, with automatic deployment disabled. It is not an active fallback.
The VPS uses explicit publishing and recovery on failed readiness. The previous Render service was suspended rather than deleted; restoring it requires an intentional manual resume and deployment. See deployment and recovery instructions.
- Shows a prepared sample of main-belt asteroids immediately at startup for fast first paint.
- Uses that sample for charts, KPIs, and the belt navigator.
- Uses the live JPL APIs for full-catalog pagination, sorting, filtering, and object search.
- Pins a searched or table-selected object into the live sample so it appears on the map and charts even if it was not part of the prepared sample.
- Refreshes the loaded sample in memory in the background while the service is running.
- Population by size category.
- Semi-major axis vs eccentricity scatter plot.
- Semi-major axis density histogram with Kirkwood resonance guides.
- True-anomaly histogram.
- Belt navigator map.
- Full-catalog browser with server-side pagination.
- Selected-object details panel.
More detail:
This project uses a prepared dataset for fast startup and bounded live requests for exploration beyond that sample.
data/main-belt-startup.json
- Prepared startup sample committed into the repo.
- Includes a fixed set of non-negotiable scientifically important bodies.
- Used for initial charts, KPIs, and the belt navigator.
- Live JPL APIs
GET /api/catalogpages through the full main-belt catalog via NASA/JPL.GET /api/searchresolves named bodies and designations via NASA/JPL.- Runtime refresh updates only the currently loaded sample in memory.
Reference APIs:
- SBDB Query API:
https://ssd-api.jpl.nasa.gov/sbdb_query.api - SBDB Object API:
https://ssd-api.jpl.nasa.gov/sbdb.api
Requirements:
- Node.js 24 LTS recommended (Node 22 is also tested).
Commands:
npm ci --ignore-scripts
npm test
npm run devThen open:
http://localhost:4173
Regenerate data/main-belt-startup.json with the current JPL data:
npm run sample:updateOptional flags:
node scripts/update_startup_sample.mjs --size=12000
node scripts/update_startup_sample.mjs --commitWhat this command does:
- Pulls the current main-belt count from JPL.
- Re-fetches all required core bodies from
config/startup-sample-core-bodies.json. - Fills the rest of the startup sample from random JPL catalog windows.
- Writes the updated prepared sample back to
data/main-belt-startup.json. - Optionally auto-commits only the sample artifacts.
The browser assets and API share one Node process. Static-only hosting does not provide full live catalog/search functionality.
After committing a clean checkout, publish explicitly through your existing SSH connection:
python deploy/publish.py --host YOUR_SSH_ALIASOn Windows, the wrapper finds an available Python 3 runtime:
.\deploy.ps1 -HostAlias YOUR_SSH_ALIASThis tests the commit, sends allowlisted source only, verifies the transfer and invokes a separately installed trusted server controller. Failed readiness restores the previous version. No Git key or automatic deployment poller is installed on the VPS. See bootstrap, DNS, limits and recovery details.
- No API key is required.
- No secrets are embedded in the client or server.
.env*remains ignored. Server configuration and real contact details stay in/etc/asteroid-explorer/environment, outside Git and the image.- Deployment archives contain allowlisted application files only; operational scripts and private files are excluded.
Application tests cover frontend math, backend request boundaries, bounded caching/upstream work and readiness. Deployment tests exercise archive validation, source selection and rollback without contacting Docker, SSH or JPL:
npm test
python -m unittest discover -s deploy -p 'test_*.py' -vDaniel Häggström Pérez-Flecha