๐ Built with Bolt.new - The AI-powered full-stack development platform
Welcome to MemeChef, where chaos meets cuisine and sanity goes to die! This web application uses Gemini 2.5 Pro to create hilariously absurd recipes from your ingredient photos, complete with an animated AI chef narrator.
- Upload images of random ingredients
- Gemini AI analyzes and identifies ingredients (even makes humorous guesses for unclear images)
- Supports drag & drop and file selection
- Creates nonsensical recipes with real cooking terms mixed with absurd instructions
- Includes fake historical backstories
- Formatted with recipe title, backstory, ingredients, and instructions
- Animated emoji-based chef character
- Text-to-speech narration of recipes (supports browser TTS, ElevenLabs, Google Cloud TTS)
- Chaotic personality mixing TikTok energy with Shakespearean drama
- Click to add even more chaos to your recipe
- Replaces ingredients with impossible items
- Adds mystical cooking steps
- Tracks chaos level with visual indicators
- Generates funny captions for social media
- Creates shareable recipe cards as images
- Direct sharing to Twitter, Facebook, Instagram, TikTok
- Download recipe images
- Historical figure ratings (Napoleon, Shakespeare, etc.)
- Unlockable achievements system
- Progress tracking and stats
- Meme badges like "Culinary Clown", "Sauce Sorcerer", "Master of Disaster"
- Frontend: Next.js 15, React 19, TypeScript, Tailwind CSS
- AI: Gemini 2.5 Pro (multimodal image analysis + text generation)
- TTS: Browser Web Speech API, ElevenLabs, Google Cloud TTS
- Image Generation: html2canvas
- Styling: Tailwind CSS with custom animations
- State Management: React useState + localStorage
- Node.js 18+
- npm or yarn
- Gemini API key (required)
-
Clone the repository
git clone <repository-url> cd memechef
-
Install dependencies
npm install
-
Set up environment variables
Copy
.env.localand add your API keys:# Required NEXT_PUBLIC_GEMINI_API_KEY=your_gemini_api_key_here # Optional (for premium features) NEXT_PUBLIC_ELEVENLABS_API_KEY=your_elevenlabs_api_key_here NEXT_PUBLIC_GOOGLE_TTS_API_KEY=your_google_tts_api_key_here
-
Get API Keys
Gemini API (Required):
- Go to Google AI Studio
- Create a new API key
- Add it to your
.env.localfile
ElevenLabs API (Optional - Premium TTS):
- Sign up at ElevenLabs
- Get your API key from the profile section
- Add it to your
.env.localfile
Google Cloud TTS (Optional):
- Set up a Google Cloud project
- Enable Text-to-Speech API
- Create an API key
- Add it to your
.env.localfile
-
Run the development server
npm run dev
-
Open your browser
Navigate to http://localhost:3000
- Upload an Ingredient Photo: Drag and drop or click to upload an image of your ingredients
- Watch the Magic: Gemini AI analyzes your image and generates an absurd recipe
- Listen to Chef Chaos: Click the speaker button to hear your recipe narrated
- Add More Chaos: Click the chaos button to make your recipe even more ridiculous
- Share Your Creation: Generate meme captions and share on social media
- Unlock Achievements: Keep creating recipes to unlock badges and progress
memechef/
โโโ src/
โ โโโ app/
โ โ โโโ page.tsx # Main application page
โ โ โโโ layout.tsx # App layout
โ โ โโโ globals.css # Global styles
โ โโโ components/
โ โ โโโ IngredientUpload.tsx # Image upload component
โ โ โโโ RecipeDisplay.tsx # Recipe display component
โ โ โโโ AiChef.tsx # Animated chef component
โ โ โโโ ChaosButton.tsx # Chaos mutation button
โ โ โโโ ShareRecipe.tsx # Social sharing component
โ โ โโโ Achievements.tsx # Achievement system
โ โโโ services/
โ โโโ geminiService.ts # Gemini AI integration
โ โโโ ttsService.ts # Text-to-speech service
โ โโโ animationService.ts # Animation service (placeholder)
โ โโโ mediaStorageService.ts # Media storage (placeholder)
โโโ public/ # Static assets
โโโ .env.local # Environment variables
โโโ package.json
- Uses Gemini's multimodal capabilities to analyze uploaded images
- Handles unclear images with humorous AI responses
- Returns ingredient lists with confidence levels
- Prompts Gemini to create absurd recipes in a specific comedic style
- Includes fake historical backstories
- Mixes real cooking terms with impossible instructions
- Animated emoji-based chef with different expressions
- Multiple TTS providers for different voice qualities
- Dramatic script generation with emphasis and pauses
- Progressive chaos levels with visual feedback
- Recipe mutation that adds increasingly absurd elements
- Achievement tracking based on chaos usage
- HTML-to-canvas recipe card generation
- Platform-specific sharing integrations
- Meme caption generation for viral potential
Edit src/services/ttsService.ts to add new text-to-speech providers.
Update src/services/geminiService.ts to change how recipes are generated.
Modify the achievements array in src/components/Achievements.tsx.
Update Tailwind classes throughout the components for different visual styles.
"Cannot find module '@google/generative-ai'"
- Run
npm install @google/generative-ai
TTS not working
- Check browser permissions for microphone/audio
- Ensure you're using HTTPS in production
- Try different TTS providers in the service
Images not uploading
- Check file size limits
- Ensure file is a valid image format
- Check browser console for errors
API errors
- Verify your Gemini API key is correct
- Check API quota limits
- Ensure environment variables are properly set
- Chrome 88+ (recommended)
- Firefox 85+
- Safari 14.1+
- Edge 88+
Note: TTS features work best in Chromium-based browsers.
This project is optimized for deployment on Vercel:
-
Deploy to Vercel
npm run build
-
Set Environment Variables
- Add your API keys in the Vercel dashboard
- Ensure all required environment variables are set
-
Deploy
- Push to your Git repository
- Connect to Vercel for automatic deployments
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
This project is licensed under the MIT License.
- Built with Bolt.new - AI-powered full-stack development
- Powered by Google's Gemini 2.5 Pro - Advanced AI capabilities
- Enhanced with ElevenLabs TTS - Premium voice synthesis
- Inspired by the chaos of experimental cooking
- Made with โค๏ธ and a questionable amount of AI-generated absurdity
- Live Demo: MemeChef on Vercel
- Built with: Bolt.new
- Repository: GitHub
Disclaimer: The recipes generated by MemeChef are purely for entertainment purposes. Please do not actually attempt to cook with "tears of joy" or "essence of confusion". The AI chef is not responsible for any culinary disasters that may occur! ๐ฅ๐จโ๐ณ