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!


