πΆοΈ MasalaAI β When Desi Masalas Meet Global AI π‘ Inspiration My father runs a traditional Indian masala business (π§πΎ). Growing up surrounded by the aroma of turmeric, garam masala, and besan, I realized how powerful and underappreciated Indian spices are in the modern digital world.
I wanted to preserve and empower this knowledge with technology. So I asked myself:
βWhat if we could combine desi spice wisdom with cutting-edge AI?β
And thatβs how MasalaAI was born β a smart, cultural, and fun way to interact with Indian spices using AI-powered recipes and a flavor-friendly interface!
π§ What It Does MasalaAI helps users:
π Add spices and store them in a MongoDB collection
π View available masalas and ingredients
π½οΈ Generate personalized recipes using selected spices and a main ingredient
π Log user queries and spice combinations in a backend analytics system (MongoDB)
Even if the AI is disabled (for security reasons), a fallback recipe generator still gives helpful cooking ideas!
ποΈ How We Built It π§ͺ Stack: Frontend: HTML, Bootstrap
Backend: Python + Flask
Database: MongoDB Atlas
AI (initially): Gemini API (removed for safety)
Environment Variables: .env for secrets
Version Control: Git + GitHub
Editor: VS Code
Features: Easy-to-use interface to add/view spices
Recipe generation using smart prompt logic (fallback recipe now)
Analytics logging to MongoDB for every recipe query
π§ Challenges We Ran Into β οΈ API key got exposed accidentally β learned the hard way to use .env and .gitignore π
π§ Writing the perfect AI prompt for tasty, culturally relevant recipes
β° Time crunch balancing frontend + backend + learning Git commands
π§ͺ Ensuring the app works offline (without Gemini) with a fallback dummy recipe
π Managing secret keys securely under deadline pressure
π Accomplishments That We're Proud Of β Successfully connected Flask backend with MongoDB
π§ Built a working AI recipe engine with prompt design
π Refactored the app to remove sensitive keys and still work smoothly
π Created a project rooted in Indian culture, made global with tech
π§Ή Learned secure coding practices by doing (not just reading)
π What We Learned π How to manage secrets and protect APIs using .env files
π§ Crafting clear and effective prompts for AI generation
π§± Structuring Flask apps with clean routes and MongoDB connections
π Importance of version control and code organization
π§βπ Gained real-world experience in building a full-stack AI-enabled app!
π What's Next for MasalaAI This is just the beginning! With the data we're collecting in MongoDB, the future possibilities are exciting:
π Business Intelligence Dashboard: Create a visual dashboard for business owners (like my father) to see which spices are trending.
π· Spice-Lens Feature: Use computer vision to allow users to take a photo of a spice, and the AI will identify it and suggest recipes.
π§ Personalized Recipe Recommendations: Analyze a user's past requests to suggest new recipes they might love.
Log in or sign up for Devpost to join the conversation.