How codebyshubhamm/thermos-live2 works
THERMOS is a satellite thermal-anomaly intelligence and emergency-triage platform. Its main workflow ingests NASA FIRMS observations, enriches and classifies events, assigns risk, persists incidents, and presents them for mapping, prioritization, analysis, and investigation. The React dashboard hydrates through a shared store and API client; the FastAPI backend exposes event and operational services. README capabilities such as GIS layers, analytics, and AI investigation are represented where the tree supports them. Some backend service wiring is documented but not shown in sampled source, so uncertain calls are omitted.
Main entry points: event_service.py Event processing · firms_ingestion.py FIRMS ingestion · App.jsx Dashboard routes · pages Operations pages
Components 23
Operator dashboard
- Dashboard routes
src/App.jsx - Operations pages
src/pages - GIS and globe
src/components/map - Incident investigator
src/pages/Investigator.jsx - Event state
src/store/useStore.js - API client
src/services/api.js
Observation pipeline
- FIRMS ingestion
backend-ml/Backend/app/workers/firms_ingestion.py - FIRMS retrieval
backend-ml/Backend/app/services/firms_service.py - Event processing
backend-ml/Backend/app/services/event_service.py
Event intelligence
- Context enrichment
backend-ml/Backend/app/services/enrichment_service.py - Geospatial context
backend-ml/Backend/app/services/geo_service.py - Temporal history
backend-ml/Backend/app/services/temporal_service.py - ML classification
backend-ml/Backend/app/ml/predictor.py - Risk scoring
backend-ml/Backend/app/services/risk_service.py - AI reasoning
backend-ml/Backend/app/services/ai_reasoning_service.py
API and operations
- FastAPI application
backend-ml/Backend/app/main.py - Product API routes
backend-ml/Backend/app/api/routes - Event data models
backend-ml/Backend/app/db/models.py - PostGIS database
backend-ml/Backend/app/db/database.py - Analytics service
backend-ml/Backend/app/services/analytics_service.py - Investigation service
backend-ml/Backend/app/services/investigator_service.py
Other components
- Operator
- NASA FIRMS
Connections 24
- Operator → Dashboard routes: uses
- Dashboard routes → Operations pages: routes to
- Dashboard routes → Event state: hydrates
- Operations pages → GIS and globe: renders
- Operations pages → Incident investigator: opens
- Event state → API client: requests events
- API client → FastAPI application: calls
- FastAPI application → Product API routes: dispatches
- FastAPI application → PostGIS database: initializes
- NASA FIRMS → FIRMS retrieval: provides observations
- FIRMS ingestion → FIRMS retrieval: fetches via
- FIRMS ingestion → PostGIS database: checks duplicates
- FIRMS ingestion → Event processing: processes observations
- Event processing → Context enrichment: enriches
- Event processing → ML classification: classifies
- Event processing → Risk scoring: scores risk
- Context enrichment → Geospatial context: uses context
- Context enrichment → Temporal history: uses history
- Event processing → Event data models: creates event records
- Event data models → PostGIS database: persisted in
- Product API routes → Analytics service: serves analytics
- Product API routes → Investigation service: serves investigations
- Incident investigator → API client: requests intelligence
- Investigation service → AI reasoning: uses reasoning