How adharshkokkula/space-sustainability works
The product is a browser-based satellite collision viewer with a Flask analysis backend and AI-assisted reporting. Users load satellite orbital data, inspect a 3D view, select a satellite, and request collision-risk results; reports can then be generated and displayed or exported. The sampled backend also shows configuration, caching, and LLM-client layers. The README documents health checks and Space-Track data use, but sampled excerpts do not establish every backend route or data-source connection.
Main entry points: server.py Analysis API · index.js Viewer and selection · renderer.js 3D renderer · config_loader.py LLM configuration
Components 15
Satellite viewer
- Viewer and selection
index.js - Orbital data
data/tle.20171129.txt - Satellite metadata
data/oio.20171129.txt - 3D renderer
renderer.js - Orbit propagation
worker.js
Collision analysis
- Analysis API
backend/server.py - LLM configuration
backend/config/config_loader.py - LLM settings
backend/config/llm_config.json
Risk reporting
- Report cache
backend/services/cache_manager.py - Report generation
backend/services/report_service.py - LLM client
backend/services/llm_client.py - Report display and export
report_generator.js
External services
- Hugging Face API
- Space-Track.org
Other components
- Satellite analyst
Connections 15
- Satellite analyst → Viewer and selection: selects satellite
README.md - Viewer and selection → Orbital data: loads orbital data
index.js - Viewer and selection → Satellite metadata: loads metadata
index.js - Viewer and selection → 3D renderer: shows 3D view
- 3D renderer → Orbit propagation: starts worker
renderer.js - Viewer and selection → Analysis API: requests collision analysis
index.js - Analysis API → LLM configuration: loads settings
backend/server.py - LLM configuration → LLM settings: reads settings
backend/config/config_loader.py - Analysis API → Report cache: initializes cache
backend/server.py - Analysis API → Report generation: initializes service
backend/server.py - Report generation → LLM client: generates text
backend/services/report_service.py - Analysis API → Report display and export: serves report requests
- Report display and export → Analysis API: requests report
report_generator.js - LLM client → Hugging Face API: sends generation request
backend/services/llm_client.py - Analysis API → Space-Track.org: retrieves TLE data
README.md