InspirationI ran a supplement store for years. Every week a customer would hold up a bottle and ask "Is this OK with my blood pressure pill?" The honest answer is "ask your pharmacist", but most people never do, because they don't know what to ask. Label Check closes that gap without ever pretending to be a doctor.## What it does- Keep your medications on your phone. Add them once by typing. Suggestions come from a bundled RxNorm drug list searched on the phone, with no network call. The list is stored on the device and never sent anywhere.- Check a supplement three ways: photograph the label, scan its barcode, or type the ingredients.- Get cited flags, not verdicts. Ingredients are matched against a rule table built from NIH Office of Dietary Supplements and NCCIH fact sheets. Each match is an amber card: "Ask your pharmacist about taking with ", with the source's own sentence quoted word for word, a link to the NIH page and the date it was retrieved.- Never says "safe". With no flags, it says "No interactions found in Label Check's list", followed by "This list is not complete. It does not mean this product is safe for you. Ask your pharmacist."- Shows where every AI step ran. Each step is labeled "Read on this phone" or "Read in Google's cloud", taken from the inference source the SDK reports.- Quick check for store staff. A counter mode checks a label against medications the customer names, without saving them on the staff member's phone.## How we built it (the hybrid part)- Firebase AI Logic hybrid inference. On Android, a Kotlin Expo module reads the label photo and runs Gemini Nano on the device. In Chrome, the web build uses Chrome's built-in Gemini Nano through the Firebase JS SDK.- Routing by what the data is, not just where a model exists. Anything containing your medications stays on the device. Only product data (label text or a barcode number) can ever reach the cloud.- The model never decides an interaction. It only turns label text into ingredient names, and any name that does not appear in the label text is dropped. Whether something is flagged is a plain lookup in the cited rule table, so every warning traces back to an NIH sentence.- NIH Dietary Supplement Label Database for barcode lookups, sending only the barcode number.- Firebase App Check on every Firebase call, anonymous Authentication, and Remote Config for the disclaimer text and model settings, with bundled defaults when offline.- Expo, React Native and TypeScript, with medications stored in on-device SQLite.## Challenges- Getting reliable, structured ingredient lists out of a small on-device model without letting it invent ingredients.- Writing warnings that are useful but never cross into medical advice.## What's nextWider ingredient coverage from more NIH fact sheets, and an iOS version.Not medical advice. The interaction list is not complete. Ask your pharmacist.

Built With

Share this project:

Updates

Submission history