How arjav1512/nakshatra-x works
NAKSHATRA-X is a hackathon decision-support prototype for manganese reserve prospectivity (Track A) and production-shortfall planning (Track B), presented through a dashboard. The principal workflow is dashboard interaction → product API → domain analysis → forecast, map, or recommendation results. The README documents the separate AI prospectivity pipeline and major capabilities. Several backend modules are indexed but unsampled; their links are included only where the excerpts or README support them.
Main entry points: routes.py FastAPI routes · track_b.py Track B endpoints · components Dashboard UI · v1 Frontend API routes
Components 25
Dashboard
- Dashboard UI
frontend/src/components - Demo authentication
frontend/src/app/api/auth/otp/route.ts
Product APIs
- Frontend API routes
frontend/src/app/api/v1 - FastAPI routes
backend/app/api/routes.py - Blending API
frontend/src/app/api/v1/optimize-blending/route.ts - Mine twin API
frontend/src/app/api/v1/mine-twin/route.ts
Track A
- Prospectivity model
backend/app/ml/prospectivity.py - Map layers
backend/app/ml/map_layers.py - AI dataset generation
AI/scripts/01_make_dataset.py - AI feature extraction
AI/scripts/02_extract_features.py - AI model training
AI/scripts/03_train_model.py - AI grid prediction
AI/scripts/04_predict_grid.py - GeoJSON export
AI/scripts/05_export_geojson.py
Track B
- Track B endpoints
backend/app/api/track_b.py - Production forecaster
backend/app/ml/forecaster.py - Forecast backtest
backend/app/ml/backtest.py - Action constraints
backend/app/ml/constraints.py - Ore blending optimizer
backend/app/ml/blending_optimizer.py
Data and provenance
- Synthetic data generator
backend/app/ingestion/generator.py - Forecast artifacts
backend/app/api/forecast_store.py - Mine database
backend/app/db/session.py - Weather clients
backend/app/services/nasa_power.py - Satellite metadata client
backend/app/services/satellite.py - Response provenance
backend/app/api/response_provenance.py
Other components
- Mine user
Connections 22
- Mine user → Dashboard UI: uses
README.md - Dashboard UI → Frontend API routes: requests
README.md - Frontend API routes → FastAPI routes: proxy requests
- Dashboard UI → Demo authentication: authenticates
README.md - FastAPI routes → Track B endpoints: dispatches
backend/app/api/routes.py - FastAPI routes → Mine database: reads mines
backend/app/api/routes.py - FastAPI routes → Weather clients: fetches weather
backend/app/api/routes.py - FastAPI routes → Satellite metadata client: queries scenes
backend/app/api/routes.py - FastAPI routes → Prospectivity model: predicts points
backend/app/api/routes.py - FastAPI routes → Map layers: serves layers
backend/app/api/routes.py - FastAPI routes → Response provenance: stamps responses
backend/app/api/routes.py - Track B endpoints → Production forecaster: forecasts production
backend/app/api/track_b.py - Track B endpoints → Forecast backtest: runs backtests
backend/app/api/track_b.py - Track B endpoints → Action constraints: gates actions
backend/app/api/track_b.py - Track B endpoints → Forecast artifacts: loads forecasts
backend/app/api/track_b.py - Forecast artifacts → Synthetic data generator: checks dataset identity
backend/app/api/forecast_store.py - Blending API → Ore blending optimizer: optimizes blends
- Mine twin API → FastAPI routes: requests mine data
- AI dataset generation → AI feature extraction: prepares data
README.md - AI feature extraction → AI model training: provides features
README.md - AI model training → AI grid prediction: supplies model
README.md - AI grid prediction → GeoJSON export: exports predictions
README.md