How pariwankhede26/vayu works
VAYU is a prototype that turns citizen-submitted images and optional location into environmental decision-support information. The main flow is Report UI → Express API → Gemini image analysis (or labeled fallback) → risk scoring, with optional weather context and spread prediction; separate map and dashboard views present simulated hotspot data. Production uses AI-BACKEND/server.js as the API and serves the frontend. The README documents these API workflows; unsampled route details are represented only where that documentation supports them. No database or official environmental-data integration is present.
Main entry points: server.js Express API · Report.jsx Report submission · App.jsx React routes · MapView.jsx Hotspot map
Components 13
Frontend experience
- React routes
FRONTEND/src/App.jsx - Landing page
FRONTEND/src/pages/Landing.jsx - Report submission
FRONTEND/src/pages/Report.jsx - Hotspot map
FRONTEND/src/pages/MapView.jsx - Command dashboard
FRONTEND/src/pages/Dashboard.jsx
Production API
- Express API
AI-BACKEND/server.js - Prototype weather
AI-BACKEND/server.js - Wind spread prediction
AI-BACKEND/server.js
Environmental intelligence
- VAYU risk engine
INTELLIGENCE-BACKEND/helpers/riskEngine.js - Prototype hotspot records
INTELLIGENCE-BACKEND/data/pollution_events.json - Country categories
INTELLIGENCE-BACKEND/config/countryConfig.js
Other components
- Citizen
- Gemini Vision
Connections 23
- Citizen → Report submission: submits evidence
README.md - React routes → Landing page: routes to
FRONTEND/src/App.jsx - React routes → Report submission: routes to
FRONTEND/src/App.jsx - React routes → Hotspot map: routes to
FRONTEND/src/App.jsx - React routes → Command dashboard: routes to
FRONTEND/src/App.jsx - Report submission → Express API: posts analysis
README.md - Express API → Gemini Vision: analyzes image
AI-BACKEND/server.js - Express API → VAYU risk engine: calculates risk
AI-BACKEND/server.js - Report submission → Express API: requests risk score
README.md - Report submission → Express API: requests prediction
README.md - Report submission → Express API: requests weather
README.md - Hotspot map → Express API: loads hotspots
README.md - Hotspot map → Express API: loads weather
README.md - Hotspot map → Express API: requests prediction
README.md - Command dashboard → Express API: loads hotspots
README.md - Command dashboard → Express API: loads weather
README.md - Landing page → Express API: loads hotspots
FRONTEND/src/pages/Landing.jsx - Landing page → Express API: loads country settings
README.md - Express API → Prototype hotspot records: reads records
AI-BACKEND/server.js - Express API → Prototype weather: serves context
README.md - Express API → Wind spread prediction: estimates spread
README.md - Express API → Country categories: serves categories
AI-BACKEND/server.js - Express API → VAYU risk engine: scores hotspots
AI-BACKEND/server.js