How rohith05012005/optiload works
OptiLoad 3D is a multi-modal logistics operations platform. Its principal workflow is to create and manage shipments, optimize cargo loading and routes, then monitor fleet activity and shipment risk. The README also describes air/sea optimizers, vision-based dimension scanning, forecasting, anomaly detection, a logistics copilot, and live telemetry. Edges below follow explicit imports/calls or README statements; some frontend integrations and unsampled features are shown only as documented capabilities.
Main entry points: main.py FastAPI gateway · App.tsx Web app · database.py SQL database · ai_chat_router.py Logistics copilot
Components 26
Operations UI
- Web app
App.tsx - Shipment booking
pages/BookService.tsx - Operations dashboards
pages/AdminDashboard.tsx - Driver console
pages/DriverDashboard.tsx - Cargo optimizers
pages/Optimizer.tsx - Air and sea tools
pages/AirOptimizer.tsx - Dimension scanner
components/CameraDimensionScanner.tsx - Authentication state
contexts/AuthContext.tsx
API and Data
- Operational data service
services/firestoreService.ts - Firebase
services/firebase.ts - FastAPI gateway
backend/main.py - Auth endpoints
backend/routers/auth_router.py - Fleet and shipment endpoints
backend/routers/shipments_router.py - SQL database
backend/database.py - Domain records
backend/models.py
AI Services
- Delay prediction
ml/models/delay_model.py - Anomaly detection
ml/models/anomaly_detector.py - Demand forecasting
ml/models/demand_lstm.py - Cargo vision model
ml/models/cargo_vision.py - Logistics copilot
backend/routers/ai_chat_router.py - AI route and packing
backend/routers/ai_optimization_router.py
Optimization and Tracking
- 3D packing engine
services/packer.ts - Route planning
services/routing.ts - Live telemetry
backend/routers/telemetry_router.py - Presentation remote
presentation_remote/server.py
Other components
- Logistics user
Connections 34
- Logistics user → Web app: uses
- Web app → Shipment booking: opens
App.tsx - Web app → Operations dashboards: routes to
App.tsx - Web app → Driver console: routes to
App.tsx - Web app → Cargo optimizers: routes to
App.tsx - Web app → Air and sea tools: routes to
App.tsx - Shipment booking → Operational data service: stores bookings
pages/BookService.tsx - Operations dashboards → Operational data service: reads and updates
pages/AdminDashboard.tsx - Driver console → Operational data service: reads and updates
pages/DriverDashboard.tsx - Operational data service → Firebase: uses
services/firestoreService.ts - Cargo optimizers → 3D packing engine: calls
pages/Optimizer.tsx - Air and sea tools → 3D packing engine: calls
pages/AirOptimizer.tsx - Logistics user → Dimension scanner: scans cargo
- Dimension scanner → Cargo vision model: requests dimensions
- Logistics user → FastAPI gateway: uses API
- FastAPI gateway → Auth endpoints: registers
backend/main.py - FastAPI gateway → Fleet and shipment endpoints: registers
backend/main.py - FastAPI gateway → SQL database: creates tables
backend/main.py - Auth endpoints → SQL database: queries users
backend/routers/auth_router.py - Fleet and shipment endpoints → SQL database: queries records
backend/routers/shipments_router.py - Domain records → SQL database: defines tables
backend/models.py - FastAPI gateway → AI route and packing: registers
backend/main.py - FastAPI gateway → Logistics copilot: registers
backend/main.py - Logistics copilot → SQL database: reads operations data
backend/routers/ai_chat_router.py - Logistics copilot → Delay prediction: invokes prediction
backend/routers/ai_chat_router.py - Logistics copilot → Demand forecasting: invokes forecast
backend/routers/ai_chat_router.py - AI route and packing → Route planning: dispatches routing
backend/routers/ai_optimization_router.py - AI route and packing → 3D packing engine: dispatches packing
backend/routers/ai_optimization_router.py - FastAPI gateway → Live telemetry: registers
backend/main.py - Driver console → Live telemetry: sends GPS updates
- Operations dashboards → Live telemetry: subscribes updates
- Logistics user → Presentation remote: controls presentation
- Logistics user → Route planning: plans routes
- Logistics user → Anomaly detection: monitors risk