Judging criteria at a glance

Return Witness is a gear rental desk app built with Firebase AI Logic. With a supported model ready, Gemini Nano reads on the device in Chrome and on Android. The native iPhone app uses Apple's on device model. Gemini in the cloud can compare a whole kit's notes after you say yes.

Technological Implementation: "How well is the project built, and how effectively does it use Firebase AI Logic hybrid inference as part of the solution?" The release app uses Firebase AI Logic for its 5 model features. Picture reading prefers the device. Note reading and one part comparison run only on the device. A whole kit comparison uses ONLY_IN_CLOUD and can wait in a queue for signal. The packet's closing line has a PREFER_IN_CLOUD option and a device option. The app itself writes every count, part and mark. When Firebase reports where an answer came from, the app shows it. App code keeps the kit versions, works out the official counts and missing parts, and pairs the same views. It checks model quotes from notes, drops unknown part IDs from a kit comparison and falls back to a basic closing line if a check fails. Picture details need confirmation. A mark quoted by a comparison goes into review as unsure, and only a person sets it to known or new. The web app uses App Check and signs in before cloud model requests. In the 23 Nov check, a call with no App Check token got HTTP 401 and a call with one got HTTP 200. Proof: 33 of 33 Firestore rules tests pass, and 24 of them fail against a rules file that allows everything; 436 shared logic, 395 web, 870 Android and 135 browser tests pass. On iPhone, 175 unit and 21 UI tests passed on 24 Nov 2026.

Design: "Does the project deliver a complete, coherent product experience, not just a technical proof of concept?" The app runs on web, Android and iPhone. On the web, there is a first run tour, setup with a starter kit, a desk with rentals Out, Due back and Closed, kits with versions, check out and check in part by part, a pair board with the out and back views side by side, a missing parts list, a marks review, sign off for staff and renter, a return packet you can print, share or save as a copy, history for one asset tag, device model status, a preview for model sends, a ledger of which side answered, and Delete my data. The foam case look gives each part a slot. A missing part has an empty slot. On the web, 22 screen views at 6 sizes, 132 in all, pass an automatic layout check, 44 pass an accessibility check with 0 faults, and 23 screens fit at 320 px with text at 200%.

Potential Impact: "Does the project make a credible, specific case for solving a real problem for a real audience, and does the solution address it based on what's demonstrated?" It is for the owner of a camera or gear rental desk. At a busy counter or in a storeroom with poor signal, staff can record each part as it goes out and comes back. The missing list can show "Battery charger" and "1 missing". A mark first recorded at return starts as unsure. Staff and renter can sign, or staff can record a reason for closing without all signatures. The packet lists missing parts, unsure marks and skipped checks. Damage at return is a real fight: on 15 Oct 2021 the New Jersey Attorney General announced a $50,000 penalty for Enterprise after complaints that it did not give consumers the chance to fully inspect vehicles for earlier damage, and billed them for damage that "did not occur during the rental period" (https://www.njoag.gov/enterprise-rent-a-car-agrees-to-50000-penalty-and-new-measures-to-protect-consumers-in-settlement-over-improper-charges-for-vehicle-damage/, read 27 Nov 2026). We ran it on the parts Lensrentals lists under Includes for its Nikon Z7II with Z 24-70mm f/2.8 Lens Kit (https://www.lensrentals.com/rent/nikon-z7ii-with-z-24-70mm-f2.8-lens-kit, read 27 Nov 2026): four parts out, three back. On the live site, Missing parts said "SanDisk Extreme Pro CFexpress Type B Reader", "1 missing" (expected 4, counted out 4, counted back 3), and the return note "Small scratch on the top plate near the hot shoe." went to Review marks as a scratch, Unsure, with Compare part answered On this device.

Quality of the Idea: "Is this a creative, non-obvious use of Firebase AI Logic, and does the team show genuine understanding of the problem space?" Two parties, one witness. The same views of the same part, out and back, side by side, with what is unsure left unsure. The app records the return and leaves any decision about charges to the desk. The app writes the packet's facts itself, and the model only adds a closing line. A whole kit comparison sends confirmed notes and part IDs after approval. Sync leaves out pictures and signature drawings. A separate cloud picture read sends a picture only if you approve that send.

In short

Check a kit out part by part, check it back in the same way, see what is missing and what is new, sign, and keep a packet both people can trust.

How we used Firebase AI Logic

Feature Inference mode
Read a part picture PREFER_ON_DEVICE (one picture at a time)
Find marks in a note ONLY_ON_DEVICE
Compare part notes ONLY_ON_DEVICE
Compare kit notes ONLY_IN_CLOUD, queued offline
Write a closing line for the packet PREFER_IN_CLOUD, with an on device version

What goes up shows the content before you approve a cloud model send. On the web, you approve each request. A photo needs its own approval. The web app checks outgoing text for matches to saved renter names and contact details. Remote Config can supply the cloud model lists. Records save on the device without signal. When you turn on sync, eligible records sync to Cloud Firestore when online. Web App Check uses reCAPTCHA Enterprise. Firebase Authentication lets a guest sign in and link a Google account. Firebase Hosting serves the web app.

Features and functionality

  • Kits: parts with a label, how many, an asset tag and the views to take. Editing the parts of a kit makes a new version, so a closed rental keeps the parts it was checked against.
  • Check out and check in: a picture or a typed note per part and view, then confirm the proposed fields and the count.
  • Pair board: the out view and the back view of the same part, with zoom and print on the web.
  • Missing parts: expected, counted out and counted back, worked out by code; a part found later can be marked found.
  • Review marks: each mark seen at return is known, new or still unsure, and only a person's tap changes it.
  • Sign off: staff and renter can draw signatures at checkout and return. Signature drawings stay out of sync.
  • Return packet: preview and print to PDF on the web, or share the packet's text. The packet shows open items.
  • Save a copy: a file of the workspace's records and pictures, for your own backup.
  • History: closed rentals and saved marks by asset tag.
  • Ledger: how many answers came from the device, from the cloud, are waiting, or were refused by checks.
  • Delete my data on the device and, when sync is on and connected, in your account.

Value proposition

A rental return has two people and one kit. Return Witness gives them one record they both saw: what went out, what came back, what is missing, and what nobody is sure about yet.

Built during the submission period

All of Return Witness was built during the submission period; its first commit is 78a1af2 on 23 Nov 2026. It starts from our own shared hybrid kit, written for these entries in the same period, and uses open source libraries under their licences.

Check it

Open https://return-witness.web.app in Chrome, take the tour, choose the starter kit, and start a New rental. Check the kit out, then Check back in with the battery charger not there: Missing parts shows "1 missing".

Testing

See field 4.11.

Built With

  • apple-foundation-models
  • cloud-firestore
  • firebase-ai-logic
  • firebase-app-check
  • firebase-authentication
  • firebase-hosting
  • firebase-remote-config
  • gemini
  • gemini-nano
  • jetpack-compose
  • kotlin
  • playwright
  • preact
  • recaptcha-enterprise
  • swift
  • swiftui
  • typescript
  • vite
  • vitest
Share this project:

Updates

Submission history