A Wine App
A personal sommelier that lives on the phone, not in the cloud.
A wine app for iOS and Android that inverts the usual architecture: the intelligence — taste profiling, recommendations, scanning a restaurant wine list and picking the bottle — runs on-device. The backend stays deliberately thin: it syncs user state and ships a static catalog, and the heavy lifting (scraping shops, enriching data) happens in batch on local hardware. The interesting bet: modern phones are smart enough that the cloud-brain + dumb-client split is optional.
- Training-images table for labeling uploads
- Shared API key removed; sessions required everywhere
- One bottle door: live label scan replaces old path
- Firestore nearest-neighbour scan answers in 160 ms
- App ships as 1.0, matching the store listing
- WineCore holds the single wine brain
- StoreKit annual subscription with free trial
- Offline xwines catalog and faster scanning
- The macro lens was reading my wine labels
What I found. On a recent iPhone the multi-lens camera was sending 68% of scan frames from the ultra-wide — the macro lens — softer and…
- The paywall shows up when you try the paid thing
Decision. Every standing upsell card for the paid tier came off the home screen, the taste page, the lenses and the journeys list. The…
- One door for the bottle scan
Decision. A bottle is read by one path: the live finder, on device. The old nine-step cascade, its preview screen and the server's…
- The palate decides, the name is only a nudge
Decision. In the wine app's matching engine the measured palate — six taste axes, each with an evidence count — is now the largest term by…
- A partial eval run reads exactly like a result
What I learned. Count the failure lines before you believe a benchmark number. My wine-list scan evaluation scores 35 graded lists. Run on…
- Say where the text goes at the moment it leaves
What I learned. When a person's content may leave the phone to be processed by a cloud model, the honest place to say so is one sentence on…
- A model row has to be on the page
Decision. When the language model returns a wine that no geometric row pairs with, that wine is shown only if its name — whole, or either…
- I deleted the privacy feature instead of moving it
The app had a page listing everything you had contributed to the shared catalogue, with a button to withdraw any of it. Proper…
- A label fingerprint does not answer a first scan
What I found. Matching a bottle label by image fingerprint does not identify a wine the first time you scan it. Seven still photos, the…
- A row in doubt is hidden, never deleted
Decision. When the catalogue pipeline is unsure about a wine row — an impossible bottle size, two sizes claimed by the same shop page, a…
- The cache told me the fix hadn't worked
I stripped the camera metadata out of 373 stored images and rewrote each one in place. Then I checked the result: 194 still had it. They…
- Missing data scored zero, so the ranking measured our own pipeline
A tester wrote that picking a food didn't change the wine. The unit tests passed — they score a hand-built wine that is obviously right…
- The engine had already decided — the screen ignored it
Pulled on the scan flow in A Wine App — the part where you photograph a restaurant list and it ranks the bottles for your taste. Found…
- Your cellar count is the hero, not a stat
The redesigned Cellar card in A Wine App makes one quiet bet: the size of your collection is the design. The bottle count is set as a…
- The Pulse: one tile that tells you what the app knows about you
The new fourth card in A Wine App, the Pulse, folds the learning loop into one adaptive tile. It shows one read of your palate: a…
- I cut the wine app's home from eleven surfaces to four
Decision. A Wine App's home screen was an eleven-surface feed — sommelier picks, deals, hidden gems, a weekly card, a quick-action rail,…
- Free models first, paid model last — as a pipeline law
Decision. Catalog enrichment is a strict cascade, and each phase may only fill the NULLs the previous one left: inherit from the producer's…
- Ask the model twice; ship only what it agrees with itself on
I batch-enrich a 100k+ bottling wine catalog with Claude Sonnet — style scores, identity backfill, storage potential. The safety mechanism…
- Decision: the heavy AI jobs live on a Mac Mini, not in the cloud
Decision. For my wine app, all heavy batch work — ingesting catalog data from a dozen shops, deduplicating a 100k+ bottling catalog (a full…
- NULL beats a plausible guess
What I learned. When an AI-extracted field can't be grounded in the source text, NULL beats a plausible guess. Where it bit me: the batch…
- On-device AI is free per call — that's the trap
What I learned. On-device LLM calls cost $0 per call — so nothing in my stack ever flagged that I was making way too many of them. Why it…