About
## The problem it solves
When disasters, accidents, or emergencies happen, internet and mobile networks are often unavailable or overloaded. In these situations, people struggle to communicate, share their location, or coordinate rescue efforts.
ResQ is an offline emergency communication app that works without the internet, Wi-Fi, or servers. It uses Bluetooth mesh networking so nearby phones can relay messages over multiple hops, extending communication beyond direct Bluetooth range.
The app also lets users send SOS alerts with their location, share updates with nearby people, and use an on-device AI assistant that works completely offline. By combining offline messaging, shared coordination, and local AI, ResQ helps rescue teams, volunteers, trekkers, and communities stay connected when traditional communication fails.
## Challenges we ran into
Our project implements the BitChat protocol for BLE mesh networking and layers Yjs CRDT on top to provide collaborative state synchronization.
BLE has a maximum payload size per packet determined by the negotiated MTU. A Yjs update can be significantly larger than that limit. To transport it reliably over BLE, we fragment each serialized Yjs update into multiple packets. Each fragment carries metadata . The receiving device buffers the fragments, reassembles them in the correct order, verifies that all fragments have arrived, reconstructs the original Yjs update, and then applies it to the local CRDT document.
A practical challenge was that serialized Yjs updates frequently exceeded the maximum BLE payload size. Large updates could not be transmitted in a single BLE packet, so we implemented an application-layer fragmentation protocol. Each update is divided into multiple numbered fragments that fit within the BLE payload limit.
Fragmentation alone was insufficient because losing even a single fragment made the entire CRDT update unusable. To address this, we implemented an asynchronous reliability layer on top of BLE. Every transmitted fragment is acknowledged by the receiver. Missing acknowledgements trigger selective retransmission of only the lost fragments rather than the entire update. Once all fragments are received, they are reassembled into the original Yjs update and applied to the local CRDT document. This ensures reliable synchronization even in lossy BLE mesh environments.
## The problem it solves
When disasters, accidents, or emergencies happen, internet and mobile networks are often unavailable or overloaded. In these situations, people struggle to communicate, share their location, or coordinate rescue efforts.
ResQ is an offline emergency communication app that works without the internet, Wi-Fi, or servers. It uses Bluetooth mesh networking so nearby phones can relay messages over multiple hops, extending communication beyond direct Bluetooth range.
The app also lets users send SOS alerts with their location, share updates with nearby people, and use an on-device AI assistant that works completely offline. By combining offline messaging, shared coordination, and local AI, ResQ helps rescue teams, volunteers, trekkers, and communities stay connected when traditional communication fails.
## Challenges we ran into
Our project implements the BitChat protocol for BLE mesh networking and layers Yjs CRDT on top to provide collaborative state synchronization.
BLE has a maximum payload size per packet determined by the negotiated MTU. A Yjs update can be significantly larger than that limit. To transport it reliably over BLE, we fragment each serialized Yjs update into multiple packets. Each fragment carries metadata . The receiving device buffers the fragments, reassembles them in the correct order, verifies that all fragments have arrived, reconstructs the original Yjs update, and then applies it to the local CRDT document.
A practical challenge was that serialized Yjs updates frequently exceeded the maximum BLE payload size. Large updates could not be transmitted in a single BLE packet, so we implemented an application-layer fragmentation protocol. Each update is divided into multiple numbered fragments that fit within the BLE payload limit.
Fragmentation alone was insufficient because losing even a single fragment made the entire CRDT update unusable. To address this, we implemented an asynchronous reliability layer on top of BLE. Every transmitted fragment is acknowledged by the receiver. Missing acknowledgements trigger selective retransmission of only the lost fragments rather than the entire update. Once all fragments are received, they are reassembled into the original Yjs update and applied to the local CRDT document. This ensures reliable synchronization even in lossy BLE mesh environments.
Screenshots
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.











