iOS app ยท Groceries
GreenGlasses
Point your phone at a grocery shelf; it tells you which products are vegan.
Viewport
01 What it does
Take a picture of a shelf at a grocery store and it figures out what's vegan and what's not just from the picture!
02 How it works
I wanted this one for a long time. A raw AI call was way too slow so I've broken that up into pieces, streamed the output, done lookups in the background and got it working pretty smoothly and usefully. There's probably room to make this faster over time but for now, pretty darned time-saving!
03 Built with
- iOS: SwiftUI + AVFoundation for the camera pipeline.
- AI: OpenAI reads the shelf photo; Claude Haiku gives a first opinion on products it hasn't seen.
- State: scan history on the phone; a shared product catalog and "It's vegan" marks on a FastAPI + SQLite server.
Flight log
Stopped showing AI guesses as vegan without a label or a person confirming, and cut shelf scan cost by about 80%.
Added "It's vegan" marks and Vegan / Check / Not vegan tabs to shelf scans, and fixed verdicts being copied between flavors.

