




I built the offline-AI screen for my survival app in RN, MediaPipe LLM inference plus a custom rich chat renderer
Offline AI chat
- Qwen2.5 1.5B on-device, MediaPipe, zero connectivity
Emergency-first routing
- keyword router before the LLM, hardcoded answers with action buttons for acute emergencies
Custom markdown renderer
- own line parser, no react-native-markdown-display, no React.Fragment inside Text (broken in RN)
Resumable 1.6GB model download
- pause/resume, survives app kill via byte-offset resume, wifi warning
Ultrasonic sound messenger
- WebView + Web Audio, phone-to-phone text over sound, no bluetooth
Camera-flash Morse/SOS signaling
- automated timing, screen-off capable
Offline maps
- MapLibre, region packs cached locally