TubeSage is a powerful Obsidian plugin that transforms YouTube videos into comprehensive, structured notes using cutting-edge large language models (LLMs). Extract transcripts, generate intelligent summaries, and create timestamped notes that link directly back to specific moments in videosβperfect for researchers, students, and lifelong learners building knowledge in Obsidian.
- Download the latest release from GitHub
- Extract the zip file into your Obsidian vault's
.obsidian/pluginsfolder - Enable the plugin in Obsidian's Community Plugins settings
- Accept the license terms in the plugin settings
- Configure your API keys for your preferred LLM provider
- Install the Templater plugin for enhanced note formatting
- Obsidian v1.2.0+
- Templater plugin (required for template functionality)
- API key for at least one LLM provider:
- OpenAI (GPT-4, GPT-4o, etc.)
- Anthropic (Claude 3 family)
- Google (Gemini Pro)
- Ollama (local models - free)
- YouTube Data API key (optional - required only for channel/playlist processing)
- Smart Transcript Extraction: Advanced extraction from YouTube videos with multiple fallback methods
- AI-Powered Summarization: Generate structured summaries using state-of-the-art LLMs
- Intelligent Timestamp Links: Automatically add clickable links to video timestamps in section headings
- Cross-Platform Compatibility: Works seamlessly on desktop and mobile Obsidian
- Batch Processing: Process entire YouTube channels and playlists efficiently
- Multi-Provider Support: OpenAI, Anthropic, Google Gemini, and Ollama
- Smart Model Selection: Automatically recommend optimal models based on content complexity
- LangChain Integration: Unified interface across all cloud providers
- Custom Fetch Shim: Cross-platform networking that works on mobile without Node.js dependencies
- Performance Monitoring: Real-time tracking of processing times and bottlenecks
- Mobile Optimized: Full functionality on iOS and Android
- Adaptive Processing: Smart adjustments for mobile platform limitations
- Enhanced Error Recovery: Robust fallback systems for mobile network conditions
- Platform Detection: Automatic optimization based on device capabilities
- Smart Recovery System: Intelligent error handling with automatic retries
- Optimized Chunking: Efficient content processing for large transcripts
- API Quota Management: Intelligent handling of rate limits and quotas
- Performance Metrics: Detailed analytics for optimization suggestions
- Accept the MIT license terms before using the plugin
- View license details using the "View License" button
- Required for plugin activation
Choose and configure your preferred LLM provider:
- Best for: General-purpose summaries, structured content
- Models: GPT-4o (recommended), GPT-4, GPT-3.5-Turbo
- Strengths: Consistent formatting, excellent instruction following
- Best for: Nuanced analysis, complex topics, longer content
- Models: Claude 3 Opus (highest quality), Claude 3 Haiku (speed)
- Strengths: Deep understanding, contextual awareness
- Best for: Factual summaries, technical content
- Models: Gemini Pro
- Strengths: Strong with data analysis, balanced performance
- Best for: Privacy-focused users, offline processing
- Models: Various open-source models (Llama, Mistral, etc.)
- Strengths: Complete privacy, no API costs, works offline
- Requirements: Ollama installed and running locally
- Summary Modes: Fast (brief) vs. Extensive (detailed)
- Timestamp Processing: Enable/disable automatic timestamp link generation
- Performance Monitoring: Track and optimize processing performance
- Batch Processing: Configure sequential vs. parallel processing for collections
- Mobile Optimization: Adaptive settings for mobile devices
- Access Plugin: Click the YouTube icon in the ribbon or use Command Palette
- Enter Video URL: Paste any YouTube video URL
- Configure Options: Choose summary mode and folder location
- Process: Click "Process Video" and wait for completion
- Review: Your structured note will appear in the specified folder
- Setup YouTube API: Configure YouTube Data API key in settings
- Enter Collection URL: Paste channel or playlist URL
- Set Limits: Choose number of videos to process
- Configure Processing: Select sequential or parallel processing
- Monitor Progress: Real-time updates on processing status
- Each section heading includes a "[Watch]" link
- Links jump to the exact moment in the YouTube video
- Perfect for reviewing specific topics or taking detailed notes
TubeSage features a modern, modular architecture designed for scalability and cross-platform compatibility:
- Main Plugin (
main.ts): Central coordinator and UI management - Transcript Extractor (
src/youtube-transcript.ts): Multi-method extraction with mobile fallbacks - LLM Factory (
src/llm/llm-factory.ts): Factory pattern for managing LLM clients - Transcript Summarizer (
src/llm/transcript-summarizer.ts): Orchestrates AI summarization - Timestamp Processor (
src/utils/timestamp-utils.ts): Intelligent timestamp link generation
- LangChain Client (
src/llm/langchain-client.ts): Unified interface for cloud providers - Provider-Specific Clients: Optimized implementations for each LLM provider
- Custom Fetch Shim (
src/utils/fetch-shim.ts): Cross-platform HTTP handling
- Smart Recovery (
src/utils/error-utils.ts): Advanced error handling and retry logic - Performance Monitor (
src/utils/logger.ts): Comprehensive metrics and optimization - YouTube Integration (
src/utils/youtube-utils.ts): Video metadata and batch processing - Cross-Platform Utils: Mobile-aware path handling, form validation, and more
Comprehensive diagrams are available in the /docs directory:
- Workflow Diagram: Complete user and system workflow
- Data Flow Diagram: Data movement through the system
- Convert lecture videos into structured notes
- Extract key concepts with timestamp references
- Build interconnected knowledge graphs in Obsidian
- Process conference talks and webinars
- Create searchable technical documentation
- Build training material libraries
- Transform educational content into study guides
- Create timestamped reference materials
- Build comprehensive course notes
- Research and outline video content
- Extract quotes and references with citations
- Build content libraries for writing projects
- Unified Fetch Implementation: All LLM providers now work seamlessly on mobile
- Improved Mobile Processing: Better handling of iOS/Android limitations
- Enhanced Error Recovery: Smarter retry mechanisms for failed operations
- Smart Model Selection: AI-driven recommendations based on content complexity
- Advanced Performance Monitoring: Real-time metrics and optimization suggestions
- Optimized Batch Processing: Improved handling of channels and playlists
- Better API Quota Management: Intelligent rate limiting and quota tracking
- Enhanced Error Messages: More helpful diagnostics and solution suggestions
- Improved Validation: Better input validation with helpful feedback
- Streamlined Configuration: Simplified setup process for new users
- Better Mobile UI: Optimized interface for mobile Obsidian
TubeSage is designed with privacy in mind:
- Local Processing: Transcripts are processed locally when possible
- Secure API Communication: All external API calls use HTTPS
- No Data Storage: No user data is stored on external servers
- Ollama Support: Complete offline processing with local models
- Open Source: Full transparency with open-source codebase
- Templater: Essential for note formatting (required)
- Iconize: Enhanced note organization with custom icons
- Icon Shortcodes: Support for icon shortcodes in notes
- Disable "Show inline title" for cleaner note appearance
- Disable "Properties view" for better performance with large notes
- Enable "Use tabs" for better navigation of multiple notes
- API Key Errors: Verify API keys are correctly configured in settings
- Mobile Processing Issues: Ensure stable internet connection, consider using Ollama for offline processing
- Timestamp Link Failures: Check video availability and URL format
- Batch Processing Limits: Monitor YouTube API quota usage
- Use appropriate LLM models for content length
- Enable performance monitoring to identify bottlenecks
- Consider local Ollama models for frequent processing
- Adjust chunk sizes for very long videos
This project is licensed under the MIT License - see the LICENSE file for details.
- GitHub Issues: Report bugs and request features
- Documentation: Comprehensive guides in the
/docsdirectory - Community: Share tips and tricks with other users
If TubeSage enhances your learning and research workflow, consider supporting its development:
- β Star the repository on GitHub
- π Report bugs and suggest improvements
- β Buy me a coffee
- Issues Welcome: Bug reports and feature requests are encouraged
- Code Contributions: Please fork the repository for code changes
- Documentation: Help improve guides and examples
GitHub Repository: https://github.com/rmccorkl/TubeSage
Transform your YouTube learning experience with TubeSage - where video content becomes structured knowledge.