About the Project — AidMesh
Inspiration
During disasters and humanitarian emergencies, getting the right resources to the right people at the right time can make a life-changing difference. However, disaster-relief operations often face a major challenge: information is scattered across shelters, field workers, relief organizations, and supply centers. Requests may be duplicated, critical shortages can go unnoticed, and available resources may not reach the communities that need them most.
We wanted to address this coordination gap by building AidMesh, an AI-powered disaster-relief coordination platform designed to make humanitarian resource distribution smarter, faster, and more reliable.
One of the key ideas behind AidMesh is that disaster response cannot depend entirely on stable internet connectivity. Field workers may be operating in areas where networks are unreliable or completely unavailable. We wanted to build a system that remains useful even in these conditions while ensuring that information is synchronized and shared when connectivity returns.
Our goal was not simply to build another resource-management dashboard, but to create a reliable coordination system that connects field-level information with intelligent resource matching and allocation.
What It Does
AidMesh transforms offline field reports into structured, actionable information and connects them with a centralized resource-coordination system.
Its core capabilities include:
- Offline-First Reporting:Field workers can create and edit disaster reports even without an internet connection. Reports are stored locally and queued for synchronization.
- AI-Assisted Information Extraction: Unstructured field reports can be converted into structured needs and resource information using AI assistance.
- Intelligent Resource Matching: The platform connects requests with available resources and identifies potential matches between shelters, organizations, and supply centers.
- Shortage and Surplus Detection: AidMesh identifies resource shortages, available surpluses, and potential allocation opportunities.
- Duplicate and Conflict Detection: The system helps identify duplicate requests and conflicting information to improve coordination.
- Resource Allocation Recommendations: It recommends suitable resource allocations while maintaining safeguards and traceability.
- Reliable Synchronization: Offline changes are synchronized when connectivity returns, with safeguards against duplicate operations and conflicting updates.
- Auditability: Important actions involving requests, inventory, and deliveries are recorded to maintain a traceable history.
How We Built It
We built AidMesh using a modern web technology stack, with a strong emphasis on offline reliability, AI integration, data consistency, and security.
Frontend: React, TypeScript, and Tailwind CSS
We used React and TypeScript to develop a responsive application with structured components and type-safe application logic. Tailwind CSS helped us build a consistent interface.
AI Integration: Google Gemini and Firebase AI Logic
We integrated AI capabilities to assist with extracting structured information from field reports and supporting resource coordination. The architecture supports local AI capabilities where available and cloud-based Gemini processing for more advanced coordination tasks.
Offline Storage: IndexedDB and Dexie
To ensure that field workers can continue operating without connectivity, we implemented local data persistence using IndexedDB and Dexie. Reports and pending operations remain available locally until synchronization becomes possible.
Backend and Database: Firebase Firestore
We used Firestore as the centralized data layer for coordinating requests, inventory, shelters, and deliveries. Synchronization mechanisms include idempotency protections and version-based conflict guards.
Authentication and Security: Firebase Authentication and App Check
We incorporated authentication and security mechanisms to protect application access and enforce role-based permissions.
Progressive Web App: Workbox and Firebase Hosting
We designed AidMesh as a Progressive Web App so that essential application functionality remains accessible in unreliable network environments.
Development Process
We approached development in phases rather than trying to build everything simultaneously.
- Established the offline-first foundation, including local persistence, report creation, and editing.
- Implemented queued synchronization with idempotency and conflict protection.
- Developed AI-assisted report processing and information extraction.
- Built resource matching, shortage detection, surplus identification, and allocation logic.
- Strengthened security, permissions, and audit logging.
- Integrated the major components into a unified application and performed verification and remediation.
A particularly important part of development was Phase 2C, which focused on comprehensive resource-matching and allocation remediation. We audited the matching and allocation implementation, addressed the confirmed findings, and verified the resulting improvements.
Challenges We Faced
Building AidMesh involved challenges beyond developing a conventional web application.
- Designing for Unreliable Connectivity
A disaster-relief application cannot assume that users will always have internet access. We had to ensure that field reports could be created, edited, and preserved offline without losing information. Implementing reliable synchronization while preventing duplicate operations and conflicting updates required careful architectural decisions.
- Maintaining Data Accuracy
In humanitarian operations, incorrect information can lead to resources being distributed inefficiently. We had to design the system carefully so that missing information would not be treated as zero, and AI would not silently invent quantities or the number of people affected.
- Resource Matching and Allocation
Matching available supplies with incoming requests involves more than simply comparing resource names. We had to consider availability, shortages, surpluses, conflicting information, and the reliability of the underlying data. Auditing and remediating the matching and allocation logic was an important part of making the system more dependable.
- Integrating AI Responsibly
AI is useful for processing unstructured field reports, but it must not become an uncontrolled source of information. We focused on keeping AI assistance transparent, ensuring that local-only processing does not silently transmit information to cloud services, and maintaining human oversight over important allocation decisions.
- Security and Traceability
Since the platform handles operational information, we needed appropriate authentication, role-based access control, synchronization safeguards, and immutable audit events. Ensuring that these mechanisms worked together required extensive testing and verification.
What We Learned
Building AidMesh taught us that developing an impactful AI-powered application requires much more than integrating an AI model.
Some of our biggest takeaways were:
- Offline-first architecture matters: Connectivity should not determine whether essential field operations can continue.
- AI must be grounded in reliable data: An intelligent system is only as trustworthy as the information it processes.
- Unknown does not mean zero: Preserving uncertainty is essential when working with real-world humanitarian information.
- Data consistency is critical: Synchronization, idempotency, versioning, and conflict resolution are fundamental to distributed applications.
- Human oversight matters:AI should assist decision-making, especially in high-impact scenarios, rather than make unchecked decisions.
- Security and auditability should be built in from the beginning: They cannot simply be added at the end of development.
We also gained practical experience with React, TypeScript, Firebase, IndexedDB, Progressive Web Apps, Gemini integration, distributed synchronization, and systematic software testing.
Testing and Verification
We placed significant emphasis on verifying the reliability of the application rather than relying only on whether individual features appeared to work.
During the offline-foundation verification, we achieved:
- 85 passing tests.
- 29/29 security-rule checks passing.
- Zero TypeScript errors.
- Verified offline report creation and editing.
- Verified queued synchronization and conflict safeguards.
We also conducted a dedicated audit and remediation cycle for the resource-matching and allocation functionality to resolve confirmed implementation issues.
What's Next?
We envision AidMesh evolving into a comprehensive disaster-relief coordination ecosystem that can connect field workers, shelters, NGOs, relief organizations, and supply centers through a shared, intelligent platform.
Our future direction is to improve real-world deployment readiness, expand coordination capabilities, strengthen AI-assisted decision support, and make resource distribution increasingly transparent and efficient.
AidMesh is built around one simple belief: during a crisis, critical resources should reach the people who need them most—not get lost in disconnected information and inefficient coordination.
Built With
- artificial-intelligence
- css3
- data-synchronization
- dexie.js
- disaster
- firebase
- firebase-authentication
- firebase-firestore
- google-ai
- google-gemini
- html5
- humanitarian-technology
- indexeddb
- javascript
- machine-learning
- node.js
- offline-first-architecture
- progressive-web-app-(pwa)
- react
- rest-api
- service-workers
- tailwind-css
- typescript
- vite
- workbox