Skip to content

Preveen369/smart-snap-feast

Repository files navigation

Smart-Snap-Feast: Kitchen Wizard 🍳✨

Platform Frontend Language Styling AI Build License

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.


πŸš€ Core Features

  • πŸ₯˜ 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

πŸ“Έ Screenshots

Below are some screenshots showcasing the EnlightenIt-Hub-App interface:

Home Page

Recipe Card

AI_Chatbot


πŸ› οΈ Tech Stack

  • 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

πŸ“¦ Installation

  1. Clone the repository

    git clone https://github.com/Preveen369/smart-snap-feast.git
    cd smart-snap-feast
  2. Install dependencies

    bun install
    # or
    npm install
  3. Set up environment variables Create a .env file 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.

  4. Start the development server

    bun dev
    # or
    npm run dev
  5. Open your browser Navigate to http://localhost:8080


πŸ§‘β€πŸ’» Usage

  1. Add ingredients β€” Add items from your pantry to the ingredient list.
  2. Set preferences & generate β€” Pick dietary needs, time, difficulty, then generate a personalized recipe.
  3. 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.
  4. Cook interactively β€” Follow step-by-step cooking mode with timers, progress tracking, and actionable tips.
  5. Save & share β€” Save recipes to your collection or share/export via email, socials, or download.

πŸ“ Project Structure

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

πŸ”§ Configuration

The app uses Vite for building and development. Key configuration files:

  • vite.config.ts - Vite configuration
  • tailwind.config.ts - Tailwind CSS configuration
  • tsconfig.json - TypeScript configuration
  • components.json - shadcn/ui configuration

πŸ€– AI Services

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

πŸ› οΈ Development

Available Scripts

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm run preview - Preview production build
  • npm run lint - Run ESLint

Adding New Components

This project uses shadcn/ui for components. To add new components:

npx shadcn-ui@latest add [component-name]

πŸ›« Deployment

The app can be deployed to various platforms:

  • Vercel: Connect your GitHub repo for automatic deployments
  • Netlify: Drag and drop the dist folder after building
  • GitHub Pages: Use GitHub Actions for automated deployment

Build the project:

npm run build

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ™ Acknowledgments


πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ“§ Contact

For queries or suggestions:


🌟 Show Your Support

If you like this project, please consider giving it a ⭐ on GitHub!


Happy Cooking! πŸ‘¨β€πŸ³πŸ‘©β€πŸ³

About

Smart Snap Feast is an AI-powered recipe platform that turns pantry ingredients into personalized meals. Built with React (Vite) and TypeScript, it integrates OpenAI, Gemini, and Chatbase for smart recipe creation, cooking tips, and real-time chatbot assistance with a responsive Tailwind CSS UI design.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages