AI Powered YouTube Content Creator using Chrome's Built-in AI
KeyTube is a Chrome extension that leverages Chrome's built-in AI models (Gemini Nano) to help content creators generate YouTube ready titles, scripts, descriptions, and tags from any web content. Built for the Google Chrome Built-in AI Challenge, it showcases the power of local AI processing with privacy-first design.
- Prompt API: Powered by Chrome's Gemini Nano for local content generation
- Translator API: Real time translation using Chrome's built-in translation models
- Streaming Generation: Real time text generation with visual feedback
- Privacy First: All AI processing happens locally on your device
- Research Mode: Auto extract content from selected text or webpage
- Manual Mode: Direct input for custom content creation
- Smart Titles: Generate 3 catchy YouTube titles (optimized for <65 characters)
- Engaging Scripts: Full video scripts with hooks, main points, and CTAs
- SEO Descriptions: YouTube optimized descriptions with social media placeholders
- Keyword Tags: AI extracted relevant tags for better discoverability
- Live Speech-to-Text: Record and transcribe audio in real time using Web Speech API
- Simple Permission Handling: Clear confirmation dialogs before requesting microphone access
- Multiple Sessions: Record multiple audio clips in sequence (2 minute limit each)
- Smart Deletion: Remove only the latest transcription with precision
- 5 Languages: Hindi, Spanish, French, Japanese, Portuguese
- Smart Translation: Maintains tone and effectiveness across languages
- Fallback Handling: Intelligent PDF export with translation notices
- PDF Generation: Professional PDFs with jsPDF integration
- TXT Export: Formatted text files preserving emojis and markdown
- Individual Copy: Section-by-section copying with visual feedback
- Regeneration: Refresh any section for new variations
- Responsive Design: Sidepanel interface that adapts to all screen sizes
- Theme Support: Dark/light themes with system preference detection
- Smooth Animations: Professional UI with real time feedback
- Accessibility: Keyboard navigation and screen reader support
- 5000 Character Limit: YouTube policy compliance for descriptions
- Clean Formatting: Removes problematic markdown and special characters
- Scroll Navigation: Smart navigation highlighting based on scroll position
- Translation Loading: Visual feedback during translation processes
-
Download the extension
git clone https://github.com/sauruvibes/KeyTube.git cd KeyTube -
Load in Chrome
- Open Chrome and go to
chrome://extensions/ - Enable "Developer mode" (toggle in top right)
- Click "Load unpacked" and select the KeyTube folder
- Open Chrome and go to
-
Start creating!
- Pin the extension to your toolbar
- Highlight text on any webpage
- Click the extension icon
- Highlight text on any webpage
- Click the KeyTube icon (opens sidepanel directly)
- Review the auto filled content
- Click "Generate Content" to create your YouTube content
- Copy, regenerate, or download as PDF
- Click the KeyTube icon
- Switch to "Manual Mode"
- Type your video idea or use speech-to-text (microphone button)
- For microphone: Click extension icon β "View web permissions" β Enable "Microphone"
- Generate your YouTube content
- Edit any generated content in the textareas
- Click Regenerate button
- Custom content gets intelligently merged with AI generated content
KeyTube/
βββ manifest.json # Chrome extension manifest (MV3)
βββ background.js # Service worker & context menu
βββ content-script.js # Page content extraction
βββ popup.html # Popup interface
βββ popup.js # Popup logic & AI integration
βββ popup.css # Popup styling
βββ sidepanel.html # Side panel interface
βββ sidepanel.js # Side panel logic
βββ sidepanel.css # Side panel styling
βββ icons/ # Extension icons (16px, 48px, 128px)
βββ vendor/ # Third party libraries (jsPDF)
βββ docs/ # Documentation
- Chrome browser (latest version)
- Chrome Built-in AI features enabled
- Basic knowledge of Chrome extensions
- Clone the repository
- Open Chrome Extensions page (
chrome://extensions/) - Enable Developer mode
- Load the extension as unpacked
- Background Script: Handles context menu, AI calls, and messaging
- Content Script: Extracts text from web pages
- Popup/Sidepanel: Main user interface
- AI Integration: Chrome's built-in AI API integration
KeyTube leverages Chrome's built-in AI APIs for local, privacy first content generation:
// Initialize Chrome's Language Model (Gemini Nano)
async function ensureLanguageModelSession() {
if (!('LanguageModel' in self)) {
throw new Error('Built-in AI not available in this Chrome version.');
}
const availability = await LanguageModel.availability(lmOptions);
if (availability === 'unavailable') {
throw new Error('Model unavailable on this device.');
}
return await LanguageModel.create({
expectedInputs: [{ type: 'text', languages: ['en'] }],
expectedOutputs: [{ type: 'text', languages: ['en'] }],
signal: controller.signal
});
}// Chrome's built-in translation
async function translateText(text, targetLanguage) {
if (!('Translator' in self)) {
throw new Error('Translator API not available.');
}
const translator = await Translator.create({
sourceLanguage: 'en',
targetLanguage: targetLanguage
});
return await translator.translate(text);
}- Prompt API: Core content generation using Gemini Nano
- Translator API: Real-time multi-language translation
- Web Speech API : For real time speech to text transcription
- SidePanel API : For modern UI
- Toggle between light and dark themes
- Theme preference is saved across sessions
- Uses modern CSS custom properties
- Customize prompt templates in the code
- Adjust content length and style
- Add new languages for translation
- Local Processing: Content is processed locally when possible
- No Data Storage: Generated content is not stored on external servers
- User Control: Clear privacy controls and data handling
- Minimal Permissions: Only requests necessary Chrome extension permissions
activeTab: Access current tab content for text extractionstorage: Save user preferences and theme settingsscripting: Inject content script for seamless text selectionsidePanel: Modern sidepanel interface for better UX<all_urls>: Content extraction from any website
- Local Processing: All AI operations use Chrome's built-in models
- No External APIs: No data sent to third party servers
- No Data Storage: Generated content is not stored externally
- User Control: Complete control over data and generation process
- Chrome version 127+ with AI features enabled
- Gemini Nano model availability on device
- Built-in AI experimental features enabled
Extension not loading
- Ensure Developer mode is enabled
- Check for JavaScript errors in the console
- Verify all files are present
Content not generating
- Check if Chrome Built-in AI is available
- Verify Chrome version (127+)
- Try refreshing the page
Text not being extracted
- highlight a text on website then click on research button or home button, try with different websites
- Ensure the page allows content scripts
- Try manual mode as an alternative
- Check browser console for errors
Microphone not working
- Click the KeyTube extension icon in your toolbar
- Select "View web permissions"
- Toggle "Microphone" to "Allow"
- Refresh the page and try again
Translation not working
- Verify Chrome's Translator API is available
- Check internet connection for model downloads
- Try fallback AI translation
We welcome contributions! Please see our Contributing Guidelines for details.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Chrome Extensions team for MV3 support
- Chrome Built-in AI team for the amazing APIs
- YouTube creators for feedback and feature requests
- Prompt API: Core content generation using Gemini Nano
- Translator API: Real-time multi-language translation
- Web Speech API : For real time speech to text transcription
- SidePanel API : For modern UI
- Local AI Processing: 100% privacy first with Chrome's built-in models
- Streaming Generation: Real time text generation with visual feedback
- Professional Export: PDF generation with jsPDF
- Responsive Design: Works across all Chrome extension contexts
- Error Handling: Graceful fallbacks and user friendly error messages
- Custom Text Integration: Smart approval system for user content
- YouTube Compliance: 5000 character limits and clean formatting
- π Bug Reports: GitHub Issues
- π Hackathon Feedback: Built for Google Chrome Built-in AI Challenge 2025
π Built for Google Chrome Built-in AI Challenge 2025
Made with β€οΈ for content creators using Chrome's Built-in AI