How pratiktekale2005-max/manga-ai works
MOIL’s platform turns mine datasets into exploration, resource, risk, and production-planning decision support. The documented five-view journey runs from an executive dashboard through AI analysis and block inspection to consolidated risk review and reports; the broader product also covers satellite indices, geology, equipment, forecasting, optimization, scenarios, and recommendations. The map shows the central state service as the backend inference hub. Some domain pages and API routers were not excerpted, so their internal call paths are not asserted.
Main entry points: state_service.py Mine State Service · App.jsx Workflow Shell · api Domain API Routers · api.js API Client
Components 29
Mine Intelligence UI
- Workflow Shell
frontend/src/App.jsx - Mine Context
frontend/src/context/MineContext.jsx - API Client
frontend/src/services/api.js - Executive Dashboard
frontend/src/pages/Dashboard.jsx - AI Analysis Workflow
frontend/src/pages/AIAnalysisWorkflow.jsx - Block Model Explorer
frontend/src/pages/BlockModelExplorer.jsx - Risk Review
frontend/src/pages/RiskAnalysisConsolidated.jsx - Reports View
frontend/src/pages/Reports.jsx - Domain Analysis Views
frontend/src/pages
API and Mine State
- FastAPI Entrypoint
backend/app/main.py - Domain API Routers
backend/app/api - Mine State Service
backend/app/services/state_service.py - SQLite Database
backend/app/core/database.py - Application Settings
backend/app/core/config.py
Mining Data Preparation
- Mine Dataset Generator
ml/data/generate_demo_data.py - Data Quality Cleaning
ml/preprocessing/data_cleaner.py - Spectral Indices
ml/satellite/spectral_indices.py
Decision Engines
- Grade Prediction
ml/models/grade_predictor.py - Spatial Estimation
ml/models/spatial_interpolator.py - Block Reserves
ml/models/block_modeler.py - Exploration Priority
ml/models/exploration_prioritizer.py
Planning and Reporting
- Production Forecast
ml/models/production_forecaster.py - Equipment Intelligence
ml/models/equipment_analyzer.py - Anomaly Detection
ml/models/anomaly_detector.py - Composite Risk
ml/models/risk_engine.py - Extraction Optimizer
ml/models/production_optimizer.py - Scenario Simulator
ml/models/scenario_simulator.py - Recommendations
ml/models/recommendations_engine.py
Other components
- Mine Engineer
Connections 36
- Mine Engineer → Workflow Shell: uses
README.md - Workflow Shell → Executive Dashboard: renders
frontend/src/App.jsx - Workflow Shell → AI Analysis Workflow: renders
frontend/src/App.jsx - Workflow Shell → Block Model Explorer: renders
frontend/src/App.jsx - Workflow Shell → Risk Review: renders
frontend/src/App.jsx - Workflow Shell → Reports View: renders
frontend/src/App.jsx - Workflow Shell → Mine Context: provides mine state
frontend/src/App.jsx - Mine Context → API Client: requests mine data
frontend/src/context/MineContext.jsx - Executive Dashboard → API Client: requests dashboard data
frontend/src/pages/Dashboard.jsx - AI Analysis Workflow → API Client: requests analysis
frontend/src/pages/AIAnalysisWorkflow.jsx - Block Model Explorer → API Client: requests blocks
frontend/src/pages/BlockModelExplorer.jsx - Reports View → API Client: requests reports
frontend/src/pages/Reports.jsx - API Client → Domain API Routers: calls HTTP endpoints
frontend/src/services/api.js - FastAPI Entrypoint → Domain API Routers: registers routers
backend/app/main.py - FastAPI Entrypoint → Mine State Service: initializes service
backend/app/main.py - FastAPI Entrypoint → SQLite Database: initializes database
backend/app/main.py - FastAPI Entrypoint → Application Settings: reads settings
backend/app/main.py - Domain API Routers → Mine State Service: serves mine operations
backend/app/api/data.py - Domain API Routers → Mine State Service: serves grade prediction
backend/app/api/grade_prediction.py - Domain API Routers → Mine State Service: builds report data
backend/app/api/reports.py - Mine State Service → Mine Dataset Generator: loads mine datasets
backend/app/services/state_service.py - Mine State Service → Data Quality Cleaning: cleans datasets
backend/app/services/state_service.py - Mine State Service → Spectral Indices: computes indices
backend/app/services/state_service.py - Mine State Service → Grade Prediction: runs inference
backend/app/services/state_service.py - Mine State Service → Spatial Estimation: runs estimation
backend/app/services/state_service.py - Mine State Service → Block Reserves: runs reserve model
backend/app/services/state_service.py - Mine State Service → Exploration Priority: ranks targets
backend/app/services/state_service.py - Mine State Service → Production Forecast: runs forecasts
backend/app/services/state_service.py - Mine State Service → Equipment Intelligence: assesses fleet
backend/app/services/state_service.py - Mine State Service → Anomaly Detection: detects anomalies
backend/app/services/state_service.py - Mine State Service → Composite Risk: computes risk
backend/app/services/state_service.py - Mine State Service → Extraction Optimizer: plans extraction
backend/app/services/state_service.py - Mine State Service → Scenario Simulator: simulates scenarios
backend/app/services/state_service.py - Mine State Service → Recommendations: generates advice
backend/app/services/state_service.py - Domain API Routers → Domain Analysis Views: supports domain analysis
- Mine State Service → SQLite Database: persists selected state