How superiorpython/astrolabe works
Astrolabe is a NASA-data space dashboard. Visitors choose one of five feeds from the interactive globe or tab navigation; the selected section fetches and presents its data. An Express API proxies and caches upstream data, with the same app also usable as a Netlify function. The graph preserves the documented feed capabilities and sampled routing/data layers. Some route and section internals are represented from the README and SOURCE INDEX rather than inspected excerpts, so uncertain upstream links are omitted.
Main entry points: App.tsx Dashboard shell · api.ts Typed API client · app.ts Express API · cache.ts Memory TTL cache
Components 24
Navigation
- Dashboard shell
client/src/App.tsx - Home globe
client/src/components/HomeGlobe.tsx - Home menu
client/src/components/HomeMenu.tsx - Tab navigation
client/src/components/TabHeader.tsx
Dashboard feeds
- APOD viewer
client/src/components/ApodSection.tsx - ISS tracker
client/src/components/IssSection.tsx - Asteroid radar
client/src/components/NeoWsSection.tsx - Exoplanet catalog
client/src/components/ExoplanetsSection.tsx - Space weather
client/src/components/SpaceWeatherSection.tsx
Client data and UI
- Typed API client
client/src/lib/api.ts - Feed health monitor
client/src/lib/useFeedHealth.ts - Fetch state hook
client/src/lib/useFetch.ts - Data formatting
client/src/lib/format.ts - Shared panel UI
client/src/components
API routing
- Express API
server/src/app.ts - APOD route
server/src/routes/apod.ts - ISS route
server/src/routes/iss.ts - Near-Earth route
server/src/routes/neows.ts - Exoplanet route
server/src/routes/exoplanets.ts - DONKI route
server/src/routes/donki.ts
Backend services
- Memory TTL cache
server/src/lib/cache.ts - NASA request client
server/src/lib/nasaClient.ts
Other components
- Visitor
- NASA and ISS feeds
Connections 36
- Visitor → Dashboard shell: opens dashboard
README.md - Dashboard shell → Home globe: shows landing
client/src/App.tsx - Dashboard shell → Home menu: shows landing
client/src/App.tsx - Dashboard shell → Tab navigation: renders tabs
client/src/App.tsx - Dashboard shell → Feed health monitor: checks feeds
client/src/App.tsx - Dashboard shell → APOD viewer: selects feed
client/src/App.tsx - Dashboard shell → ISS tracker: selects feed
client/src/App.tsx - Dashboard shell → Asteroid radar: selects feed
client/src/App.tsx - Dashboard shell → Exoplanet catalog: selects feed
client/src/App.tsx - Dashboard shell → Space weather: selects feed
client/src/App.tsx - APOD viewer → Typed API client: requests feed
client/src/components/ApodSection.tsx - ISS tracker → Typed API client: requests position
client/src/components/IssSection.tsx - Asteroid radar → Typed API client: requests approaches
client/src/components/NeoWsSection.tsx - Exoplanet catalog → Typed API client: requests catalog
client/src/components/ExoplanetsSection.tsx - Space weather → Typed API client: requests events
client/src/components/SpaceWeatherSection.tsx - Feed health monitor → Typed API client: probes feeds
client/src/lib/useFeedHealth.ts - APOD viewer → Fetch state hook: uses fetch state
client/src/components/ApodSection.tsx - ISS tracker → Shared panel UI: uses panels
client/src/components/IssSection.tsx - Asteroid radar → Data formatting: formats values
client/src/components/NeoWsSection.tsx - Typed API client → Express API: requests API
README.md - Express API → APOD route: mounts route
server/src/app.ts - Express API → ISS route: mounts route
server/src/app.ts - Express API → Near-Earth route: mounts route
server/src/app.ts - Express API → Exoplanet route: mounts route
server/src/app.ts - Express API → DONKI route: mounts route
server/src/app.ts - APOD route → Memory TTL cache: caches responses
server/src/routes/apod.ts - ISS route → Memory TTL cache: caches responses
server/src/routes/iss.ts - Near-Earth route → Memory TTL cache: caches responses
server/src/routes/neows.ts - Exoplanet route → Memory TTL cache: caches responses
server/src/routes/exoplanets.ts - DONKI route → Memory TTL cache: caches responses
server/src/routes/donki.ts - APOD route → NASA request client: fetches upstream
server/src/routes/apod.ts - Near-Earth route → NASA request client: fetches upstream
server/src/routes/neows.ts - DONKI route → NASA request client: fetches upstream
server/src/routes/donki.ts - NASA request client → NASA and ISS feeds: requests data
README.md - ISS route → NASA and ISS feeds: gets position
README.md - Exoplanet route → NASA and ISS feeds: queries catalog
README.md