Civitas: A Bluetooth Disaster Management System
Overview
Civitas is an offline-first, Bluetooth-based disaster communication system that maintains emergency connectivity when internet and cellular networks fail. It uses BLE mesh networking and Chrome built-in AI to coordinate alerts, missions, and rescue operations.
Inspiration
During disasters, networks fail first, leaving communities isolated. Civitas was born from one powerful question:
“If we lose the network, can we still save each other?”
The mission is to ensure communication even during complete infrastructure collapse through local Bluetooth connectivity and AI-assisted communication.
What it does
- Sends and receives emergency alerts via BLE mesh
- Syncs missions, safehouse info, and resource logs offline
- Translates, rewrites, and summarizes alerts using built-in AI
- Works as an offline-capable PWA across devices
- Automatically syncs to cloud when internet returns
- Provides role-based access for citizens, responders, and officials
How we built it
Frontend (PWA)
- HTML5, CSS3, JavaScript (ES6+)
- Web Bluetooth API for mesh device discovery & communication
- IndexedDB for offline data store
- Service Workers for caching and background sync
Backend (Flask)
- Flask 3.0 + SQLAlchemy ORM
- REST APIs for mission & role management
- BLE sync endpoints with encryption
- Chrome Nano AI APIs for rewriting, summarizing, translating alerts
Database & Deployment
- SQLite (local) → PostgreSQL (production)
- Dockerized stack
- Nginx + Gunicorn on Ubuntu
- Health-check endpoints
Target Latency
< 500ms BLE mesh message latency
Challenges
- Web Bluetooth limitations across platforms
- Preventing BLE mesh looping/packet storms
- Timestamp-based conflict resolution in offline sync
- AES-256 encryption within browser BLE environment
- AI fallback when Chrome offline AI unavailable
Accomplishments
- End-to-end BLE mesh communication without internet
- Fully functional offline-first PWA
- Multilingual AI emergency communication
- Scalable modular backend + container deployment
- Real-time field testing of BLE mesh behavior
What we learned
- Offline-first changes system design priorities
- Web Bluetooth is a powerful emergency technology
- AI + BLE + PWA bridges intelligence and offline reliability
- Disaster UX must prioritize human accessibility over perfection
Core Formula
AI + BLE + PWA = Resilient Crisis Connectivity
What's next
- Drone, IoT sensor, wearable integration
- AI-powered early disaster detection
- Real-time multilingual voice alerts
- Satellite fallback connectivity
- Open-source global community deployment
Closing Note
Civitas ensures communication when everything else fails — because one message during a crisis can save a life.
when using the project link:
use login credentials :
username: "citizen@civitas.com" password:"password123" username: "rescuers@civitas.com" password:"password123" username: "government@civitas.com" password:"password123"
Log in or sign up for Devpost to join the conversation.