How khanhquyenkqvk/aspace works
Cosmic Explorer is an astronomy exploration website. Visitors browse interactive planet, star, constellation, galaxy, and Big Bang experiences; a separate observing workflow gathers a location and presents recommendations, maps, events, and notifications. The graph emphasizes documented page-to-component calls, the galaxy fetch route, and the location/database relationship visible in the source index. Other API capabilities are retained as a grouped subsystem because the README and tree establish them, but unsampled route-to-provider or page-to-route relationships are not inferred.
Main entry points: recommendations/page.tsx Observing planner · galaxies/page.tsx Galaxy explorer · app/page.tsx Explore home · stars/page.tsx Star catalog
Components 28
Astronomy experiences
- Explore home
app/page.tsx - Solar system
components/3d-solar-system.tsx - Planet details
app/planets/[slug]/page.tsx - Star catalog
app/stars/page.tsx - Star details
components/star-detail-client.tsx - Star map
components/star-map.tsx - Constellations
app/stars/constellations/page.tsx - Galaxy explorer
app/galaxies/page.tsx - Galaxy simulation
components/galaxy-3d.tsx - Big Bang page
app/big-bang/page.tsx - Cosmic timeline
components/big-bang-simulation-3d.tsx - Discover
app/discover/page.tsx - Nebula explorer
app/nebula/page.tsx
Observing tools
- Observing planner
app/recommendations/page.tsx - Viewing recommendations
components/astronomy-recommendations.tsx - Location map
components/location-map.tsx - Event schedule
components/event-schedule.tsx - Notifications
components/notification-service.tsx
API capabilities
- Astronomy and location APIs
app/api - Galaxy endpoint
app/api/galaxies/route.ts - Location endpoint
app/api/location/route.ts - NASA endpoints
app/api/nasa
Data and storage
- MySQL pool
lib/mysql-client.ts - Constellation data
lib/constellations-data.ts - Astronomy data
lib/astronomy-data.ts
Other components
- Visitor
- MySQL database
- NASA APIs
Connections 25
- Visitor → Explore home: opens
app/page.tsx - Explore home → Solar system: renders
app/page.tsx - Visitor → Star catalog: browses
- Star catalog → Star map: offers
app/stars/page.tsx - Visitor → Constellations: browses
- Constellations → Constellation data: uses
app/stars/constellations/page.tsx - Visitor → Galaxy explorer: explores
- Galaxy explorer → Galaxy endpoint: fetches
app/galaxies/page.tsx - Galaxy explorer → Galaxy simulation: renders
app/galaxies/page.tsx - Visitor → Big Bang page: explores
- Big Bang page → Cosmic timeline: renders
app/big-bang/page.tsx - Visitor → Planet details: views
- Visitor → Star details: views
- Visitor → Discover: browses
- Visitor → Nebula explorer: browses
- Visitor → Observing planner: plans
app/recommendations/page.tsx - Observing planner → Viewing recommendations: renders
app/recommendations/page.tsx - Observing planner → Location map: renders
app/recommendations/page.tsx - Observing planner → Event schedule: renders
app/recommendations/page.tsx - Observing planner → Notifications: renders
app/recommendations/page.tsx - Visitor → Astronomy and location APIs: requests
- Astronomy and location APIs → NASA endpoints: includes
- Visitor → NASA APIs: queries
- Location endpoint → MySQL pool: uses
app/api/location/route.ts - MySQL pool → MySQL database: connects
lib/mysql-client.ts