How anzar-hue/sail-sih works
SAIL is a procurement and logistics decision dashboard that combines cargo-price estimates with port weather and demurrage risk. The main user flow is selecting cargo and port in the React terminal, requesting a simulation from Flask, and viewing updated risk, price, chart, and briefing data. The econometric engine separately trains and exports diagnostics for the Flask service to use. README documentation establishes the API and model-to-payload architecture; source excerpts show simulation internals. The V3 advisor is a separate CLI path, not part of the dashboard flow.
Main entry points: app.py Flask API · ui.jsx React Terminal · sail_v2_summary.json Summary Payload · sail_v2_engine.py SAIL Price Engine
Components 15
Econometric Modeling
- SAIL Price Engine
sail_v2_engine.py - Historical Datasets
data
Risk and Briefing
- Flask API
app.py - Weather Risk
app.py - Trajectory Renderer
app.py - AI Briefing
app.py - V3 Advisor CLI
sail_v3_orchester.py
Decision Dashboard
- React Terminal
frontend/src/ui.jsx - App Shell
frontend/src/App.jsx - React Entry
frontend/src/main.jsx
Shared State
- Weather Observations
sail_database.db - Summary Payload
sail_v2_summary.json
Other components
- Procurement User
- Open-Meteo
- Google Gemini
Connections 15
- Procurement User → React Terminal: selects cargo and port
frontend/src/ui.jsx - React Entry → App Shell: renders
frontend/src/main.jsx - App Shell → React Terminal: renders
frontend/src/App.jsx - React Terminal → Flask API: requests simulation
readme.md - Flask API → Weather Risk: calculates risk
app.py - Weather Risk → Open-Meteo: fetches forecast
app.py - Weather Risk → Weather Observations: reads fallback
app.py - Flask API → Summary Payload: reads and updates
app.py - Flask API → Trajectory Renderer: renders chart
app.py - Flask API → AI Briefing: requests memo
app.py - AI Briefing → Google Gemini: generates briefing
- SAIL Price Engine → Historical Datasets: loads datasets
readme.md - SAIL Price Engine → Summary Payload: exports diagnostics
readme.md - V3 Advisor CLI → Summary Payload: loads diagnostics
sail_v3_orchester.py - V3 Advisor CLI → Weather Risk: duplicates risk logic