HydroSentry: Decentralized, offline-first Green GIS early warning system for the Lake Chad Basin. Engineered with TinyML, LoRaWAN, and React.
# 🌊 HydroSentry (The Sahel Resilience Stack)
> **Decentralized, offline-first early warning system & geospatial command center for the Lake Chad Basin.**
**🔴 Access the Live Command Center Demo Here** *(Note for Reviewers: The live deployment currently utilizes simulated telemetry data for the Phase 1 Pilot to demonstrate the UI/UX without exposing active community hardware locations).*
HydroSentry is the core geospatial module of **The Sahel Resilience Stack**, an open-source intelligence blueprint engineered for extreme resource-constrained environments. It provides high-availability flood and conflict resource mapping that remains resilient even during severe telecommunication blackouts.
## 📖 The Manifesto: Why This Exists
In conflict-affected and climate-vulnerable regions, standard cloud-native architectures fail. When the power grid collapses and the internet drops, centralized applications become unusable. Furthermore, standard off-the-shelf hardware cannot survive 45°C (113°F) ambient heat. We do not rely on constant connectivity. We build for the edge.
## 🏗️ Architecture & Current Status
*This repository contains the `Command Center Interface` and `Cloud Sync Logic`. (Note: Edge node C++ firmware and TinyML models are maintained in our separate hardware repositories).*
- **The Sync Architecture:** We utilize Supabase (PostgreSQL) for centralized state logic and cross-regional sync. However, during telecom blackouts, the React/Vite Command Center relies on local browser storage (IndexedDB) and local LoRaWAN gateway caches to maintain operational visibility until connectivity is restored.
- **Hardware Hardening:** Standard Li-Po batteries expand and degrade in extreme Sahel heat. HydroSentry open-source hardware specs mandate the use of **LiFePO4** cells housed in vented **Stevenson screen enclosures**.
- **Redundant Alerting:** When internet connectivity is live, we utilize **Termii API edge functions** to bypass regional DND blocks. During total i …