How anupongmju/space-weather-monitoring works
This is a space-weather monitoring and analysis application: users explore live conditions and historical measurements through dashboards, instrument pages, cosmic-ray and radiation views, and specialist Mars/Moon pages. Backend fetchers collect and normalize external observations into PostgreSQL; FastAPI routes expose domain data, while a scheduler refreshes selected feeds. The frontend routes users to visualizations and uses domain services to retrieve data. Evidence is strongest for application wiring, selected fetcher-to-database writes, and sampled page/service dependencies; unsampled domain links are omitted rather than inferred.
Main entry points: scheduler.py Refresh scheduler · database.py PostgreSQL database · App.tsx Application routes · main.py FastAPI application
Components 22
Web experience
- Application routes
frontend/src/App.tsx - Conditions dashboard
frontend/src/pages/Dashboard.tsx - Radiation monitoring
frontend/src/pages/RadiationMonitoring.tsx - Neutron monitor
frontend/src/pages/cosmic/PsnmIndex.tsx - Mars and Moon views
frontend/src/pages - Custom chart studio
frontend/src/pages/studio/CustomStudio.tsx - Radiation data service
frontend/src/services/radiationService.ts - Cosmic data service
frontend/src/services/cosmicService.ts - PSNM data service
frontend/src/services/psnmService.ts - Mars data service
frontend/src/services/marsService.ts - Moon data service
frontend/src/services/moonService.ts
API and orchestration
- FastAPI application
backend/main.py - Domain API routes
backend/routers - Refresh scheduler
backend/scheduler.py
Data ingestion
- ACE feed ingestion
backend/fetchers/ace_fetcher.py - Cosmic-ray ingestion
backend/fetchers/cosmic_fetcher.py - Mars RAD ingestion
backend/fetchers/mars_rad_fetcher.py - Solar wind ingestion
backend/fetchers/solar1_fetcher.py - GOES ingestion
backend/fetchers/goes_fetcher.py
Persistence
- PostgreSQL database
backend/database.py
Other components
- Space-weather user
- External data providers
Connections 27
- Space-weather user → Application routes: opens
frontend/src/App.tsx - Application routes → Conditions dashboard: routes to
frontend/src/App.tsx - Application routes → Radiation monitoring: routes to
frontend/src/App.tsx - Application routes → Neutron monitor: routes to
frontend/src/App.tsx - Application routes → Custom chart studio: routes to
frontend/src/App.tsx - Radiation monitoring → Radiation data service: requests data
frontend/src/pages/RadiationMonitoring.tsx - Radiation monitoring → Cosmic data service: requests data
frontend/src/pages/RadiationMonitoring.tsx - Neutron monitor → PSNM data service: requests data
frontend/src/pages/cosmic/PsnmIndex.tsx - Mars and Moon views → Mars data service: requests data
- Mars and Moon views → Moon data service: requests data
- FastAPI application → Domain API routes: registers
backend/main.py - FastAPI application → Refresh scheduler: starts
backend/main.py - FastAPI application → PostgreSQL database: initializes
backend/main.py - Refresh scheduler → ACE feed ingestion: runs
backend/scheduler.py - Refresh scheduler → Cosmic-ray ingestion: runs
backend/scheduler.py - Refresh scheduler → Mars RAD ingestion: runs
backend/scheduler.py - Refresh scheduler → Solar wind ingestion: runs
backend/scheduler.py - Refresh scheduler → GOES ingestion: runs
backend/scheduler.py - ACE feed ingestion → PostgreSQL database: writes
backend/fetchers/ace_fetcher.py - Cosmic-ray ingestion → PostgreSQL database: writes
backend/fetchers/cosmic_fetcher.py - Mars RAD ingestion → PostgreSQL database: writes
backend/fetchers/mars_rad_fetcher.py - Solar wind ingestion → PostgreSQL database: writes
backend/fetchers/solar1_fetcher.py - GOES ingestion → PostgreSQL database: writes
backend/fetchers/goes_fetcher.py - External data providers → ACE feed ingestion: supplies observations
backend/fetchers/ace_fetcher.py - External data providers → Cosmic-ray ingestion: supplies observations
backend/fetchers/cosmic_fetcher.py - External data providers → Mars RAD ingestion: supplies observations
backend/fetchers/mars_rad_fetcher.py - External data providers → Solar wind ingestion: supplies observations
backend/fetchers/solar1_fetcher.py