How rehan0018/cyclopath works
Cyclopath AI is a cyclone-impact decision-support command center: authorities inspect coastal infrastructure risk, explore scenarios and hazard maps, then use routing, alerts, multimodal inspection, reports, and AI-generated response plans to guide action. The frontend presents role-oriented views and calls a TypeScript/Express API; the backend combines seeded asset data with risk, cyclone, routing, ML, alert, report, and Gemini services. The excerpts show some service calls and route ownership, but not every UI request-to-handler mapping; those uncertain links are omitted or marked unverified.
Main entry points: App.tsx Web Application · server.ts HTTP API Server · api.ts API Client · agentService.ts Agent Orchestrator
Components 27
Command Center
- Web Application
src/App.tsx - Command Dashboard
src/components/CommandCenterDashboard.tsx - Risk Map
src/components/RiskMap.tsx - Infrastructure Catalog
src/components/InfrastructureCatalog.tsx - Asset Detail
src/components/AssetDetailModal.tsx - Localized UI
src/i18n/translations.ts
Hazard Intelligence
- Cyclone Intelligence
src/components/CycloneIntelligence.tsx - Scenario Simulator
src/components/ScenarioSimulator.tsx - Data Sources
src/components/DataSourcesView.tsx - Cyclone Service
server/services/cycloneService.ts
Risk Analysis
- Risk & XAI Engine
server/services/riskEngine.ts - Surrogate ML
server/services/mlService.ts
Response Operations
- Emergency Routing
src/components/EmergencyRouting.tsx - Safe Route Solver
server/services/routingService.ts - Response Agent Panel
src/components/AIAgentPanel.tsx - Agent Orchestrator
server/services/agentService.ts - Multimodal Inspector
src/components/MultimodalInspector.tsx - Alerts Panel
src/components/AlertsPanel.tsx - Alert Service
server/services/alertService.ts - Reports View
src/components/ReportsView.tsx - Report Service
server/services/reportService.ts
Backend Services
- API Client
src/services/api.ts - HTTP API Server
server.ts - Demo Asset Data
server/data/seedData.ts - Gemini Services
server/services/geminiService.ts
Other components
- Disaster Authority
- Google Gemini
Connections 40
- Disaster Authority → Web Application: uses
README.md - Web Application → Command Dashboard: renders
src/App.tsx - Web Application → Risk Map: renders
src/App.tsx - Web Application → Infrastructure Catalog: renders
src/App.tsx - Web Application → Cyclone Intelligence: renders
src/App.tsx - Web Application → Scenario Simulator: renders
src/App.tsx - Web Application → Emergency Routing: renders
src/App.tsx - Web Application → Response Agent Panel: renders
src/App.tsx - Web Application → Multimodal Inspector: renders
src/App.tsx - Web Application → Alerts Panel: renders
src/App.tsx - Web Application → Reports View: renders
src/App.tsx - Web Application → Data Sources: renders
src/App.tsx - Web Application → Localized UI: uses
src/App.tsx - Command Dashboard → Localized UI: localizes
src/components/CommandCenterDashboard.tsx - Cyclone Intelligence → Localized UI: localizes
src/components/CycloneIntelligence.tsx - Scenario Simulator → API Client: requests simulations
src/components/ScenarioSimulator.tsx - Emergency Routing → API Client: requests routes
src/components/EmergencyRouting.tsx - Response Agent Panel → API Client: submits queries
src/components/AIAgentPanel.tsx - Multimodal Inspector → API Client: requests analysis
src/components/MultimodalInspector.tsx - Alerts Panel → API Client: loads alerts
src/components/AlertsPanel.tsx - Reports View → API Client: requests reports
src/components/ReportsView.tsx - Data Sources → API Client: loads sources
src/components/DataSourcesView.tsx - API Client → HTTP API Server: sends HTTP requests
- HTTP API Server → Demo Asset Data: loads demo data
server.ts - HTTP API Server → Cyclone Service: uses
server.ts - HTTP API Server → Risk & XAI Engine: uses
server.ts - HTTP API Server → Surrogate ML: uses
server.ts - HTTP API Server → Safe Route Solver: uses
server.ts - HTTP API Server → Alert Service: uses
server.ts - HTTP API Server → Report Service: uses
server.ts - Agent Orchestrator → Cyclone Service: queries
server/services/agentService.ts - Agent Orchestrator → Safe Route Solver: queries
server/services/agentService.ts - Agent Orchestrator → Gemini Services: requests synthesis
server/services/agentService.ts - Agent Orchestrator → Demo Asset Data: reads assets
server/services/agentService.ts - Agent Orchestrator → Risk & XAI Engine: assesses risk
server/services/agentService.ts - Gemini Services → Google Gemini: calls model
server/services/geminiService.ts - Emergency Routing → Safe Route Solver: calculates route
- Multimodal Inspector → Gemini Services: requests image screening
- Alerts Panel → Alert Service: loads alert feed
- Reports View → Report Service: requests report