How iamdevdhanush/afterlight works
ORBITAL is an interactive space-archaeology museum. Visitors move from a cinematic arrival and guided artifact storytelling to Moon-or-Mars destination selection, then browse an archival exhibition and optional artifact, surface-map, legacy, or free-exploration views. A separate planetary-archaeology experience presents sites, traverses, terrain, and hardware inspection; classroom, language, accessibility, and fallback features broaden access. The graph follows documented app routing and sampled imports; some optional capabilities are included from the README, with uncertain wiring left unconnected.
Main entry points: App.tsx Experience router · useExperienceStore.ts Experience state · GuideVoiceEngine.ts Curator narration · ScreenExhibition.tsx Artifact exhibition
Components 29
Museum Experience
- Experience router
src/App.tsx - Arrival story
src/components/ui/ScreenArrival.tsx - Destination selection
src/components/ui/ScreenDestinationSelect.tsx - Artifact exhibition
src/components/ui/ScreenExhibition.tsx - Artifact details
src/components/ui/ScreenArtifactDetails.tsx - Documentary stories
src/components/ui/ScreenDocumentary.tsx - Artifact legacy
src/components/ui/ScreenLegacy.tsx - Free exploration
src/components/ui/ScreenExplorationUI.tsx - Planetary scene
src/components/canvas/SceneCanvas.tsx - Surface map
src/components/ui/PlanetarySurfaceMap.tsx
Archive Content
- Artifact archive
src/data/artifacts.ts - Destination profiles
src/data/destinations.ts
Planetary Archaeology
- Archaeology module
src/modules/planetary-archaeology/components/PlanetaryArchaeologyModule.tsx - Planetary site catalog
src/modules/planetary-archaeology/data/planetarySites.ts - Site search
src/modules/planetary-archaeology/components/PlanetarySearch.tsx - Site markers
src/modules/planetary-archaeology/components/PlanetaryMarkers.tsx - Hardware inspection
src/modules/planetary-archaeology/components/HardwareInspectionStudio.tsx - NASA Trek imagery
src/modules/planetary-archaeology/services/nasaTrekService.ts
Shared Experience Services
- Experience state
src/store/useExperienceStore.ts - History navigation
src/navigation/navigationController.ts - Curator narration
src/audio/GuideVoiceEngine.ts - Procedural sound
src/audio/SoundManager.ts
Access and Classroom
- Teacher mode
src/components/ui/TeacherModeModal.tsx - Language support
src/i18n/index.ts - Screen-reader announcer
src/components/ui/AriaLiveAnnouncer.tsx - 2D archival fallback
src/components/canvas/WebGLFallbackGallery.tsx - Offline cache
public/sw.js
Other components
- Museum visitor
- NASA data services
Connections 36
- Museum visitor → Experience router: opens
README.md - Experience router → Experience state: reads state
src/App.tsx - Experience router → Planetary scene: renders
src/App.tsx - Experience router → Arrival story: routes to
src/App.tsx - Arrival story → History navigation: advances via
src/components/ui/ScreenArrival.tsx - Arrival story → Procedural sound: plays cues
src/components/ui/ScreenArrival.tsx - Destination selection → Experience state: updates
src/components/ui/ScreenDestinationSelect.tsx - Destination selection → Destination profiles: reads profiles
src/components/ui/ScreenDestinationSelect.tsx - Artifact exhibition → Artifact archive: reads archive
src/components/ui/ScreenExhibition.tsx - Artifact exhibition → Destination profiles: reads profiles
src/components/ui/ScreenExhibition.tsx - Artifact exhibition → Surface map: offers map
src/components/ui/ScreenExhibition.tsx - Artifact details → Artifact archive: reads archive
src/components/ui/ScreenArtifactDetails.tsx - Artifact details → Curator narration: requests narration
src/components/ui/ScreenArtifactDetails.tsx - Documentary stories → Curator narration: requests narration
src/components/ui/ScreenDocumentary.tsx - Artifact legacy → Curator narration: requests narration
src/components/ui/ScreenLegacy.tsx - Experience state → History navigation: dispatches navigation
src/store/useExperienceStore.ts - Experience state → Procedural sound: plays cues
src/store/useExperienceStore.ts - Experience state → Curator narration: coordinates narration
src/store/useExperienceStore.ts - Curator narration → Procedural sound: uses audio engine
src/audio/GuideVoiceEngine.ts - Curator narration → NASA data services: speaks scripts
- Experience router → Archaeology module: routes to
src/App.tsx - Archaeology module → Planetary site catalog: browses sites
- Site search → Planetary site catalog: searches
src/modules/planetary-archaeology/components/PlanetarySearch.tsx - Site search → Site markers: filters markers
src/modules/planetary-archaeology/components/PlanetarySearch.tsx - Site markers → Planetary site catalog: uses site data
- Hardware inspection → Archaeology module: extends inspection
- Surface map → NASA data services: shows topography
README.md - NASA Trek imagery → NASA data services: requests imagery
- Experience router → Teacher mode: mounts mode
src/App.tsx - Experience router → Screen-reader announcer: renders
src/App.tsx - Experience router → 2D archival fallback: uses on WebGL failure
src/App.tsx - Language support → Museum visitor: localizes interface
- Offline cache → Museum visitor: caches for offline
README.md - 2D archival fallback → Planetary site catalog: uses site content
src/components/canvas/WebGLFallbackGallery.tsx - Free exploration → Experience state: uses experience state
src/components/ui/ScreenExplorationUI.tsx - Artifact exhibition → History navigation: uses history navigation
src/components/ui/ScreenExhibition.tsx