Better prompts, Better results. Transform your AI interactions with smarter, more effective prompts - Better input, better output.
A Chrome extension that enhances your prompts for ChatGPT, Claude, and Gemini. Choose between 100% local AI processing (no API keys needed) or Gemini API (faster, more powerful).
- Local AI (WebLLM) - 100% private, no API keys, works offline
- Gemini API - Faster responses, more powerful enhancements (optional)
- Universal Platform Support - Works seamlessly on ChatGPT, Claude, and Gemini
- One-Click Enhancement - Transform prompts instantly with structured output
- Privacy First - Local processing option keeps your prompts on your device
- Beautiful UX - Smooth animations, real-time feedback, intuitive interface
- Free Forever - No subscriptions, no usage limits, no catch
- Zero Data Collection - We don't collect, store, or track anything
- Local Storage Only - All data stored in your browser
- Open Source - Full transparency, review the code yourself
- Secure API Key Storage - Encrypted local storage (if using Gemini API)
-
Install from Chrome Web Store
- Visit the Chrome Web Store listing
- Click "Add to Chrome"
- Grant necessary permissions
-
Choose Your Mode
- Local AI: No setup needed, just start using!
- Gemini API: Add your API key in the extension popup (optional)
-
Start Enhancing
- Navigate to ChatGPT, Claude, or Gemini
- Type your prompt
- Click "β¨ Enhance"
- Review and use the enhanced prompt
-
Clone the Repository
git clone <repository-url> cd add-in
-
Install Dependencies
npm install
-
Build the Extension
npm run build
-
Load in Chrome
- Open
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked"
- Select the
dist/directory
- Open
-
Development Mode
npm run dev # Watch mode for development
-
Navigate to any supported AI platform:
-
Type your prompt in the text area
-
Click the "β¨ Enhance" button that appears
-
Review the enhanced, structured prompt:
- Task: Clear objective
- Context: Relevant background
- Instructions: Detailed guidelines
- Output Format: Desired structure
-
Choose an action:
- Replace: Replace original prompt with enhanced version
- Copy: Copy enhanced prompt to clipboard
- Close: Dismiss the enhancement UI
- Get a free Gemini API key from Google AI Studio
- Open the extension popup
- Enter your API key
- Click "Save Key"
- Enjoy faster, more powerful enhancements!
add-in/
βββ src/
β βββ lib/ # Shared modules
β β βββ constants.js # Configuration constants
β β βββ platform.js # Platform detection logic
β β βββ webllm.js # WebLLM engine management
β β βββ gemini.js # Gemini API client
β β βββ ui.js # UI components and utilities
β β βββ utils.js # General utility functions
β βββ contentScript.js # Main content script (runs on AI platforms)
β βββ service_worker.js # Background service worker
β βββ popup.js # Extension popup script
β βββ popup.html # Extension popup UI
β βββ options.js # Options page script
β βββ options.html # Options page UI
β βββ summary.html # Summary page (fallback)
β βββ privacy.html # Privacy policy page
β βββ icon*.png # Extension icons (16, 48, 128)
βββ public/
β βββ logo1.png # Source logo
βββ .github/ # GitHub templates
β βββ ISSUE_TEMPLATE/
β βββ pull_request_template.md
βββ manifest.json # Extension manifest (Chrome Web Store)
βββ package.json # Dependencies and scripts
βββ build.js # Build script (esbuild)
βββ LICENSE # MIT License
βββ README.md # This file
The extension uses esbuild to bundle code and create a production-ready build:
npm run build # Production build (minified)
npm run dev # Development build (watch mode)Build Output:
- Bundled JavaScript files in
dist/src/ - Copied HTML, manifest, and assets
- Optimized for production
- Detects AI platform pages (ChatGPT, Claude, Gemini)
- Injects "Enhance" button near text input fields
- Handles prompt enhancement UI
- Manages WebLLM and Gemini API integration
- Processes user interactions (click, copy, replace)
- Manages WebLLM engine lifecycle
- Handles model download and caching
- Processes extension messages
- Manages storage operations
- API key management (Gemini API mode)
- Extension information and capabilities
- Simple, focused interface
- AI method selection (Local AI vs Gemini API)
- Settings management
- Privacy information
- Model configuration
- UI dimensions and styles
- Platform selectors
- Storage keys
- System prompts
- Platform detection (ChatGPT, Claude, Gemini)
- Text extraction from platform-specific elements
- Textarea finding logic
- WebLLM engine initialization
- Model download and caching
- Progress tracking
- Engine state management
- Gemini API client
- SSE stream parsing
- Error handling
- API request management
- UI element creation
- Enhancement modal management
- Styling utilities
- Button state management
- Error message formatting
- Extension context validation
- Safe Chrome API wrappers
- HTML escaping
Local AI (WebLLM):
- Model:
gemma-2-2b-it-q4f16_1-MLC-1k - Location:
src/lib/constants.js-MODEL_ID - First download: ~2-3GB (one-time)
- Cached in IndexedDB
Gemini API:
- Model:
gemini-2.5-flash-lite - Location:
src/lib/gemini.js-GEMINI_MODEL - Requires API key from Google AI Studio
The extension requires:
storage- Store user preferences and API key locallyhost_permissions- Access to AI platform domains and Gemini API
Note: The extension uses content scripts (declared in manifest.json) which have automatic DOM access. No activeTab, tabs, or scripting permissions are needed.
See CHROME_STORE_PRIVACY_JUSTIFICATIONS.md for detailed permission justifications.
-
Test on Each Platform:
- ChatGPT: https://chat.openai.com
- Claude: https://claude.ai
- Gemini: https://gemini.google.com
-
Test Both Modes:
- Local AI (WebLLM) - No API key
- Gemini API - With API key
-
Test Features:
- Prompt enhancement
- Copy functionality
- Replace functionality
- Error handling
- UI responsiveness
- Chrome 113+ or Edge 113+ (WebGPU support required)
- For Chrome 123, enable:
chrome://flags/#enable-experimental-web-platform-features - 4GB+ RAM recommended
- Stable internet connection for initial model download (Local AI mode)
- Update to Chrome 113+ or Edge 113+
- Enable
chrome://flags/#enable-experimental-web-platform-features - Restart browser
- Ensure stable internet connection for first download
- Check browser console for errors
- Clear extension storage and retry
- Verify WebGPU is enabled
- Verify API key is correct
- Check API key has proper permissions
- Ensure internet connection is active
- Check browser console for error messages
- Reload the extension (chrome://extensions)
- Refresh the AI platform page
- Check browser console for errors
- Verify you're on a supported platform
We welcome contributions! Please see our contributing guidelines:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Test thoroughly
- Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow existing code style
- Add comments for complex logic
- Test on all supported platforms
- Update documentation as needed
- Ensure error handling is robust
- Personalized Prompt Personas
- Example-Oriented Persona
- Essay Persona
- Depth-Focused Persona
- Concise Persona
- Creative Persona
- Technical Persona
- Business Persona
- Prompt templates library
- Prompt history and management
- Custom enhancement rules
- Keyboard shortcuts
- Batch processing
- Team collaboration features
MIT License - see LICENSE file for details.
- WebLLM by MLC AI for local LLM inference
- Google Gemini API for API-based enhancement
- Chrome Extensions team for the excellent platform
- Issues: GitHub Issues
- Documentation: See
DEVELOPER.mdfor detailed developer docs - Privacy: See
src/privacy.htmlfor privacy policy
Made with β€οΈ for the AI community