1. About the project

Copy all of this and paste it into the field:

Inspiration

After the February 2023 earthquakes in Türkiye, mobile data was the first thing to collapse. Cloud AI went down with it, at the exact moment people needed help most. SMS and short bursts of signal kept working. Iris is built for that moment: a messenger and guide whose AI keeps working when the network doesn't.

What it does

  • Status composer: a voice or text note becomes a validated status ("need help, 2 people, building damaged") that fits a single GSM 7 SMS. Iris opens the system SMS app and the user presses send. Iris never sends on its own.
  • Family board: family members paste, share or scan incoming statuses and see who is safe and who needs help. Decoding happens on the device.
  • Guide answers: questions are answered only from official preparedness guides stored on the device (Turkish and English), quoting the passage and its source. If the guide doesn't cover it, the answer is "Not in the guide, call 112."
  • Volunteer desk (Chrome): dozens of pasted messages are triaged locally into rescue, medical, supplies, info and duplicates, then grouped into incidents.
  • Announcements: when the network returns, long official announcements are summarised and translated in the cloud.
  • Prepare: household plan, meeting points, go bag checklist and a ready "I'm safe" SMS.

Every AI result shows whether it ran on the device or in the cloud.

How we built it

Iris runs on Android, iOS and Web (Chrome) with Firebase AI Logic hybrid inference:

Task Mode
Status extraction, guide answers, triage PREFER_ON_DEVICE
Digest, translation, longer explanations PREFER_IN_CLOUD
  • Web: firebase/ai with Gemini Nano in Chrome (React, Vite, PWA)
  • Android: firebase-ai and firebase-ai-ondevice with Gemini Nano (Kotlin, Jetpack Compose)
  • iOS: FirebaseAILogic with Apple Foundation Models (Swift, SwiftUI)

App Check protects every AI call. Remote Config serves prompts, guide version and retrieval thresholds. Firestore syncs the family board with offline persistence, and Anonymous Auth ties it together.

A shared spec (codec schema, golden vectors, prompt templates, guide pack format) is implemented three times. Guide retrieval is BM25 over bundled passages, and an answer guard rejects any answer that doesn't quote a retrieved passage. The same golden vectors are tested in TypeScript, Kotlin and Swift.

Challenges we ran into

  • Fitting a meaningful status into one 160 character GSM 7 SMS while keeping it readable for a human
  • Keeping a small local model strictly inside the official guides instead of answering from its own knowledge
  • Making the codec behave identically on three platforms and three different local model runtimes
  • Treating every incoming message as untrusted data: prompts fence it, and output is validated against a schema before use

What we learned

On-device AI changes what is possible in a disaster: privacy, zero cost and no dependency on the network. Small models need tight guardrails, and deterministic code around the model matters as much as the model itself. Hybrid inference let us use one API for both worlds.

Safety

Iris is not an emergency or medical service and is not affiliated with AFAD, Kızılay or any authority. In an emergency, call 112.

Built With

Share this project:

Updates

Submission history