Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

# πŸ›’ SnapCartAI > **Paste a recipe video URL β†’ AI extracts ingredients β†’ Adds them to your Swiggy Instamart cart** ## 🎯 What It Does 1. You paste a **YouTube recipe video URL** 2. SnapCartAI **downloads the audio** (via yt-dlp) 3. **Transcribes it** using faster-whisper (open-source Whisper) 4. **Extracts ingredients** using Groq LLM (LLaMA 3.3 70B) 5. **Searches Swiggy Instamart** via MCP and generates cart links ## 🧠 Tech Stack | Component | Technology | |-----------|-----------| | Backend | Python + FastAPI | | Audio Extraction | yt-dlp | | Transcription | faster-whisper (large-v3-turbo) | | LLM | Groq (LLaMA 3.3 70B) | | Cart | Swiggy Instamart MCP | | Frontend | HTML + CSS + Vanilla JS | ## πŸš€ Quick Start ### Prerequisites - Python 3.10+ - FFmpeg (required by yt-dlp for audio extraction) - Groq API Key ([Get one free](https://console.groq.com)) ### Setup ```bash # Clone and enter project cd SnapCartAI # Install dependencies pip install -r backend/requirements.txt # Set your Groq API key # Edit backend/.env and set GROQ_API_KEY=your_key_here # Run the server python -m uvicorn backend.main:app --reload --host 0.0.0.0 --port 8000 ``` ### Open in browser ``` http://localhost:8000 ``` ## πŸ“ Project Structure ``` SnapCartAI/ β”œβ”€β”€ backend/ β”‚ β”œβ”€β”€ main.py # FastAPI app β”‚ β”œβ”€β”€ config.py # Configuration β”‚ β”œβ”€β”€ pipeline.py # Pipeline orchestrator β”‚ β”œβ”€β”€ services/ β”‚ β”‚ β”œβ”€β”€ url_parser.py # URL validation β”‚ β”‚ β”œβ”€β”€ audio_extractor.py # yt-dlp audio β”‚ β”‚ β”œβ”€β”€ transcriber.py # faster-whisper STT β”‚ β”‚ β”œβ”€β”€ ingredient_extractor.py # Groq LLM β”‚ β”‚ └── cart_service.py # Swiggy MCP β”‚ └── requirements.txt β”œβ”€β”€ frontend/ β”‚ β”œβ”€β”€ index.html β”‚ β”œβ”€β”€ style.css β”‚ └── app.js └── README.md ``` # SnapCart-AI

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages