AI-powered smart autocomplete for any browser text field
- Clone the repo
- Go to
chrome://extensions - Enable Developer mode
- Click Load unpacked and select the repo root folder
npm installnpm run build/npm run devfor development
The backend is built with FastAPI and uses Google Gemini.
- Install dependencies:
pip install -r backend/requirements.txt
- Create a
.envfile with your configuration:GEMINI_API_KEY=your_gemini_api_key_here AUTH_TOKEN=your_secure_auth_token_here
- Start the development server:
fastapi run backend/server.py
Console output from content script is visible respective tab. Service worker can be inspected from chrome://extensions
src/background: Service worker, a process that runs tab-independent, interacts with the db and ai models
src/content: Runs in every tab, listens for DOM events & co, sends them to the service worker with chrome.runtime.sendMessage and then receives completion suggestions
src/popup: UI for configuring settings that opens when users click our extension icon
Extension is built with Vite: background and popup are compiled as ES modules, while content has a separate build config (vite.content.config.ts) and uses an IIFE bundle, because content scripts cannot use ES module imports. npm run dev runs two vite build --watch commands concurrently, so the output is a bit messy.