Smart-Snap-Feast is an AI-powered recipe generator that transforms your pantry ingredients into delicious, personalized meals. With a modern React-based UI, seamless AI integration, and a responsive design, it offers an interactive cooking experience tailored to your dietary preferences and cooking style.
- 🥘 Smart Ingredient Management: Add and manage pantry ingredients with intuitive input interface
- 🤖 AI Recipe Generation: Multi-AI powered recipe creation using OpenAI & Google Gemini
- 👨🍳 Interactive Cooking Mode: Step-by-step guidance with progress tracking and real-time tips
- 🎯 Advanced Tip System: Professional secrets, common mistake prevention, and flavor pairing advice
- 🍽️ Dietary Customization: Support for vegetarian, vegan, gluten-free, keto, and custom preferences
- 📱 Recipe Management: Save, share via email/social media, and export recipes as text files
- 🎨 Modern UI/UX: Responsive React interface with Tailwind CSS and shadcn/ui components
- 🛡️ Robust Error Handling: AI error boundaries and graceful fallback mechanisms
- 💬 AI Chatbot Integration: Embedded cooking assistant via Chatbase for instant help
- 🔧 TypeScript Integration: Type-safe development with comprehensive error validation
Below are some screenshots showcasing the EnlightenIt-Hub-App interface:
- Frontend: React 18 with TypeScript
- Build Tool: Vite
- Styling: Tailwind CSS + shadcn/ui components
- AI Integration: OpenAI & Google Gemini APIs
- AI Chatbot: Chatbase Agent
- State Management: React Hooks
- Package Manager: Bun
-
Clone the repository
git clone https://github.com/Preveen369/smart-snap-feast.git cd smart-snap-feast -
Install dependencies
bun install # or npm install -
Set up environment variables Create a
.envfile in the root directory:VITE_OPENAI_API_KEY=your_openai_api_key_here VITE_GEMINI_API_KEY=your_gemini_api_key_here VITE_CHATBASE_API_KEY=your_chatbase_api_key_here NODE_ENV=development
Note: OpenAI API key is required for recipe generation. Gemini API key is optional for enhanced features. Chatbase API key is required for the AI chatbot integration.
-
Start the development server
bun dev # or npm run dev -
Open your browser Navigate to
http://localhost:8080
- Add ingredients — Add items from your pantry to the ingredient list.
- Set preferences & generate — Pick dietary needs, time, difficulty, then generate a personalized recipe.
- Get smart tips & assistant — Open Smart Cooking Tips for adaptive, recipe-specific guidance and use the Kitchen Wizard (Chatbase) chatbot for substitutions, nutrition info, troubleshooting, or step clarifications.
- Cook interactively — Follow step-by-step cooking mode with timers, progress tracking, and actionable tips.
- Save & share — Save recipes to your collection or share/export via email, socials, or download.
smart-snap-feast/
├── public/ # Static assets (icons, images)
├── src/
│ ├── components/ # UI components (IngredientScanner, RecipeGenerator, TipPersonalizationPanel, ui)
│ ├── services/ # AI integrations & orchestration (openai, gemini, chatbase, ai)
│ ├── hooks/ # Custom hooks (useLocalStorage, useToast, etc.)
│ ├── pages/ # Page-level components (Index)
│ └── main.tsx # App entry
├── training-knowledge-base/ # Chatbot training documents
├── vite.config.ts
├── package.json
└── README.md
The app uses Vite for building and development. Key configuration files:
vite.config.ts- Vite configurationtailwind.config.ts- Tailwind CSS configurationtsconfig.json- TypeScript configurationcomponents.json- shadcn/ui configuration
This application integrates with multiple AI services:
- OpenAI: For advanced recipe generation, cooking tips, and natural language processing
- Google Gemini: For recipe image generation and enhanced cooking suggestions
- Chatbase: For the embedded Kitchen Wizard chatbot — conversational assistance for ingredient substitutions, nutrition guidance, troubleshooting, and real‑time help
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production buildnpm run lint- Run ESLint
This project uses shadcn/ui for components. To add new components:
npx shadcn-ui@latest add [component-name]The app can be deployed to various platforms:
- Vercel: Connect your GitHub repo for automatic deployments
- Netlify: Drag and drop the
distfolder after building - GitHub Pages: Use GitHub Actions for automated deployment
Build the project:
npm run build- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- shadcn/ui for the beautiful UI components
- OpenAI for powerful AI capabilities
- Google Gemini for advanced AI features
- Vite for the blazing fast build tool
This project is licensed under the MIT License - see the LICENSE file for details.
For queries or suggestions:
- 📩 Email: spreveen123@gmail.com
- 🌐 LinkedIn: www.linkedin.com/in/preveen-s-17250529b/
If you like this project, please consider giving it a ⭐ on GitHub!


