|
| 1 | +# AutoTab: Chrome Extension for Text Completions |
| 2 | + |
| 3 | +A Chrome extension that provides AI-powered text completion for any text field on the web. As you type in any input field, text area, or contenteditable element, AutoTab will suggest completions that you can accept by simply pressing the Tab key. |
| 4 | + |
| 5 | +## Features |
| 6 | + |
| 7 | +- Works on any website and in any text input field |
| 8 | +- Provides real-time AI-powered text suggestions as you type |
| 9 | +- Accept suggestions with a simple Tab key press |
| 10 | +- Seamlessly integrates with existing text inputs without disrupting your workflow |
| 11 | +- Supports both standard text inputs and contenteditable elements |
| 12 | +- Intelligent debouncing to minimize API calls and improve performance |
| 13 | + |
| 14 | +## Installation |
| 15 | + |
| 16 | +1. Clone this repository or download the source code |
| 17 | +2. Run `npm install` to install all dependencies |
| 18 | +3. Run `npm run build` to create the distribution files (creates a new "dist" folder) |
| 19 | +4. Open Chrome and navigate to `chrome://extensions/` |
| 20 | +5. Enable "Developer mode" using the toggle in the top right corner |
| 21 | +6. Click "Load unpacked" and select the "dist" folder from this project |
| 22 | +7. The extension icon should appear in your browser toolbar - click and pin it for easy access |
| 23 | + |
| 24 | +## Usage |
| 25 | + |
| 26 | +1. Navigate to any website with text input fields |
| 27 | +2. Start typing in any text field |
| 28 | +3. As you type, AI suggestions will appear in light gray |
| 29 | +4. Press the Tab key to accept a suggestion |
| 30 | +5. Continue typing and accepting suggestions as needed |
| 31 | + |
| 32 | +## How It Works |
| 33 | + |
| 34 | +The extension uses a content script that injects into web pages and attaches event listeners to track user input. When you type, the extension sends your text to a local API server that returns AI-generated completions. These completions are displayed as an overlay that perfectly matches the styling of the input field you're typing in. |
| 35 | + |
| 36 | +## Development |
| 37 | + |
| 38 | +- `npm install` - Install dependencies |
| 39 | +- `npm run build` - Build the extension for production |
| 40 | +- `npm run format` - Format code using Prettier |
| 41 | + |
| 42 | +## Customization |
| 43 | + |
| 44 | +The extension's appearance and behavior can be customized by modifying the appropriate CSS and JavaScript files. |
0 commit comments