🚀 Try Live Demo 💻 View on GitHub
EasyCook AI is an AI-powered recipe extraction system that transforms YouTube cooking videos into structured, timestamped recipes. Using Google’s Gemini API, it intelligently parses video content and syncs extracted recipe segments with the video timeline, creating an interactive hands-free cooking experience.
YouTube is full of cooking tutorials, but extracting structured recipes from video is manual and tedious. Viewers have to pause, take notes, or watch repeatedly to gather ingredients and instructions. EasyCook AI automates this process entirely, delivering a clean, timestamped recipe synced perfectly with the video.
The system extracts:
Voice command support (in browsers with Web Speech API) lets users navigate the recipe without touching the screen:
"play" / "continue" — Resume video"next" — Skip to next ingredient or stepAll forms of a YouTube URL collapse to the same cache key. Whether the user provides:
youtube.com/watch?v=IDyoutu.be/IDyoutube.com/shorts/ID…the system recognizes the same video and reuses the cached extraction. This saves API quota and provides instant results for popular recipes.
Cache uses atomic file operations and exclusive locks (flock), so concurrent requests from multiple workers cannot corrupt data—essential for shared-hosting environments like cPanel.
POST /extract-recipe
Content-Type: application/json
{
"youtube_url": "https://www.youtube.com/watch?v=...",
"force": false
}
Response:
{
"status": "ok",
"segments": 12,
"recipe": [...timestamped segments...],
"cached": true,
"video_id": "dQw4w9WgXcQ"
}
GET /cache → list all cached videos
GET /cache/<video_id> → fetch specific recipe
DELETE /cache/<video_id> → clear one entry
GET /health → cache status & availability
EasyCook AI is deployed as a single Docker container on a DigitalOcean droplet. This provides:
git pull && docker compose up -d --buildgit clone https://github.com/mathewvarghesemanu/recipe_app && cd recipe_app
echo "GEMINI_API_KEY=your-key-here" > .env
docker compose up -d --build
curl localhost:5001/health
Cooking videos are abundant but fragmented. Viewers waste time searching for the ingredient list or rewinding to find measurements. EasyCook AI bridges this gap by automating the extraction and indexing that chefs and food bloggers do manually. The result is a faster, more accessible cooking experience that respects both video creators and their audience.