Turn YouTube videos and Shorts into interactive, promptable knowledge. Paste a YouTube URL, ask a question, and receive AI-generated responses grounded entirely in the video's transcript through a retro-futuristic signal console interface.
Live Demo ⢠API Docs ⢠Report Bug
DexterLens is a full-stack AI application that transforms YouTube videos into interactive, promptable knowledge.
Instead of searching through an entire video manually, simply paste a YouTube video (or Shorts) URL, provide an optional prompt, and DexterLens will retrieve the transcript, combine it with your request, and generate responses grounded entirely in the video's content.
The application uses the Supadata API for transcript retrieval and Groq's Llama 3.3 models for AI-powered responses.
A short demo GIF will be added in a future release.
- Transcript retrieval using the Supadata API
- Support for YouTube videos and Shorts
- AI-powered summaries and custom prompts
- Transcript-grounded responses
- Markdown-formatted output
- One-click copy and PDF export
- Responsive retro-futuristic signal console interface
- Fully typed FastAPI backend using Pydantic
- Production deployment on Vercel and Render
| Layer | Technology |
|---|---|
| Frontend | Next.js 15, React, TypeScript |
| Styling | Tailwind CSS |
| Backend | FastAPI, Python |
| Transcript API | Supadata |
| AI | Groq (Llama 3.3) |
| Deployment | Vercel, Render |
Click to expand ā request flow and system diagram
User Input
ā
ā¼
Next.js Frontend
ā
ā¼
FastAPI Backend
ā
ā¼
Supadata API
ā
ā¼
Prompt Construction
ā
ā¼
Groq Llama API
ā
ā¼
Generated Response
ā
ā¼
Frontend Console
- User submits a YouTube video or Shorts URL along with an optional prompt.
- The frontend sends a
POST /generaterequest. - The backend extracts the video ID.
- The transcript is retrieved from the Supadata API.
- The transcript and prompt are combined into a single context.
- The request is sent to Groq's OpenAI-compatible API.
- The generated response is returned to the frontend and rendered inside the output panel.
Click to expand ā repository layout
dexter-lens/
ā
āāā backend/
ā āāā app/
ā ā āāā api/
ā ā āāā schemas/
ā ā āāā services/
ā ā ā āāā youtube.py
ā ā ā āāā llm.py
ā ā āāā main.py
ā ā
ā āāā requirements.txt
ā āāā .env.example
ā
āāā frontend/
ā āāā app/
ā āāā components/
ā āāā lib/
ā āāā public/
ā āāā .env.local.example
ā
āāā docs/
ā āāā screenshots/
ā
āāā README.md
Click to expand ā backend setup
cd backend py -3.12 -m venv venv source venv/Scripts/activate
pip install -r requirements.txt
copy .env.example .env
SUPADATA_API_KEY=your_supadata_api_key GROQ_API_KEY=your_groq_api_key GROQ_MODEL=llama-3.3-70b-versatile FRONTEND_ORIGIN=http://localhost:3000
uvicorn app.main:app --reload
Backend
http://localhost:8000
API Documentation
http://localhost:8000/docs
Click to expand ā frontend setup
cd frontend
npm installcopy .env.local.example .env.local
NEXT_PUBLIC_API_BASE_URL=http://localhost:8000
npm run dev
Frontend
http://localhost:3000
DexterLens is deployed as a split full-stack application.
| Service | Platform |
|---|---|
| Frontend | Vercel |
| Backend | Render |
| Transcript API | Supadata |
| AI Model | Groq |
Planned improvements for future releases include:
- Navigation bar and footer
- Video metadata preview
- Response statistics
- Multiple console themes
- Saved conversations
- Semantic transcript search
- Study mode
- Quiz generation
- Timestamp-aware responses
- Progressive Web App (PWA)
DexterLens was built using an AI-assisted development workflow ("vibe coding") combined with manual engineering, debugging, deployment, and architectural decisions.
Some of the challenges solved during development include:
- Migrating from
youtube-transcript-apito Supadata due to cloud IP restrictions - Integrating Groq's OpenAI-compatible API
- Handling CORS between Vercel and Render
- Prompt construction and transcript grounding
- Responsive terminal-inspired interface design
- Production deployment across multiple platforms
Contributions, bug reports, feature requests, and documentation improvements are always welcome.
If you'd like to contribute:
- Fork the repository
- Create a feature branch
- Commit your changes
- Open a Pull Request
Small, focused contributions are the easiest to review and merge.
This project is licensed under the MIT License.
