Folders and files Β
Β
Β
Β
Β
Β
View all files
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
You canβt perform that action at this time.