Chrome extension that detects spoilers in YouTube comments based on your current watch position.
- Extension reads your current playback position and scrapes visible comments
- Backend fetches the video transcript and embeds it into timestamp-labeled chunks
- ML model matches each comment to a transcript segment to estimate when it references
- Extension hides/blurs comments that reference content you haven't watched yet
| Layer | Tech |
|---|---|
| Chrome Extension | TypeScript, React, Manifest V3 |
| Backend | Python, FastAPI |
| ML | sentence-transformers, PyTorch |
| DB/Cache | Supabase (PostgreSQL) + Redis |
| Hosting | Railway (API) + Hugging Face (model) |
spoilerie/
├── extension/ # Chrome extension
├── backend/ # FastAPI backend + ML inference
└── training/ # Model training pipeline
cd extension
npm install
npm run dev # watch mode
npm run build # production buildcd backend
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
uvicorn api.main:app --reloadcd training
pip install -r requirements.txt
python scripts/collect_data.py
python scripts/train.py