You open the fridge to find three random vegetables, half a block of tofu, and no plan. Instead of ordering takeout, you enter those ingredients into a simple interface and receive a complete recipe, wine pairings, and a realistic image of the finished dish. This is What to Eat.
Smart Recipe Generation Input your available pantry items and preferred cuisine, and the AI builds a full recipe. It eliminates the frustration of staring blankly at your kitchen shelves.
Nutrition Analysis Every dish includes a detailed nutritional breakdown and a health score, helping you keep track of exactly what you are consuming.
AI Imagery Generate a photo of the meal with a single click. See how the dish should look before you even begin prep.
Wine Pairing The system acts as a digital sommelier, suggesting a specific drink to complement the flavors of your meal.
Sauce Design Create custom signature sauces or dressings to give any dish a professional, personal touch.
Collection Save your favorite recipes to a personal library that is easy to search, sort, and reuse.
Kitchen Fortune A playful addition to your routine. Get a daily culinary fortune for a bit of extra fun while you cook.
Ready to try it out or tinker with the code? This project is open-source and ready for local setup.
Node.js 18 or newer.
git clone https://github.com/liu-ziting/what-to-eat.git and then cd what-to-eat.npm install to install dependencies.cp .env.example .env. Open .env and add your AI API keys.npm run dev to view and debug the app locally.npm run build for type checking and production bundling.npm run build:netlify.npm run preview to test the production build locally.What to Eat supports one-click deployment on Vercel and Netlify. Simply click the "Deploy" button and follow the prompts.
The application is compatible with OpenAI-style endpoints. Configure these in your .env file:
# Text generation (Lingyiwanwu)
VITE_TEXT_GENERATION_BASE_URL=https://api.lingyiwanwu.com/v1/
VITE_TEXT_GENERATION_API_KEY=your_text_api_key_here
VITE_TEXT_GENERATION_MODEL=yi-lightning
# Image generation (Zhipu AI)
VITE_IMAGE_GENERATION_BASE_URL=https://open.bigmodel.cn/api/paas/v4/
VITE_IMAGE_GENERATION_API_KEY=your_image_api_key_here
VITE_IMAGE_GENERATION_MODEL=cogview-3-flash
You can substitute these with any provider that follows the standard OpenAI specification.
src/config/cuisines.ts.src/views/.src/router/.src/services/aiService.ts.src/services/imageService.ts.
ReCode: Recursive Code Generation for LLM Agents
NOF0 Open Source AI Trading Arena Puts Crypto Models Head to Head
Fast RAG: Deploy a Private Hybrid Search RAG Stack Locally
PromptEnhancer: Rewrite Any Prompt for Stunning AI Images
HackGPT Enterprise Review: AI-Native Pentesting for Security Teams
Embedding Atlas: Interactive Visualization for Large-Scale Embeddings
AoxVPN 8.8 Member Day Sale | No-Log VPN Featuring IEPL Private Lines
Grok CLI: AI-Powered Terminal Assistant for Files and Bash Commands
Claude Code for Windows: Run Natively Without WSL or Docker
Dots.LLM1: 142B MoE Model Trained on 11.2T Real-World Tokens
Weapp-QRCode: Generating QR Codes in WeChat Mini Programs
MusicFree: A Modular Open-Source Music Player for Android and HarmonyOS