A privacy-focused browser extension that automatically tracks YouTube videos you watch, extracts transcripts, and organizes them with AI-powered summaries. Export to Obsidian for knowledge management.
- 🎥 Auto-track YouTube videos - Automatically captures video metadata and watch time
- 📝 Transcript extraction - Pulls transcripts from all watched videos (with fallback to descriptions)
- 🤖 AI-powered summaries - Configurable providers: OpenAI, Azure OpenAI, Anthropic, Ollama
- 🔐 Encrypted storage - API keys encrypted at rest using Web Crypto API
- 📊 Usage tracking - Monitor token usage and costs across providers
- 📚 Obsidian integration - Export to markdown with rich metadata
- 🔒 Privacy-first - All data stored locally, no cloud sync
- 🌐 Cross-platform - Works on Chrome, Edge, and Firefox
- Node.js v18 or later
- npm (included with Node.js)
# Clone the repo
git clone https://github.com/<your-username>/yait.git
cd yait
# Install dependencies
npm install
# Build for production
npm run buildThis creates a dist/ folder containing the compiled extension.
- Open
edge://extensions/in the address bar. - Enable Developer mode (toggle in the bottom-left corner).
- Click Load unpacked.
- Select the
dist/folder inside this project. - The YAIT icon will appear in your toolbar. Pin it for easy access.
- Open
chrome://extensions/in the address bar. - Enable Developer mode (toggle in the top-right corner).
- Click Load unpacked.
- Select the
dist/folder inside this project. - The YAIT icon will appear in your toolbar. Pin it for easy access.
- Open
about:debugging#/runtime/this-firefoxin the address bar. - Click Load Temporary Add-on…
- Navigate to the
dist/folder and select themanifest.jsonfile. - The YAIT icon will appear in your toolbar.
Note: Firefox temporary add-ons are removed when the browser closes. For permanent installation, the extension would need to be signed via addons.mozilla.org.
- After installing, visit any YouTube video.
- The extension automatically detects the video and extracts metadata and transcripts.
- Click the YAIT icon in the toolbar to see stats and the current video.
- Use the Obsidian button to export the video as a markdown note.
- Configure an AI provider in the Options page to enable AI-powered summaries.
# Run development build with watch mode
npm run dev
# Build for production
npm run build
# Type check
npm run type-checkA launch configuration is included. Press F5 in VS Code to launch Edge with the extension pre-loaded.
src/
├── background/ # Service worker (message handling, DB persistence)
├── content/ # Content scripts (video detection, transcript extraction)
├── options/ # Options/settings page (React)
├── popup/ # Toolbar popup (React)
├── shared/ # Shared code (DB, types, utils, encryption, AI providers)
│ └── services/ # AI provider implementations
└── styles/ # Tailwind CSS
scripts/ # Build utilities (manifest patching, icons)
public/ # Static assets (icons, base manifest)
MIT