AI-powered text expander with Gemini integration
Texpander AI is a robust, Neo Zen-styled userscript that supercharges your typing experience across the web. It provides instant text expansion algorithms and integrates an AI model (Gemini 2.5 Flash Lite) for fast, context-aware text transformations like grammar fixing, summarizing, and expanding content.
This userscript is built with TypeScript and bundled using Vite.
brb -> Be right back.) and trigger them globally.Alt+G, and instantly run AI prompts (Summarize, Fix Grammar, Make Formal) to manipulate your text. Supports custom API prompts.You will need a userscript manager installed in your browser:
Since this project is managed by Vite with the vite-plugin-monkey plugin, you can install the script locally while developing.
Clone & Install Dependencies
npm install
Development Runs the Vite development server. Your userscript manager will typically pick up the local file, updating automatically as you make changes.
npm run dev
Build target
Compile down to a single minified userscript file inside the dist/ directory.
npm run build
Once built, you can drag and drop dist/texpander-ai.user.js into your userscript manager to install the production version of the extension.
Alt + PAlt + G (Ideally, select some text before hitting this shortcut).Adding your API Key: To use the AI text generation features, go to the settings panel (gear icon) in either menu and input your Google Gemini API Key.
GM_* APIs.