Judging criteria at a glance
Chalk Ticket is a hybrid AI app for alteration tailors, built with Firebase AI Logic. On supported devices, Gemini Nano reads fitting notes in Chrome and on Android, and Apple Foundation Models read them on iPhone. When allowed, Gemini models can read notes in the cloud and give a second reading.
Technological Implementation: "How well is the project built, and how effectively does it use Firebase AI Logic hybrid inference as part of the solution?" Chalk Ticket turns a fitting note into a checked job ticket. In the release app, model calls go through Firebase AI Logic. A ready device model reads in small parts. The app uses PREFER_ON_DEVICE when cloud reading is allowed and keeps the read on the device when the cloud is off or the tailor keeps the words here. With approval, the app can send the whole note ONLY_IN_CLOUD or use the cloud after a device read fails. On the web, the tailor can choose the cloud for a note.
After the tailor confirms the lines, the optional second reader runs ONLY_IN_CLOUD. It tries a different model first and labels a repeat using the same model. Approval can show a result or that the reading is still waiting. Price list import runs ONLY_IN_CLOUD. The Spanish or French customer copy runs PREFER_IN_CLOUD and can use a ready device model when cloud reading is off, declined or unavailable.
Web and Android use the SDK's inferenceSource, and iPhone uses modelVersion, to label the source. Review shows "Source not reported" for an unknown source. Code checks proposed lines against the note, drops duplicates and lists dropped lines with a reason. App Check is set up for Firebase AI Logic. On 17 Nov, project checks returned HTTP 401 without App Check and HTTP 200 with App Check on two models. The app can sign in as a guest, keep tickets on the device without signal and sync them to Firestore. Remote Config sets the cloud model lists.
Proof: 41 of 41 Firestore rules tests pass, and 33 of them fail against a rules file that allows everything. 931 web and shared logic, 904 Android app, 324 Android kit and 99 browser tests pass, with 0 failed.
Design: "Does the project deliver a complete, coherent product experience, not just a technical proof of concept?" It is a full shop tool. A work queue, a ticket for each garment, a note for each fitting, a review screen with each line beside the words it came from, a compare view between fittings, an approval sheet, a printed ticket, prices, pickup, history, customers and settings. Pins flag problems and give the tailor choices. Approval offers a held press or a separate confirmation. On 27 Nov we followed the judge walk on desktop and passed all 9 steps. The first answer took 5.6 seconds. The run had 0 console errors. The phone run checked layout only.
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?" A wrong cut cannot be undone. In a New Zealand Disputes Tribunal case, a shop cut 6 cm off a new kilt while hemming it. The tribunal found "it was the shop's responsibility to make it clear that the hem would be cut", and ordered the shop to pay NZ$182.50 ([2018] NZDT 1481, 2 August 2018). Fewer hands do the work: the Associated Press, citing the U.S. Bureau of Labor Statistics, reported "fewer than 17,000 tailors, custom sewers and dressmakers working in business establishments nationwide", "a 30% decline from a decade earlier" (Associated Press via WTOP, 6 April 2026). Chalk Ticket asks whether to cut or turn up the cloth before approving a measured shortening change. It flags when the same measurement used a different unit in an earlier fitting. A ticket of 60 lines prints every line on 80 mm shop paper, A6, A5 and Letter. We ran it on the kilt case above, as a skirt with the note "Shorten hem 6 cm.". The device model first read it as a leg hem, and the app flagged "Skirts have no leg hem. Check this line." After that fix, Approve would not go on until the shop chose: "Choose Cut or Turn up for the hem."
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?" Here the device is first because the note is written at the fitting, where signal is weak and a mistake costs the most. The cloud offers a second reading. The model proposes lines from the note. Code checks the source words, handles units and sides, keeps fittings in order and calculates sums. It keeps a new total apart from an added change. The tailor decides what to cut.
In short
Chalk Ticket is for alteration tailors. Type a fitting note. A ready device model can read it, or you can allow the cloud. Review shows proposed lines beside your words and marks problems such as a missing unit, a missing side or a change of unit. Choose cut or turn up when you approve a measured shortening change, then print the ticket.
How we used Firebase AI Logic
The release app sends model calls through Firebase AI Logic.
| Feature | Web (Chrome) | Android | iPhone |
|---|---|---|---|
| Read the note in small parts | PREFER_ON_DEVICE, device only if cloud reading is off for the note | PREFER_ON_DEVICE, device only if cloud reading is off for the note | PREFER_ON_DEVICE, device only if cloud reading is off for the note |
| Read the whole note in the cloud with approval | ONLY_IN_CLOUD | ONLY_IN_CLOUD | ONLY_IN_CLOUD |
| Second reader | ONLY_IN_CLOUD | ONLY_IN_CLOUD | ONLY_IN_CLOUD |
| Price list import | ONLY_IN_CLOUD | ONLY_IN_CLOUD | ONLY_IN_CLOUD |
| Customer copy in Spanish or French | PREFER_IN_CLOUD, or ONLY_ON_DEVICE with "Device model only" or the cloud off | PREFER_IN_CLOUD, or ONLY_ON_DEVICE with "Device model only" or the cloud off | PREFER_IN_CLOUD, or ONLY_ON_DEVICE with "Device model only" or the cloud off |
On the web the device model is Gemini Nano in Chrome. On Android it is Gemini Nano through Firebase AI Logic. On iPhone it is Apple Foundation Models. Remote Config sets the order by feature. On 17 Nov 2026 the recorded daily free limits were gemini-3.5-flash-lite (500), gemini-4-hydrogen (20) and gemini-3.8-flash (20).
Features and functionality
- A three card start and your unit, cm or in.
- Model: what this device can read by itself.
- Queue: tickets to read, approve, sew and pick up.
- A ticket for each garment, a fitting for each visit, and the note.
- Review lines: proposed lines beside their source words, source labels, pins to answer, and a list of dropped lines.
- Compare: what changed, what is new, what carried over and what was dropped between fittings.
- Approve: choose cut or turn up for a measured shortening change. See the second reading or its status, then hold or confirm.
- The printed ticket, and a customer copy in Spanish or French.
- Prices, pickup, history and customers.
- More: the ledger of which side answered, the model, settings, Privacy, and Delete my data.
Gallery pictures 1 to 5 show the review, the cut choice, the printed ticket, a new fitting and compare. The film shows the second reader at 0:35, the held press approval at 0:52 and compare at 1:35.
Value proposition
A wrong cut can cost a garment. A tailor can enter notes and work by hand without signal, or read notes with a ready device model. The review lets the tailor check the instructions before cutting.
Built during the submission period
All of Chalk Ticket was written during the contest, starting 17 Nov 2026. It uses a shared Firebase integration kit (web/kit, android/kit, ios/Kit) that we wrote for our entries in the same period. Open source libraries and their licences are listed in NOTICE.
Check it
Each link opens the exact place in the code.
- Web: the one file that imports firebase/ai, where each model is built and where the side that answered is read from inferenceSource
- Web: the read features and their modes
- Android: where the model is built, inferenceSource and the modes
- iPhone: the device model with the cloud behind it and the read features
- The check on every line
- Receipts
Honest notes
- The tailor reviews the proposed lines before approving work.
- A customer copy made by a model should be read before it is handed over.
- The cloud setup lists 196 countries: the Gemini API regions outside the EEA, Switzerland and the UK. The app is for shop owners aged 18 or over. Where cloud reading is off, use the device model if ready or add lines by hand.
- Cloud models can be busy. The 17 Nov checks recorded three HTTP 503 responses from one model. The app can try the next configured model. When a web cloud check fails, it says: "The cloud check did not pass in this browser. Try another browser."
- Android needs Gemini Nano ready on this device for device reads. A device without Gemini Nano can use the cloud when available and approved, or add lines by hand.
- The privacy policy is at /privacy on the site and behind Privacy on More.
Testing
The steps are in docs/JUDGES.md in the repo (see 4.11).
Built With
- apple-foundation-models
- cloud-firestore
- firebase
- firebase-ai-logic
- firebase-app-check
- firebase-authentication
- firebase-hosting
- firebase-remote-config
- gemini
- gemini-nano
- jetpack-compose
- kotlin
- preact
- swift
- swiftui
- typescript