A comprehensive Chrome extension that integrates with Chrome's built-in AI APIs to provide a complete suite of text processing capabilities powered by Gemini Nano.
- Smart Summarization: Leverages Chrome's Summarizer API with Gemini Nano
- Flexible Output: Choose between key points, tl;dr, teaser, or headline formats
- Adjustable Length: Short, medium, or long summaries
- Multi-interface Access: Popup, window, and floating overlay views
- Grammar & Spelling Check: Detects and corrects errors using Chrome's Proofreader API
- Visual Error Highlighting: Red underlines show errors with hover explanations
- Detailed Corrections: View original β corrected text with suggestions
- Multi-language Support: Configure expected input languages
- Real-time Feedback: Instant proofreading with progress monitoring
- Natural Language Processing: Powered by Chrome's Prompt API with Gemini Nano
- Customizable Parameters: Adjust temperature and topK for response creativity
- System Prompts: Configure AI behavior with custom system instructions
- Streaming Responses: Real-time response generation with progressive text display
- Context Management: Maintain conversation context across interactions
- Automatic Detection: Identify languages in text using Chrome's Language Detection API
- Confidence Scoring: Get reliability scores for detected languages
- Multi-language Support: Detect multiple languages within single text blocks
- Real-time Analysis: Instant language identification as you type
- AI-Powered Translation: Leverage Chrome's Translation API for accurate translations
- Language Pair Support: Translate between supported language combinations
- Quality Assessment: Get confidence scores for translation accuracy
- Preserve Formatting: Maintain text structure during translation
- Content Transformation: Rewrite text while preserving meaning using Chrome's Rewriter API
- Tone Adjustment: Modify writing style and tone to match your needs
- Length Control: Expand or condense content as required
- Context Preservation: Maintain original intent while improving clarity
- Content Generation: Create original text using Chrome's Writer API
- Writing Assistance: Get help with various writing tasks and formats
- Creative Support: Generate ideas, outlines, and full content pieces
- Adaptive Style: Adjust writing style based on context and requirements
- Floating Overlay: AI-powered overlay appears on text selection
- Context-aware Processing: Automatically process selected text from any website
- Seamless Workflow: No need to copy-paste text between applications
- Multi-tool Access: All AI features available directly from selected text
-
Enable Chrome Flags:
- Navigate to
chrome://flags/ - Enable
#summarization-api-for-gemini-nano - Enable
#proofreader-api-for-gemini-nano - Enable
#prompt-api-for-gemini-nano - Enable
#language-detection-api - Enable
#translation-api - Enable
#rewriter-api-for-gemini-nano - Enable
#writer-api-for-gemini-nano - Restart Chrome
- Navigate to
-
System Requirements:
- Chrome 127+ (minimum for AI APIs)
- Chrome 128+ (Summarizer API)
- Chrome 141+ (Proofreader API)
- 22GB+ available storage space for Gemini Nano model
- 4GB+ GPU memory
- Unmetered internet connection for model download
# Install dependencies
pnpm install
# Development mode
pnpm dev
# Build for production
pnpm build- Framework: Plasmo Framework v0.90.5
- UI: React 18 with TypeScript
- Styling: Tailwind CSS v3.4.16 + DaisyUI v4.12.24
- AI APIs: Chrome's Built-in AI APIs (Summarizer, Proofreader, Prompt, Language Detection, Translation, Rewriter, Writer)
- Build: PostCSS with autoprefixer
- Build the extension:
pnpm build - Open Chrome Extensions page:
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked" and select the
buildfolder
- Popup Interface: Click the extension icon for quick access to all 7 AI features
- Window Interface: Click "Open in Window" for expanded view with better layout
- Navigation: Use the dropdown menu to switch between all AI APIs:
- π Summarizer API
- βοΈ Proofreader API
- π¬ Prompt API
- π Language Detector API
- π Translator API
- β¨ Rewriter API
- βοΈ Writer API
- Text Selection: Select text on any webpage to trigger the floating overlay with AI tools
- First Use: APIs will download Gemini Nano model automatically (may take several minutes)
SummarizerUI.tsx- Text summarization interface and logicProofreaderUI.tsx- Text proofreading interface and logicPromptUI.tsx- AI prompt assistant interface and logicLanguageDetectorUI.tsx- Language detection interface and logicTranslatorUI.tsx- Text translation interface and logicRewriterUI.tsx- Text rewriting interface and logicWriterUI.tsx- AI writing assistant interface and logicpopup.tsx- Main popup with dropdown navigation for all 7 AI featurestabs/window.tsx- Expanded window view with URL parameter routingcontents/floating-overlay.tsx- Content script for text selection overlaycontents/text-selection.ts- Text selection handler for webpage integration
- Responsive Design: Optimized for both popup (384px) and window (1100px) views
- Progressive Download: Automatic model download with progress tracking
- Error Handling: Comprehensive error states and user feedback
- Multi-API Navigation: Seamless switching between all 7 AI features via dropdown
- Text Selection Integration: Floating overlay appears on text selection across websites
- Cross-context Support: Works in popup, window, and content script environments
const summarizer = await window.Summarizer.create({
type: 'key-points',
format: 'markdown',
length: 'medium'
});
const summary = await summarizer.summarize(text);const proofreader = await window.Proofreader.create({
expectedInputLanguages: ['en']
});
const result = await proofreader.proofread(text);- Plasmo Framework integration
- Basic summarization functionality
- Chrome Summarizer API integration
- Tailwind CSS v3 integration (v4 incompatible with Plasmo)
- Responsive design implementation
- Popup/window view optimization
- Chrome Proofreader API implementation
- Error highlighting and correction display
- Unified tab navigation system
- URL parameter routing for window views
-
Model Download: First use requires downloading Gemini Nano (~22GB)
- Solution: Ensure adequate storage and stable connection
-
API Availability: Features depend on Chrome flags and hardware
- Solution: Check
chrome://flags/and system requirements
- Solution: Check
-
Window Routing: Proofreader window opens correctly via URL parameters
- Solution: Uses single window.tsx with tab parameter routing
- Chrome AI team for the built-in AI APIs
- Plasmo Framework for Chrome extension development
- Tailwind CSS for utility-first styling