A powerful Browser extension for organizing and quick-inserting prompts across AI chat platforms. Streamline your AI workflows with project-based prompt management and instant insertion.
- OpenAI - ChatGPT, OpenAI API playground
- Anthropic - Claude.ai, Console
- Google - Gemini
- Microsoft - Copilot
- Perplexity - Perplexity.ai
- X/Grok - X.com Grok chat
The extension seamlessly integrates with AI platforms, providing a floating button for quick prompt access and a clean popup interface for prompt management.
- Project Organization - Group prompts by projects for better organization
- Quick Insertion - One-click prompt insertion into AI chat interfaces
- Floating Button - Convenient AI magic button appears on supported sites
- Context Menu - Right-click to insert recent prompts
- CSV Import/Export - Backup and share your prompt libraries
- Cross-Device Sync - Browser storage sync keeps prompts available everywhere
- Keyboard Shortcuts - Fast access via hotkeys
- Smart Detection - Automatically detects input fields on AI platforms
Or build from source (see Development section below)
- Visit any supported AI platform (ChatGPT, Claude, etc.)
- Look for the β¨ floating button near text input areas
- Click the button to open the prompt selector
- Choose a project and prompt to insert instantly
- Right-click in text areas for quick access to recent prompts
- Click the extension icon in browser toolbar
- Add new prompts with title and content
- Organize by projects for better workflow management
- Export/Import CSV via Settings for backup and sharing
# Clone and install dependencies
git clone https://github.com/flesler/ai-prompts
cd ai-prompts
npm install
# Run full test suite and build the extension
npm run prepackChrome:
- Open
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked" and select the
dist/folder
Firefox:
- Open
about:debugging#/runtime/this-firefox - Click "Load Temporary Add-on"
- Select
dist/manifest.json
src/
βββ background.ts # Service worker - context menus, shortcuts, messaging
βββ content.ts # Content script - floating button, input detection
βββ popup.ts # Main popup interface for prompt management
βββ options.ts # Settings page - notifications, import/export
βββ domains.ts # AI platform configurations and selectors
βββ types.ts # TypeScript interfaces and enums
βββ utils.ts # Shared utility functions
βββ public/
βββ manifest.json # Browser extension manifest (v3)
βββ popup.html # Popup interface UI
βββ options.html # Settings page UI
βββ icons/ # Extension icons (16px, 48px, 128px)
| Command | Description |
|---|---|
npm run build |
Build optimized extension for Chrome |
npm run build:firefox |
Build optimized extension for Firefox |
npm run prepack |
Run full test suite (lint + build) |
npm run lint:full |
TypeScript check + ESLint validation |
npm run lint:fix |
Auto-fix linting issues |
npm run dev |
Development build with watch mode |
- Background Scripts - Service worker (Chrome) / Background scripts (Firefox)
- Content Scripts injected into AI platform pages
- Browser Storage Sync for cross-device prompt synchronization
- Context Menus for right-click prompt insertion
- Keyboard Shortcuts for quick access
- WebExtension Polyfill for cross-browser compatibility
- Smart Selectors - Detects input fields on each AI platform specifically
- Fallback Support - Generic detection for new or updated platforms
- Real-time Updates - Floating button follows input focus
Project,Title,Content
"Work Project","Meeting Summary","Please summarize the key points..."
"Personal","Writing Helper","Help me improve this text..."- Enable Notifications - Browser notifications for extension actions
- Enable Context Menu - Right-click menu integration
- Data Management - CSV import/export functionality
Ctrl+Shift+L(Mac:Cmd+Shift+L) - Insert last used prompt
- Strict type checking with
@types/chrome - ES2022+ features supported
- Modular architecture with clear separation of concerns
- tsup + esbuild - Fast, modern bundling
- Automatic minification - Optimized production builds
- Dynamic manifest generation - Syncs version from package.json
- ESLint + TypeScript - Comprehensive linting
- DRY utilities - Reusable helpers and patterns
MIT License - Feel free to fork and modify for your own AI workflow needs!