Part of PRITHVI-AI Β· talks to the FastAPI backend.
Note
The operations console for PRITHVI-AI: an interactive, map-driven dashboard where epidemiologists and hospital teams explore heat, disease, surge, and air-quality forecasts, browse the evidence knowledge graph, plan scenarios, and monitor model performance, fairness, and alerts β with light/dark themes and i18n.
- Features Β· Pages Β· Tech stack
- Quick start Β· Configuration Β· Project structure
- πΊοΈ Interactive maps β region risk layers rendered with MapLibre GL + vector tiles
- π Forecast dashboards β risk scores with p05/p95 uncertainty bands and SHAP drivers
- πΈοΈ Knowledge-graph explorer β Cytoscape graph of climate/disease/evidence entities
- π§ͺ Scenario planner & π― resource view backed by the optimizer
- π Model & fairness monitoring β registry, skill-over-time, drift, per-region gaps
- π Alerts management with rules and severities
- π Dark / light theme, π i18n (i18next), β‘ animated UI (Framer Motion)
- π Cookie + CSRF auth flow with role-based route protection
| Route | Page | Route | Page |
|---|---|---|---|
/console/overview |
π Overview | /console/scenario |
π§ͺ Scenario Planner |
/console/heat |
π‘οΈ Heat Risk | /console/kg |
πΈοΈ Knowledge Graph |
/console/disease |
π¦ Disease Risk | /console/evidence |
π Evidence |
/console/hospital |
π₯ Hospital Surge | /console/catalog |
ποΈ Data Catalog |
/console/air |
π«οΈ Air Quality | /console/fairness |
βοΈ Fairness & QA |
/console/models |
π€ Models | /console/alerts |
π Alerts |
React 18 Β· Vite 5 Β· TypeScript 5 Β· Tailwind CSS Β· shadcn/ui (Radix) Β·
TanStack Query Β· React Router Β· MapLibre GL Β· Cytoscape Β· Recharts Β·
react-hook-form + zod Β· i18next Β· Framer Motion
Important
Start the backend first (port 8000).
npm install
npm run dev # β http://localhost:5173Other scripts:
npm run build # production build
npm run preview # preview the production build
npm run lint # lintDemo login: admin@example.com / Admin123!
Create .env.development.local (git-ignored) to point at your backend:
VITE_API_BASE_URL=http://localhost:8000
VITE_API_PREFIX=/api/v1API requests are sent with credentials: 'include'; write requests send an X-CSRF-Token
header read from the csrf_token cookie.
src/
βββ pages/
β βββ console/ Overview, HeatRisk, DiseaseRisk, HospitalSurge, AirQuality,
β β Scenario, KnowledgeGraph, Evidence, Catalog, Fairness, Models, Alerts
β βββ auth/ Login, Signup
βββ components/
β βββ console/ Sidebar, Topbar, RegionPicker, DateLeadPicker
β βββ ui/ shadcn/ui primitives
βββ hooks/ use-api, use-toast, use-mobile
βββ lib/ api-client, rbac, i18n, utils
βββ store/ app store (theme, session)
MIT.