How aniket8983-arch/god-s-plan_deploy- works
This is an agricultural intelligence dashboard combining field-scale satellite/terrain visualization, crop and soil diagnostics, and conversational advice. The main user flow is: load the farm grid and terrain, inspect a cell, submit leaf or soil evidence, assemble a contextual analysis, and ask the assistant for cautious guidance. The graph also preserves the documented Sentinel-2/NDVI and DEM processing capabilities. Some GIS pipeline internals and frontend panels are not excerpted; their links are included only where the README or source index supports them.
Main entry points: App.tsx Dashboard · ml_routes.py ML Routes · ThreeCanvas.tsx 3D Canvas · server.py FastAPI Server
Components 25
Field Visualization
- Dashboard
frontend/src/App.tsx - Cell Inspector
frontend/src/components/CellInspector.tsx - 3D Canvas
frontend/src/components/ThreeCanvas.tsx - Terrain Scene
frontend/src/three/TerrainScene.ts - Crop Renderer
frontend/src/three/CropRenderer.ts - Stress Layer
frontend/src/three/StressRiskLayer.ts - Layer Controls
frontend/src/components/LayerToggle.tsx
Crop Diagnostics
- Crop Analysis
frontend/src/components/CropAnalysisPanel.tsx - Soil Report
frontend/src/components/SoilReportPanel.tsx - Stress Analysis
frontend/src/components/StressAnalysisPanel.tsx - ML API Client
frontend/src/services/mlApi.ts - Image ML Service
backend/services/ml_service.py - Model Inference
ml/inference.py - Soil Parser
backend/services/soil_parser.py
Application API
- FastAPI Server
backend/server.py - ML Routes
backend/routes/ml_routes.py - Assistant Routes
backend/routes/assistant_routes.py
AI Advisory
- Assistant Panel
frontend/src/components/AgriculturalAssistant.tsx - Assistant API Client
frontend/src/services/assistantApi.ts - Context Analysis
backend/services/multimodal_engine.py - Groq Assistant
backend/services/groq_service.py
Geospatial Data
- Satellite GIS Pipeline
scripts - Grid / Terrain Data
backend/server.py - Sentinel-2 / DEM
Other components
- Farmer / Agronomist
Connections 28
- Farmer / Agronomist → Dashboard: uses
- Dashboard → Cell Inspector: renders
frontend/src/App.tsx - Dashboard → 3D Canvas: renders
frontend/src/App.tsx - Dashboard → Layer Controls: renders
frontend/src/App.tsx - Dashboard → Crop Analysis: presents
frontend/src/App.tsx - Dashboard → Soil Report: presents
frontend/src/App.tsx - Dashboard → Stress Analysis: presents
frontend/src/App.tsx - 3D Canvas → Terrain Scene: creates
frontend/src/components/ThreeCanvas.tsx - 3D Canvas → Crop Renderer: generates
frontend/src/components/ThreeCanvas.tsx - 3D Canvas → Stress Layer: applies
frontend/src/components/ThreeCanvas.tsx - Dashboard → FastAPI Server: fetches grid/terrain
frontend/src/App.tsx - Crop Analysis → ML API Client: calls
frontend/src/components/CropAnalysisPanel.tsx - Soil Report → ML API Client: calls
frontend/src/components/SoilReportPanel.tsx - ML API Client → ML Routes: submits analysis
- Assistant Panel → Assistant API Client: calls
frontend/src/components/AgriculturalAssistant.tsx - Assistant API Client → Assistant Routes: sends chat
- FastAPI Server → ML Routes: registers routes
backend/server.py - FastAPI Server → Assistant Routes: registers routes
backend/server.py - ML Routes → Image ML Service: analyzes image
backend/routes/ml_routes.py - ML Routes → Soil Parser: parses report
backend/routes/ml_routes.py - ML Routes → Context Analysis: builds context
backend/routes/ml_routes.py - Image ML Service → Model Inference: loads / predicts
backend/services/ml_service.py - ML Routes → Grid / Terrain Data: reads grid
backend/routes/ml_routes.py - ML Routes → Assistant Routes: stores analysis
backend/routes/ml_routes.py - Assistant Routes → Groq Assistant: requests advice
backend/routes/assistant_routes.py - Satellite GIS Pipeline → Sentinel-2 / DEM: downloads imagery / elevation
- Satellite GIS Pipeline → Grid / Terrain Data: produces grid layers
- FastAPI Server → Grid / Terrain Data: serves data
backend/server.py