Predict. Route. Deliver. Before It's Too Late.
Built for Google Solution Challenge 2026 | SDG 9 Β· SDG 11 Β· SDG 13
Every year, natural disasters affect 200+ million people globally. The biggest killer isn't always the disaster itself β it's the failure to deliver aid in time. Supply chains break down, routes get blocked, and critical medical/food supplies sit stranded while people die.
NEXUS solves this with AI-powered logistics intelligence that predicts disruptions before they happen and automatically reroutes supplies in real-time.
NEXUS is an AI-powered supply chain intelligence platform that helps governments, NGOs, hospitals, and suppliers deliver essential resources β food, medicine, water, and emergency kits β quickly during disasters such as floods, earthquakes, or pandemics.
| Resource | Link |
|---|---|
| π΄ Live App | https://nexus-yjtf.vercel.app/ |
| πΉ Demo Video | https://youtu.be/5qn0VUIPjSo |
| π Project Deck | https://docs.google.com/presentation/d/1w5S0GjdkRTLwUePFrCz1plw_AQRD0Sd8/edit?slide=id.p1#slide=id.p1 |
| π» GitHub | https://github.com/raziabegum705/nexus |
| Feature | Description |
|---|---|
| πΊοΈ Live Route Map | Real-time shipment tracking across India using Leaflet maps with risk heatmaps |
| π€ AI Rerouting | Gemini AI suggests 3 alternate routes instantly when a shipment is at risk |
| β‘ 48hr Disruption Forecast | Predicts supply chain failures before they happen |
| π Cascade Failure Simulator | Unique feature β simulate how one delay ripples through the entire supply chain |
| π‘ Live Disruption Feed | Real-time alerts for weather, traffic, and operational disruptions via Socket.IO |
| π Mission Control Dashboard | Live KPIs: total shipments, delays, risk scores, active disruptions |
| π₯ Firebase Realtime DB | All data persists and syncs live across all connected users |
| Layer | Technology |
|---|---|
| Frontend | React 18, Vite, React Router |
| Maps | Leaflet.js + React-Leaflet |
| Backend | Node.js, Express, Socket.IO |
| Database | Firebase Realtime Database (Google) |
| AI | Gemini 1.5 Flash (Google) |
| Styling | Custom CSS |
| Deployment | Vercel (frontend) + Render (backend) |
| SDGs | 9 (Industry & Infrastructure), 11 (Sustainable Cities), 13 (Climate Action) |
| Page | URL | Description |
|---|---|---|
| Landing | / |
Hero page with live stats |
| Dashboard | /dashboard |
Mission Control β live map + KPIs |
| Shipments | /shipments |
AI reroute panel + shipment tracking |
| Disruptions | /disruptions |
Live disruption intelligence feed |
| Cascade Sim | /simulate |
π₯ Cascade failure simulator |
- Node.js 18+
- Git installed
- Firebase project (free at console.firebase.google.com)
- Gemini API key (free at aistudio.google.com)
# Clone the repo
git clone https://github.com/raziabegum705/nexus.git
cd nexuscd server
npm install
# Copy env file and fill in your keys
cp .env.example .env
# Seed Firebase with initial data (run once)
npm run seed
# Start server
npm run devcd client
npm install
# Copy env file and fill in your Firebase values
# Mac / Linux
cp .env.example .env
# Windows
copy .env.example .env
# Start client
npm run devCreate server/.env and add:
GEMINI_API_KEY=your_key_here
Without it, AI rerouting still works with smart mock data β
- Go to console.firebase.google.com
- Create a project named nexus
- Realtime Database β Create database β Start in test mode (development only)
- Project Settings β Service Accounts β Generate new private key β save as
server/serviceAccountKey.json
- Project Settings β Your Apps β Add Web App β copy the config into
client/.env - Run
cd server && npm run seedto populate the database
- Push to GitHub
- vercel.com β New Project β Import repo
- Root Directory:
client| Framework: Vite - Add all
VITE_*env vars fromclient/.env - Deploy β copy your live URL
- render.com β New β Web Service
- Connect your GitHub repo
- Root Directory:
server| Runtime: Node | Build Command:npm install| Start Command:npm start - Add environment variables:
GEMINI_API_KEY,FIREBASE_DB_URL,FIREBASE_SERVICE_ACCOUNT(paste the JSON as a single-line string) - Deploy β copy your Render service URL β update
VITE_BACKEND_URLin Vercel
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β USER / BROWSER β
β React 18 + Vite | Leaflet Maps | Custom CSS β
β β
β / /dashboard /shipments /disruptions /simulate β
β Landing Mission Ctrl AI Reroute Live Feed Cascade Sim β
ββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββ
β HTTP REST + WebSocket (Socket.IO)
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β BACKEND (Render) β
β Node.js + Express Server β
β β
β ββββββββββββββββ βββββββββββββββββββ ββββββββββββββββββββββββββ β
β β REST API β β Socket.IO Hub β β Seed / Data Layer β β
β β /api/route β β Live shipment β β npm run seed β β β
β β /api/ships β β updates every β β populates Firebase β β
β β /api/disruptβ β 4 seconds β β with initial data β β
β ββββββββ¬ββββββββ ββββββββββ¬βββββββββ ββββββββββββββββββββββββββ β
β β β β
β ββββββββββββ¬βββββββββ β
β β β
β ββββββββββββΌβββββββββββ β
β β Gemini 1.5 Flash β β AI Rerouting Engine β
β β Google AI API β 3 alternate routes on demand β
β βββββββββββββββββββββββ β
ββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββ
β Firebase Admin SDK
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β FIREBASE REALTIME DATABASE (Google) β
β β
β shipments/ disruptions/ routes/ kpis/ β
β (live status) (active alerts) (map data) (dashboard stats) β
β β
β Syncs live across all connected clients in real-time β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
User flags at-risk shipment
β
βΌ
React client ββPOST /api/rerouteβββΆ Express server
β
βΌ
Gemini 1.5 Flash
(prompt: shipment
context + risk data)
β
βΌ
3 alternate routes
with risk scores
β
ββββββββββββββββββββββ
Response rendered on
Leaflet map in real-time
Select a node to fail β Mark upstream shipments at-risk
β
βΌ
Ripple effect calculated across dependency graph
β
βΌ
Affected shipments highlighted on map + dashboard KPIs update
β
βΌ
AI suggests recovery routes for all impacted nodes
nexus/
βββ client/ # React 18 + Vite frontend
β βββ src/
β β βββ pages/ # Landing, Dashboard, Shipments,
β β β # Disruptions, Simulate
β β βββ components/ # Map, KPI cards, Disruption feed
β β βββ App.jsx # React Router setup
β βββ .env.example # Firebase config template
β
βββ server/ # Node.js + Express backend
β βββ index.js # Express + Socket.IO entry point
β βββ routes/ # /api/reroute, /api/shipments, etc.
β βββ seed.js # Firebase data seeder
β βββ serviceAccountKey.json # Firebase Admin credentials (gitignored)
β βββ .env.example # GEMINI_API_KEY, FIREBASE_DB_URL
β
βββ screenshots/ # App screenshots for README
βββ .gitignore
βββ README.md
| SDG | Goal | How NEXUS Contributes |
|---|---|---|
| SDG 9 | Industry, Innovation & Infrastructure | Resilient supply chain infrastructure through intelligent routing |
| SDG 11 | Sustainable Cities & Communities | Faster aid delivery builds disaster-resilient communities |
| SDG 13 | Climate Action | Weather-aware logistics adapts to climate-driven disruptions |
| Name | Role |
|---|---|
| Nivedh Ireni | Project Lead, Team Coordination & Strategy |
| Ananya Darna | Backend Feature Development, Product Planning & Documentation |
| Razia Begum | Full Stack Development / Core Implementation |
| Bobbala Gopinadh Yadav | Testing, Research & Quality Assurance |




