
Smart Recipe Generator: AI-Driven Personalized Meal Creation
✨ Overview
The Smart Recipe Generator is an AI-powered web application that simplifies meal planning by generating personalized recipes based on user-selected ingredients, dietary preferences, and portion sizes. By leveraging the OpenAI API for intelligent recipe generation, text-to-speech (TTS), and DALL·E for image generation, the app provides an intuitive and engaging cooking experience.
💡 Key Features
- AI-Generated Recipes: Personalized recipes created using user-provided ingredients.
- Text-to-Speech (TTS) Integration: Audio playback of recipes using OpenAI API TTS.
- AI-Generated Images: Recipe images generated using OpenAI DALL·E API and stored on AWS S3.
- User Interaction: Like, bookmark, and comment on recipes.
- Ingredient Validation: Ingredients are validated via the OpenAI API before saving.
- Audio & Image Storage: Generated audio files and images are stored in an AWS S3 bucket for easy access.
- Mobile & Desktop Friendly: Responsive UI built with Next.js and Tailwind CSS.
🏗️ Architecture
- Frontend: Next.js, React, Tailwind CSS
- Backend: Node.js, Next.js API routes, OpenAI API (for Recipes, TTS, and DALL·E)
- Database: MongoDB (hosted on MongoDB Atlas)
- Cloud Storage: AWS S3 for storing audio files and images
📊 How It Works
- Select Ingredients → Users pick ingredients from a curated list.
- Generate Recipe → The OpenAI API generates recipes based on selected items.
- Generate Image → DALL·E API creates a unique image for the recipe.
- Play Audio → Recipes can be played using synthesized audio.
- Save & Share → Users can bookmark, like, or share recipes.
🧑💻 Tech Stack
- Frontend: Next.js, React, Tailwind CSS
- Backend: Node.js, OpenAI API (Recipes, TTS, and DALL·E)
- Database: MongoDB Atlas
- Cloud Services: AWS S3 for audio and image storage
🚀 Challenges Solved
- Unified API Integration: Consolidated recipe generation, TTS, and image creation using the OpenAI API.
- Optimized User Experience: Quick recipe generation with audio playback and visually appealing images.
- Scalability: Designed to handle multiple concurrent users with optimized cloud storage.
📁 Repository & Demo
📚 Future Enhancements
- Nutritional Info Integration: Display calories, macros, and micronutrients.
- Recipe Sharing Community: Users can submit their own recipes.
- Enhanced Audio Playback: Add support for different voice options in TTS.