
System Architecture Flow (v2)
Place
Overview
Food waste is a significant household expense. Users forget about perishables at the back of the fridge, leading to expired items and wasted money. I built a grocery management web app that tracks expiration dates, sends 'use-it-now' alerts, and suggests recipes based on what is about to spoil.
๐ Project Impact
- Sustainability: Directly reduces household carbon footprints by minimising food waste.
- Financial: Saves users an estimated 10-15% on monthly grocery bills.
- Utility: Simplifies meal planning by focusing on 'at-risk' inventory.
๐ฏ Key Learning Outcomes
๐ป Technical Skills Acquired
- Database Management: Designed schemas to handle item categories, entry dates, and expiration logic.
- State Management: Built a responsive UI that updates inventory in real-time.
- Notification Systems: Integrated logic for triggered alerts based on date-math when enabled.
- Voice & Multilingual Input: Integrated Sarvam AI's Speech-to-Text API supporting 10 Indian regional languages (Hindi, Tamil, Telugu, Kannada, Malayalam, Gujarati, Marathi, Bengali, Punjabi, Odia), enabling non-English and non-typing users to interact with the app natively.
- AI Parsing Pipeline: Used Gemini to parse raw voice transcriptions into structured, individual grocery items before saving to the shared fridge.
๐ Product Management Skills
- MVP Prioritisation: Focused on the 'Expiration Tracker' as the core value before adding recipe suggestions.
- User Retention: Designed a 'low-friction' entry method to encourage users to log items consistently.
- Persona Discovery: Identified a missed persona post-launch โ household cooks in India who manage groceries but may not read or type in English. Iterated to serve them through voice-first, multilingual input.
๐๏ธ System Architecture
Original Data Flow: React Frontend (User Input) โ Google AI Studio (Gemini 1.5 Flash) โ Supabase (Postgres) โ Real-time Sync (WebSockets)
Updated Voice Flow (v2): User speaks in any Indian language โ Sarvam STT transcribes audio โ Gemini parses transcription into individual items โ Review sheet for user confirmation โ Supabase saves items with local-language name as primary label + English subtitle
๐ Trade-offs
1. AI-Driven Logic vs. Static Rules
The Decision: Leveraged Google AI Studio (Gemini 1.5 Flash) to predict shelf-life and categorize items.
The Trade-off: While a hard-coded database of 'average expiry days' would have been faster and cheaper to query, an LLM handles natural language input (e.g., 'half a bag of spinach') far better. Prioritised UX and reduced manual data-entry friction over technical cost.
2. Real-time Sync vs. Local Storage
The Decision: Implemented Supabase to handle real-time synchronization between household members.
The Trade-off: Using LocalStorage would have been easier to build, but it would have failed the core User Persona need: a shared source of truth for 4+ roommates. Accepted the complexity of a database to ensure product utility for the entire household.
3. Automated Trigger vs. Manual List Management
The Decision: Designed a trigger where marking an item as 'Finished' automatically populates the shared shopping list.
The Trade-off: Adds complexity to database logic, but identified as a high-impact feature to prevent 'Double-Buying' or 'Forgot-to-Buy' errors โ primary pain points for shared kitchens.
4. Voice Input: Google Web Speech vs. Sarvam AI
The Decision: Used both Google Web Speech (browser-native) and Sarvam AI STT (API-based) to support voice input.
The Trade-off: Google Web Speech is free and fast but has limited support for Indian regional languages. Sarvam AI was purpose-built for Indian languages and handles code-switching and accents far better, but adds API cost and latency. Chose Sarvam for accuracy on the regional language use case, which was the core persona need.
๐ง Technical Challenges & Solutions
Challenge: Manual entry of every grocery item is tedious and leads to churn
Solution: Explored 'Quick-Add' categories and a simple quantity-toggle UI to minimize the number of clicks per item
Last Updated: January 31, 2026