-
-
Web (Chrome): the list grouped by room, built from 9 family photos read on the laptop.
-
Each photo tagged with where it was read and how long it took: on this device, by Gemini Nano through Firebase AI Logic.
-
Android: photos read on the phone, a "Same armchair?" check, and an item added from memory.
-
Android: the model number is read on the phone. Only that crop and its text go to the cloud, and the ledger counts them.
-
iOS: on a phone with no on-device model, photos go to the cloud only after a yes. Results and the letter are tagged Cloud.
-
The cover letter: written on the device in Chrome (left), streamed from the cloud on Android (right).
-
Every AI run is counted by where it ran: 100% on this device in Chrome, and the Android list once an item is priced.
-
Where each job runs: photos are read on the device; the cloud is used only with consent.
-
The list is where claims break: 80% of LA-fire survivors reported serious claim problems; 47% of homeowners have an inventory.
-
On a $300,000 California policy, $120,000 is paid only with an itemised list (SB 495).
Inspiration
The January 2025 Los Angeles fires caused an estimated $28–45 billion in insured losses (Verisk, UCLA Anderson), the costliest wildfires in US history. Afterwards, 80% of survivors reported serious problems with their claims (United Policyholders). A year on, only 23% had been paid their full contents cover without first itemising everything they lost (UP 12-month survey).

The itemised list is where the money is. California's SB 495 now pays 60% of the contents limit without one, up to $350,000. On a $300,000 policy, the other $120,000 depends on a family listing, item by item, everything that used to be in a house that no longer exists. Only 47% of homeowners have ever made that list (Triple-I).

