Inspiration
The idea came from a vacation in Qatar. The supermarkets and malls there are huge, and I kept getting lost in them. I'd walk the same aisles over and over looking for one thing, or wander a mall trying to find a single shop. Google Maps was great at getting me to the building, but once I walked through the door, it couldn't help me at all.
I thought there had to be a better way to find things inside a store, especially in a place you've never been. I also didn't want it to depend on the internet for every little question, whether you're a visitor on roaming data or deep inside a building where the signal drops. That's what drew me to Firebase AI Logic's hybrid inference: the phone thinks when it can, and the cloud only helps when you let it.
What it does
Iriin helps you find things once you're inside. You pick your store, or a store inside a mall, and it shows you roughly where that store is in the mall. Then you can type what you're after in your own words, like "something sweet to spread on toast", or just point your camera at the shelf.
The camera reads barcodes and labels right on the phone and puts names on the products it recognises. If you choose to share, what you find, the price and the aisle help the next person who walks into that same store, a bit like how drivers help each other on a navigation app. Anything one person reports is shown as one person's find until someone else confirms it.
How I built it
It's a SwiftUI app on Firebase. The AI runs through a Firebase AI Logic hybrid session, with Apple's on-device model first and Gemini as the backup, and I use it in two places. The first is understanding what people type and turning a loose request into something the app can search for. The second is reading shelf labels: Apple Vision reads the text off the packaging, and when that text doesn't clearly match a product, the text (never the photo) goes to the same hybrid model to work out what it is.
The cloud only gets involved if you turn on online help, which is off by default. Cloud calls go out with an App Check token; they're capped each day, and I can switch them off remotely with Remote Config. If no model can answer, plain keyword search still works. Whatever the AI suggests is checked against real products from Open Food Facts before you see it, so it can't invent a product, and the app always tells you whether an answer came from the phone, from the cloud or from a simple keyword match.
Behind it are Firestore with security rules, anonymous sign-in for sharing, and some TypeScript server code that combines what shoppers report. I built it with Claude Code as my coding partner, and used separate AI agents to review the work for design, testing and security.
Challenges I ran into
The biggest lesson came from taking it into a real supermarket. Barcode scanning worked, but typing a product and finding it on the shelf didn't, because my label matching was far too strict for real packaging. It also asked me to type too much after every find. So I reworked Quick Find: barcodes now scan without pressing anything, the aisle is asked once instead of every time, the camera only highlights things it actually recognises, and labels it can't match go to the AI. That version passes all its tests, but I haven't had the chance to take it back into a store yet.
Shared data was the other hard part. If anyone can post prices and locations, someone will post fake ones, so I spent a lot of time on when one shopper's report can be trusted. It isn't ready for the public yet, and that's what I'm working on next.
Accomplishments that I'm proud of
Watching my iPhone answer a request with Apple's on-device model in Airplane Mode, and then with Gemini once I allowed the cloud, all in the same app. I'm also proud that every privacy setting starts and the app still works if you say no to all of them.
What I learned
Building on-device first changes how you think. The fallbacks, and the small line that tells you how an answer was found, ended up mattering as much as the AI itself. And one trip to a real store taught me more than a week of testing on a simulator.
What's next for Iriin
More testing in real stores, especially big ones like the ones that got me lost in Qatar, then closing the remaining security gaps and running a small invited pilot. I also want to try the AR store maps on a real phone.
The code is open source under Apache-2.0. Build instructions are in the README, and you'll need your own Firebase project since no keys are included.
