Born from Personal Need
When the floods came, we needed better information. So I built BAHABA.
Developed during Typhoon Kristine 2024 • Enhanced and made public during Typhoons Dante and Emong 2025
The Story Behind BAHABA
During Typhoon Kristine in 2024, I found myself in a frustrating situation that many Filipinos know too well. I needed to go out for essential supplies, but had no reliable way to check which areas were flooded.
I was jumping between news websites, social media posts, and messaging friends just to figure out:
“Baha ba?” (Is it flooded?) along my route. There had to be a better way.
That’s when I started building BAHABA in 2024 - initially as a personal tool for my own needs. The platform remained private until the devastating floods during Typhoons Dante and Emong in July 2025, when I realized it could help thousands of other Filipinos facing the same challenges. That’s when BAHABA was launched to the public.
About the Creator

Hi, I’m Nio Martinez, a software engineer based in Sto. Tomas, Batangas, and sometimes being stationed in Metro Manila. I hold a Bachelor’s Degree in Information Technology and have a passion for building solutions that make a real difference in people’s lives.
BAHABA is a solo project that I’ve personally funded and developed, using modern technologies like Next.js, Firebase, and FastAPI. I even used Claude Code to speed up the development process during those critical early days when people needed this tool most.
Challenges & Breakthrough Solutions
The Crowdsourcing Dilemma
The biggest challenge with any crowdsourced flood platform is the cold start problem: “If no one reports, no one sees data. If no one sees data, no one reports.” This creates a vicious cycle where the platform appears empty and useless during the exact moments people need it most.
Traditional approach: Hope people will manually report floods and pray for critical mass.
🤖 Enter the BAHABA AI Agent
To solve this, I created an autonomous AI-powered news agent that works 24/7 to ensure BAHABA never appears “empty” during flood events:
🔍 Web Intelligence
- • Monitors 6+ major news sources continuously
- • Scans social media (Facebook, Twitter) of official agencies
- • Tracks PAGASA, NDRRMC, MMDA flood announcements
- • Runs every 30 minutes via Google Cloud Scheduler
🧠 AI Processing
- • Google Gemini 2.5 Flash processes flood content
- • Extracts location, severity, time, passability
- • Converts text to precise map coordinates
- • Creates structured flood reports automatically
Result: Even if zero humans report floods, BAHABA still shows real-time flood information from official sources and news agencies. The platform never appears “dead” during emergencies.
🔄 Hybrid Intelligence System
BAHABA combines the best of both worlds:
Community Reports
Real people sharing real-time conditions from their exact locations
AI Agent
Autonomous monitoring ensuring baseline flood data is always available
Weather APIs
Multiple weather sources providing context and validation
The BAHABA Philosophy
“If you don’t see any reports on BAHABA, it means exactly what it means - there are no significant floods happening right now. Not that the platform is broken or empty.”
This gives users confidence in the absence of data as much as in its presence.
Technical Excellence
BAHABA was built with urgency in mind - people needed it fast. The tech stack was chosen for rapid development and reliability:
Frontend & Real-time
- Next.js 14 - Blazing-fast performance and SEO
- Firebase Client SDK - Real-time Firestore listeners
- Google Maps API - Interactive flood visualization
- Vercel - Serverless frontend hosting
Backend & AI Processing
- FastAPI - Python backend on Google Cloud Run
- Firebase Admin SDK - Server-side database operations
- Gemini 2.5 Flash - AI news scraping & processing
- Multiple Weather APIs - Google Weather + Open-Meteo
The biggest challenges were establishing reliable data sources and encouraging community participation. Every feature - from AI news scraping to weather integration to the confirmation system - was built to solve real problems faced during floods.
The Future of BAHABA
Becoming a Data Hub
BAHABA aims to become the primary real-time flood data provider in the Philippines. We envision opening APIs for services like Google Maps and Waze to consume our data, while also accepting flood reports from their users.
Sustainability Challenge
What started as a personal project during triple typhoons (especially Dante and Emong in July 2025) now serves thousands of Filipinos. I’m currently exploring how to make this sustainable long-term - whether through community donations, minimal non-intrusive advertising, or potentially open-sourcing parts of the platform while keeping it free for users.
Technical Innovation
The platform combines real-time community reporting with AI-powered news aggregation and multi-source weather data. Backend runs on Google Cloud Run for scalability, while the frontend uses direct Firestore connections for instant updates. All processing happens server-side to keep the user experience fast and reliable even on slow mobile connections.
Community First, Always
BAHABA is committed to being free, with no signups, and no unnecessary data collection. Currently ad-free and accessible to all.
My priority is getting life-saving flood information into the hands of every Filipino who needs it, when they need it most - while finding sustainable ways to keep this service running.
Acknowledgments & Prior Research
While BAHABA was developed independently based on personal need during Typhoon Kristine 2024, I want to acknowledge existing flood monitoring research and systems in the Philippines. These projects represent important work in disaster management and flood prevention:
Academic Research
Bachelor’s thesis on flood monitoring systems
Academic research on local flood warning systems
Published research on flood monitoring technology
Operational Systems
National disaster risk assessment platform
Hardware-based flood monitoring infrastructure
Professional flood early warning solutions
Note: BAHABA was conceived and initially built before discovering these existing solutions. Each system addresses different aspects of flood management - BAHABA focuses specifically on real-time, community-powered flood reporting for immediate navigation decisions during emergencies.
Want to Help?
While BAHABA is free to use, maintaining and improving it requires resources. If you find value in what we’re building, consider supporting the project.