Inspiration

My dad's hobby seems to be grocery shopping by how much he loves buying food, but as things keep being added to our fridge, we start forgetting what is inside of it. So I decided to think of a solution, and it came to mind it'd be interesting to have reminders of what ingredients I have in my fridge and recipe ideas that'd be inspired by the ones closer to expiry date.

What it does

This android application allows the user to enter the ingredients they wish to track, whether its by typing out the information or by scanning the item and filling out the remaining text boxes. The application will notify the user when an ingredient is within 3 days of its expiration date. You can have access to AI-Powered recipes through selecting the button "What can I cook?", which will give you a form to fill out with your level of hunger and whether you're more in a sweet or salty mood, and it will then suggest a recipe you can make. You can also share a smarty fridge with your family, through a unique sharing code.

How we built it

We built Smarty as a native Android application using Kotlin, Jetpack Compose, and Material 3. Firebase Authentication handles accounts, while Cloud Firestore stores fridge inventories and manages access to shared fridges.

We integrated Gemini through Firebase AI Logic to suggest recipes based on available ingredients, upcoming expiry dates, hunger level, taste preferences, and servings. When a user confirms they cooked a recipe, a Firestore transaction checks the latest quantities and updates the inventory together, preventing duplicate deductions.

Google Code Scanner and Open Food Facts help users add groceries through barcode scanning. WorkManager schedules background expiry checks and Android notifications.

We collaborated through GitHub branches. We also used ChatGPT/Codex for planning, code generation, debugging, testing, and visual concepts. We integrated and tested the generated code throughout development.

Challenges we ran into

One early challenge was a compatibility mismatch between our Kotlin compiler and Firebase dependencies. We resolved it by selecting a compatible Firebase release.

Connecting the AI also required configuring Firebase App Check and registering our development devices. Another major challenge was moving from individual inventories to shared fridges while preserving existing data and restricting access to members.

We also needed to handle real-world edge cases: unknown barcodes, missing product information, and inventory quantities changing after a recipe was generated.

Accomplishments that we're proud of

We connected grocery tracking, shared inventories, expiry reminders, and personalized recipe suggestions into one working application.

We are especially proud that confirming a recipe updates the fridge automatically, and that multiple users can see changes to their shared inventory. We also tested access rules and concurrent inventory updates using the Firestore emulator.

What we learned

We learned how to combine Android development, cloud authentication, real-time data, background work, and generative AI in one project.

We learned that AI responses need validation before they affect real data. Recipe suggestions alone cannot be trusted to update stock: our code must check ingredient IDs, units, and available quantities.

Working together also reinforced the importance of Git branches, clear responsibilities, and testing complete user journeys rather than only individual features.

What's next for Smarty

Our next priority is refining the interface with clearer navigation, friendly food illustrations, and a more useful “Use soon” section.

We would also like to add configurable reminder windows, shared-fridge membership management, and consumed-versus-discarded tracking. Future recipe improvements could include dietary preferences and ingredient substitutions.

We want to keep making Smarty easier to use while helping people make the most of the food they already have.

Built With

  • android
  • cloud-firestore
  • firebase
  • firebase-ai-logic
  • firebase-authentication
  • gemini
  • git
  • google-code-scanner
  • jetpack-compose
  • kotlin
  • material-design
  • open-food-facts
  • workmanager
Share this project:

Updates

Submission history