Inspiration

After Hurricane Helene in September 2024, parts of western North Carolina had little or no cell service for about two weeks. Neighbors coordinated on foot: who has a generator, whose road washed out, whose dad is on oxygen. The tools people normally use for this (Facebook groups, shared Google Sheets, Crisis Cleanup) all need a connection. The offline apps that do exist (Prepper AI, OffGrid AI and others) are solo survival chatbots. They answer one person's questions, but they can't show you what the house two doors down needs.

We wanted a shared neighborhood board that keeps working when the towers don't, and gets better the moment any phone finds signal.

What it does

Porchlight is a neighborhood relief board for iPhone and Chrome.

  1. Neighbors write plain notes: "My dad has 2 hours left on his oxygen battery", "Spare generator and cords on Park St", "Bridge on Whitson is under water".
  2. The phone sorts each note itself into a card: need, offer or hazard; category; urgency; a short summary; and a deadline if the note states one. No signal needed.
  3. Notes move without a network. Neighbors carry saved notes on a walking loop that avoids closed roads, pass signed notes phone to phone by animated QR code or walkie-talkie-style sound, or borrow a neighbor's phone to sort a note if theirs can't run a model offline.
  4. When any phone reaches signal, notes sync, the cloud takes a Second look at urgent phone-sorted cards, and coordinators get a plain Situation Brief with supply matches and cut-off streets.

Every card says where it was sorted (ON THIS PHONE, NEIGHBOR'S PHONE or CLOUD), read from the SDK's actual result. Porchlight never gives medical or rescue advice. It only organizes what neighbors wrote, and every quote on a card must appear word for word in the original note.

How we built it

Hybrid AI with Firebase AI Logic. Each job runs where it fits:

Job Where Why
Note → card On-device first (PREFER_ON_DEVICE) Must work with no signal; short, structured, frequent
Sort for a neighbor with no model Neighbor's device only (ONLY_ON_DEVICE) The whole point is to avoid the cloud
No model, no signal Saved raw, sorted when signal returns Nothing is lost
Second look at urgent cards Cloud (ONLY_IN_CLOUD) Small models sometimes under-rate a medical or hazard clue
Situation Brief, supply matching Cloud (ONLY_IN_CLOUD) Needs the whole board; the coordinator is online
  • Web: React, TypeScript and Vite as an installable PWA that reloads offline. getAI() with Gemini Nano in Chrome for note sorting, duplicate checks, photo-to-text, second looks and briefs.
  • iOS: SwiftUI on iOS 26. HybridModel with Apple Foundation Models as primary and Gemini as secondary, using @Generable schemas for structured output. MultipeerConnectivity for nearby iPhones.
  • Firebase: App Check (reCAPTCHA Enterprise / App Attest), Firestore with offline persistence as the sync layer, Anonymous Auth, Remote Config (model name, prompts, a force-cloud switch) and Hosting.
  • Maps: OpenStreetMap streets and buildings for your area are downloaded once, so the map works offline. A reported road closure cuts that street out of the routing graph immediately, and the walking-loop planner routes around it.
  • Offline transfer: a compact binary card (about 59 bytes), signed with Ed25519 and protected with Reed-Solomon error correction, sent as an animated QR "fountain" or as audio tones in the 300–2700 Hz voice band. The TypeScript and Swift versions produce byte-identical output, checked against shared test vectors.

Knowing when to double-check the phone. On-device models don't expose token probabilities, so Porchlight gives each phone-sorted card a risk score \(s(x)\) built from things it can check: does every quote appear in the note, did the note mention life-safety words the card missed, is it long and multi-part, do repeated runs agree. On a labeled calibration set of \(n\) notes, it picks the most permissive threshold that still keeps the expected miss rate under a target \(\alpha\) (conformal risk control):

$$ \hat{\lambda} = \max \left\lbrace \lambda : \frac{1 + \sum_{i=1}^{n} \ell_i \mathbf{1}[s_i \le \lambda]}{n+1} \le \alpha \right\rbrace $$

where \(\ell_i = 1\) if the phone got note \(i\) wrong. Cards with \(s(x) \le \hat{\lambda}\) stay on the phone. Riskier cards go to the cloud when online, or are flagged needs second check when offline. As the cloud reviews more cards, the threshold keeps adjusting with \(\lambda_{t+1} = \lambda_t + \gamma(\alpha - \ell_t)\), and repeated misses become short prompt patches sent back to phones.

Challenges we ran into

  • Most judges won't have on-device AI. Gemini Nano in Chrome needs desktop Chrome 148+, about 22 GB of free disk and a strong GPU or 16 GB of RAM. So the fallback had to be a first-class path: the app says plainly which requirement is missing and sorts in the cloud instead.
  • Trusting a small model with urgent notes. A missed "oxygen" note is worse than a slow one. With no log-probabilities, we had to build confidence from checks we could verify.
  • No network at all. Peer-to-peer radio doesn't work between Chrome and iPhone, so we built QR and audio transfer that works between any two devices with a screen and camera, or a speaker and microphone.
  • Keeping it calm. Early versions were dashboards full of numbers. We moved charts and thresholds under Technical details so a tired neighbor sees plain words first.

Accomplishments that we're proud of

All results below can be reproduced from benchmarks/ in the repo:

  • Confidence check (100 hand-labeled crisis notes, 10 random 50/50 splits, replay of recorded model outputs): trusting the phone based on note length gave a 43.8% held-out error rate. At \(\alpha = 0.05\) the calibrated check brought it to 4.4%, sending 58% of notes for a cloud check. With the learned prompt patches it held 4.6% while keeping 99.6% of notes on-device.
  • Card size: 59 bytes per card, 14.4× smaller than the raw Firestore JSON.
  • Sound transfer (simulated radio channel with noise, echo and clock drift): every signed packet arrived intact from −7 dB to +20 dB SNR.
  • QR transfer: every packet decoded even with half the frames dropped.
  • Walking loops (30 runs on the real Swannanoa street map): 0 hazard crossings versus 395 for straight-line routing, planned in under 3 ms.

What we learned

  • On-device models are good at short, structured, frequent jobs. The cloud is better at catching subtle mistakes and reading the whole board. Designing for both from the start was easier than adding a fallback later.
  • "Offline" is not one state. No model, no signal, a neighbor nearby, ten seconds of signal on a hill: each one needed its own path.
  • The cloud should suggest, not overwrite. A second look that rewrote a neighbor's note would erase the one thing everyone can trust: their own words. So corrections sit beside the original and a person accepts them.

What's next

  • Field-test with a CERT team or church relief group in western North Carolina.
  • A native Android app with Gemini Nano. Android phones can already join through the web app and QR/sound transfer.
  • More languages for note sorting, starting with Spanish.

Built during the hackathon

All of Porchlight was built during the submission period. The first commit is dated November 22, 2026.

Built With

  • apple-foundation-models
  • cloud-firestore
  • firebase-ai-logic
  • firebase-app-check
  • firebase-authentication
  • firebase-hosting
  • firebase-remote-config
  • gemini
  • gemini-nano
  • openstreetmap
  • react
  • swift
  • swiftui
  • typescript
  • vite
  • webcrypto
Share this project:

Updates

Submission history