Most of those families already hold the evidence: years of birthdays, holidays and kids on the kitchen floor, with every room in the background. Those photos are also the most private thing they own. They show the children, the layout of the home and where the valuables were kept. Uploading them to anyone's server, least of all the insurer's, isn't something we'd ask a family to do.
What it does
You add your photos and home videos, and Afterlist gives you back a claim-ready contents list, room by room, with a photo behind every line, a price for each item and a cover letter for the insurer.
- Add photos and videos. Each one is read on your device. The on-device model names the room and the belongings it can see from a fixed vocabulary of 76 household kinds (now including jewelry, watches, phones, tablets, luggage, tools and collectibles), then counts each kind in a second on-device pass. A kind it counts as zero is dropped. Add the same photo twice and Afterlist says "Already added"; remove a photo and add it back, and its earlier scan returns instantly with no model call.
- The list merges itself. The sofa in nine photos is one sofa. Two different chairs in two photos stay two chairs. When two views are close but not certain, Afterlist shows both crops and asks "Same chair?", and your answer always wins.
- Say what the photos missed. Type or speak "Mum's Yamaha upright piano, living room" and it becomes an item. You can search your list the same way, by voice, on the device: "couch" finds the sofa.
- Find the exact model, only for what you choose. Draw a box around the TV. The device reads SONY BRAVIA KD-55X80K off it first, and shows you the crop and the text before anything is sent. Gemini then searches real shops and returns up to three products with a price and a link. Each candidate shows whether Gemini actually read that shop's page (Shop page read), and a short How it matched explains its reasoning. You pick This one or Close enough, and the export records it as Exact or Comparable.
- Price everything else with words only. Every kept item with no price shows the exact words it would send, such as "sofa (living room)". Tap Suggest a price, or Suggest prices (N) for a whole room after one confirmation that lists every word. Each suggestion is a product, price and link that counts toward nothing until you tap Accept, Edit or Skip.
- Write the cover letter. Tap Write letter and the letter streams in. Only the kept list (rooms, names, counts, prices) is sent. Your name, insurer and policy number are filled in on your device afterwards.
- Bring in every family member's phone. Most phones can't run an on-device model. They link to a laptop on the same Wi-Fi by scanning a QR code, and their photos go across directly, with no server in between. With no laptop nearby, the phone asks "Scan these photos in the cloud?" for that one batch, and sends nothing until you say yes.
- Export the claim. You get a room-by-room CSV with quantity, make and model, Exact or Comparable, replacement price, source link and photo proof. It shows the total against your contents limit and, in California, what your list adds beyond the share paid without one. Small ⓘ icons explain terms like contents limit and Comparable in plain words, without giving advice.
Every result shows where it ran (On this device · 6.2 s or Cloud). A ledger counts every byte that has left the device, with the tokens each cloud reply reported.
How we built it
Design principle: photos stay where they were taken. The device does the reading, the counting, the matching and the searching of your own list. The cloud is used for what only it can do (today's shop listings, and a well-written letter), and only for words or a crop the owner has seen first.

Firebase AI Logic hybrid inference carries every model call, and all four inference modes have a job:
| Feature | Inference mode | What leaves the device | Web | Android | iOS |
|---|---|---|---|---|---|
| Photo and video scan (two passes) | ONLY_ON_DEVICE |
Nothing | Gemini Nano in Chrome | Gemini Nano (AICore) | Apple Foundation Models* |
| Cloud scan, no on-device model | ONLY_IN_CLOUD, per-batch yes |
That batch's downscaled JPEGs | ✓ | ✓ | ✓ |
| Spoken or typed item | PREFER_ON_DEVICE |
Only the owner's words, on fallback | ✓ | ✓ | ✓ (hybrid systemModel → Gemini) |
| Read the label on a crop | ONLY_ON_DEVICE |
Nothing | Gemini Nano | ML Kit | Vision + Firebase systemModel |
| Identify / Search shops | ONLY_IN_CLOUD + Google Search + URL context |
The approved crop and text, or the typed words | ✓ | ✓ | ✓ |
| Suggest prices | ONLY_IN_CLOUD + Google Search + URL context, thinking LOW |
Item names and rooms only | ✓ | ✓ | ✓ |
| Cover letter | PREFER_IN_CLOUD, streamed |
The kept list only | ✓ | ✓ | ✓ (hybrid Gemini → systemModel) |
*On iOS, Firebase's on-device path takes text only, so the photo scan calls Apple Foundation Models directly. iOS still runs AI Logic on the device for the spoken line and the label, and reads model availability through FirebaseAI.SystemLanguageModel.
- Photo scan: image input and a JSON schema built from the closed vocabulary. Every response's
inferenceSourceis checked, and a scan that didn't run where it should have is rejected, not shown. - Cloud scan, by consent: the same prompts and schemas through
ONLY_IN_CLOUD. It runs only when the device has no model at all, and only after the owner says yes to that batch. The yes is kept in memory, used up per photo and never saved. The gate is a pure, unit-tested function (cloudscan.ts). The cloud rejected the on-device schema as "too many states", so the cloud copy drops the limits and shared code enforces them, giving identical shapes on both paths. - Identify, Search shops and prices: Google Search grounding plus URL context. Candidates whose shop page URL context actually fetched (
urlContextMetadata) are tagged Shop page read. Thought summaries (includeThoughts) appear as How it matched on identify and Search shops. Price suggestions batch up to 8 items per room into one call atthinkingLevel: LOW, set only on models that accept a level. Google Search suggestions (searchEntryPoint.renderedContent) are shown with every grounded result on all three platforms: in a shadow root on web, and in script-off web views on Android and iOS (non-persistent on iOS), with taps opening the browser. - Cover letter:
PREFER_IN_CLOUDwithgenerateContentStream, so the letter appears as it's written. Offline, the SDK falls back to the on-device model. The prompt states the exact counts so a small model never has to add them up. The owner's details replace placeholders on the device (letter.ts). - Android Gemini Nano 4 opt-in: a Settings switch, Faster on-device model (preview), off by default, moves every on-device call to
OnDeviceModelOption.PREVIEW_FAST. Settings then shows the SDK'sgetModelName(). The model is warmed up withwarmUp()once it's available. - Remote Config as the control plane, read down only: the cloud model name, a kill switch for the cloud scan, thought summaries on or off, and the SB 495 share and cap. Every value has a default in code and is validated, so a failed fetch changes nothing (
config.ts). - The ledger counts tokens as well as bytes. Each cloud line shows the reply's
usageMetadatatokens, plus "(N from cache)" when Gemini reportscachedContentTokenCount. Prompts put the fixed instructions first and the variable data last (text before image) so implicit caching can hit. Today's prompts are below the cache's minimum size, so a hit is normally absent, and explicit context caching isn't offered in the client SDKs. - App Check with limited-use tokens on all three: reCAPTCHA Enterprise on web, Play Integrity on Android, App Attest on iOS.
No model at all is needed for several jobs:
- Matching objects across photos. MediaPipe EfficientDet-Lite0 draws boxes and MobileNet-V3 embeds each box on web and Android, and Vision feature prints do the same on iOS. Boxes of the same kind in the same room join when they look alike, never two boxes from one photo.
- Duplicate files. Each file is hashed (SHA-256 of the original) when it's added. Duplicates are skipped, and finished scans are cached by hash and restored with no model call, which saves on-device time and cloud quota. Failures are never cached.
- Searching your own list. Plain matching with everyday words (couch → sofa).
- The Wi-Fi link. A WebRTC data channel with no ICE servers, so it can only connect devices on the same network. It is set up from two QR codes and three check words that both screens show.
What we deliberately left out. We skipped countTokens, because it would send the photo before the owner's yes. We skipped the Live API, which streams the microphone to the cloud; speech uses each platform's on-device recogniser instead. Firestore and Authentication are out because there are no accounts and the list lives on the device (IndexedDB and local storage). Image generation and Maps grounding add nothing to a claim list. Each AI Logic feature we use had to fit the promise that a photo leaves only with a yes.
Design. One set of tokens and page patterns (design.md) across three native UIs: provenance colours mean only where something ran, wording lives in one shared copy file per platform, and the same help text sits behind each ⓘ icon (tested to match the web word for word).
Stack: TypeScript + Vite (web), Kotlin + Jetpack Compose (Android), Swift + SwiftUI (iOS), Firebase AI Logic, App Check and Remote Config, MediaPipe Tasks, ML Kit, Apple Vision and Foundation Models, WebRTC, IndexedDB.
Challenges we ran into
The on-device model listed its whole vocabulary. Given its full list of kinds and a kitchen photo, Gemini Nano returned nearly every appliance on the list: 6.4 invented items per kitchen photo on our 30-photo test set. A second on-device pass now asks for a count of each listed kind, and a zero drops it. On the five worst photos, invented kitchen items fell to about 0.8 per photo.
The cloud rejected our scan schema. The same JSON schema that Gemini Nano accepts on the device came back from the cloud as "too many states": an enum array with maxItems plus bounded integers. The cloud copy now drops those limits, and the shared two-pass code enforces them on the result, so both paths return identical shapes.
Telling the same chair apart without inventing duplicates. Merging is the costly mistake: two chairs counted as one is money lost. We calibrated on 253 pairs of different objects of the same kind. None scored above our merge threshold, so Afterlist only merges when sure and asks the owner about the close calls. iOS has no general object detector, and saliency boxes found 32 objects where MediaPipe found 61 on the same photos, so iOS got its own calibrated thresholds.
One SDK, three shapes. The iOS SDK's on-device path takes text only, so we split the iOS label read in two: Vision reads the text, then Firebase's on-device systemModel keeps just the make and model words that really appear in it. Android shows no provenance tag when a response doesn't report a source, rather than guessing one.
Accomplishments that we're proud of
- One privacy rule enforced in code on three native platforms. A photo cannot take a cloud path without a per-batch yes, and the ledger shows the bytes and tokens.
- All four AI Logic inference modes, each chosen for what its data allows, on web, Android and iOS.
- On 30 public home photos, on-device only, Gemini Nano found about 75% of the big belongings at a median of 6.4 s per photo (measured with the earlier 55-kind vocabulary).
- Same-object grouping made 0 wrong merges in 253 pairs, joined 59% of re-shot objects automatically, and sent the rest to the owner as a question.
- The device read the model number SONY BRAVIA KD-55X80K from a crop in Chrome, with nothing sent.
- 114 web unit tests (inventory maths, grouping, cloud-scan consent, config, search, prices, letter, intake, help text, signalling and handoff), 75 Android unit tests and 68 iOS unit tests, all passing, with the shared rules (prompts, prices, letter, config, search, intake) mirrored and tested on each platform.
What we learned
We started by asking which model could read a photo best. The better question turned out to be which devices families actually own. Most phones in a household can't run an on-device model, including the iPhone 13 we tested with. So privacy had to cover moving photos between a family's own devices, over their own Wi-Fi, and asking out loud before anything touches the cloud.
We also learned that "hybrid" is a choice to make per job, not per app. A photo, a typed word and a cover letter carry very different risks, so each one got its own inference mode.
What's next for Afterlist
- A real household. Our evaluation script already scores the app against a hand-made inventory: found, invented, merged, split, counted and priced. Next we run it on a real home's camera roll, walked through room by room, with the full 76-kind vocabulary.
- A blind review by a public adjuster. We'll ask which lines of an exported list an insurer would challenge, then fix those lines first.
Status: on-device scanning, grouping, label reading, list search, duplicate skipping and the Wi-Fi link run in the builds shown in the video. The consented cloud scan has run end to end on web, Android and the iOS simulator, and cloud identify has run against a live Firebase project. Price suggestions and Search shops were built on all three platforms. The Nano 4 switch is built, but our test emulator has no on-device model, so it hasn't run on Nano 4. Benchmarks are from 30 public COCO photos with the earlier 55-kind vocabulary
Built With
- apple-foundation-models
- apple-vision
- firebase-ai-logic
- firebase-app-check
- gemini
- gemini-nano
- google-search-grounding
- indexeddb
- jetpack-compose
- kotlin
- mediapipe
- ml-kit
- swift
- swiftui
- typescript
- vite
- webrtc