FloodGuard AI.
Exploring flood response through maps and data.
FloodGuard AI is a civic flood-management prototype with interfaces for citizens and a command center. The application brings together map-based risk zones, incident reports, shelter information, and alerts so different parts of a response workflow can be explored in a shared interface. Flood-simulation components support scenario exploration.
React and TypeScript power the web interface, and FastAPI provides Python APIs for GIS, risk, and shelter modules. PostGIS supports geospatial data, Redis is included in the service stack, and Docker supports the multi-service setup. The project demonstrates mapping and response workflows; its risk output should not be presented as a validated emergency-warning service.
Why this build exists.
Flood information is difficult to interpret when maps, reports, shelters, and alerts are disconnected. FloodGuard explores a common civic interface for citizen reports and command-center workflows, with geospatial data behind it.
My role & attribution
The repository implementation was reviewed, but a module-by-module personal ownership record was not available. The implementation details below describe the project; they do not imply sole authorship of every component.
What went
into it.
Project work & contribution
- The source contains citizen and command-center interfaces, GIS and risk APIs, shelter modules, and flood-simulation components.
Technology stack
- Frontend
- React and TypeScript
- Backend
- Python and FastAPI
- Geospatial data
- PostGIS
- Service stack
- Redis and Docker
- Delivery
- Vercel web deployment
Follow the architecture.
Select a component. Use arrow keys to move.
Web / React + TypeScript
Citizen and command-center interfaces; the configured web service depends on the API.
API / FastAPI
Versioned API routes, CORS, request IDs, and error handling. Current readiness responses are fixed values.
Spatial data / PostGIS
Geospatial relational storage with a named volume and pg_isready check.
Service dependency / Redis
A configured Redis service with a named volume and ping health check; operational use was not exercised here.
Read all 3 connections
- Web → APIConfigured web dependency
- API → Spatial dataWaits for database health
- API → Service dependencyWaits for Redis health
Configured service dependencies from docker-compose.yml, reviewed 21 Oct 2026. This diagram does not establish successful runtime traffic or operational warning capability.
Inside the implementation.
- 01
React and TypeScript provide map and operational views. The existing repository review identifies citizen reports, risk zones, shelters, alerts, and scenario components.
- 02
A FastAPI application mounts a versioned API router, CORS handling, response compression, request identifiers, and a shared error handler.
- 03
Compose defines web, API, PostGIS, and Redis services. The API waits on database and Redis health checks; the stateful services use named volumes.
Challenges & tradeoffs
- The root documentation includes older planning material. The portfolio distinguishes the current application source from those earlier plans.
- The current /ready handler returns fixed true values for database and Redis. It must be replaced with real dependency probes before it can be trusted as readiness evidence.
- Risk-zone and simulation interfaces require independent validation before use in an actual emergency.
What was checked.
Reviewed the API entry point, dependency manifest, and Compose file on 21 Oct 2026. PostGIS uses pg_isready and Redis uses redis-cli ping in Compose. The manifest includes pytest tooling, but the backend tests, database operations, and emergency scenarios were not executed or validated in this review.
From code to deployment.
Compose defines web, API, PostGIS, and Redis services. Root documentation includes older HackYatra planning content; this summary follows the current application source. No emergency-use or operational deployment claim is made.
Service boundaries, data stores, configuration, and deployment workflows.
The current boundary.
A multi-service civic prototype with a retained web demo link. No validated forecast accuracy, live municipal integration, or operational emergency deployment is claimed. Runtime readiness and backend connectivity remain to be verified; the fixed readiness response is a known limitation.