AI-powered grammar and writing corrections for every text field in your browser. Your text never passes through Typlx servers.
Typlx connects your browser directly to the LLM of your choice — OpenAI, Anthropic Claude, Google Gemini, or a fully local model via Ollama. You own the API key. You choose the model. Typlx is just the interface.
→ Join the Typlx Pro waitlist — early-bird pricing locked in for waitlist members.
Build from source in three steps:
git clone https://github.com/typlx/chrome-grammar-fix-extension.git
cd chrome-grammar-fix-extension
npm install --include=dev && npm run buildThen load the unpacked extension:
- Chrome / Edge:
chrome://extensions→ Developer mode → Load unpacked → selectdist/chrome/ - Firefox:
about:debugging→ Load Temporary Add-on → selectdist/firefox/manifest.json
Firefox extension listing coming soon. Android and iOS keyboard apps are also open source.
| Typlx | Grammarly | LanguageTool | |
|---|---|---|---|
| Price | Free | $12–30/mo | Free–$6.99/mo |
| Your text on their servers | ❌ Never | ✅ Always | ✅ Default (self-host for privacy) |
| Open source | ✅ MIT | ❌ | ✅ Partial |
| AI-quality corrections | ✅ | ✅ | ❌ |
| Local model support | ✅ Ollama/LM Studio | ❌ | ❌ |
| Account required | ❌ | ✅ | ✅ |
- OpenAI — GPT-4o, GPT-4o mini, GPT-3.5
- Anthropic — Claude Haiku, Sonnet, Opus
- Google — Gemini Flash, Gemini Pro
- Local — Any Ollama or LM Studio model (fully offline, no API key)
- Click the Typlx icon in the toolbar.
- Select your LLM provider (OpenAI-compatible or Anthropic Claude).
- Enter your API URL, model, and token.
- Click Save Settings.
- Focus any text field on any page.
- Click the fix icon in the field's bottom-right corner.
- Wait for the correction (a spinner shows progress).
- Done — your text is replaced with the corrected version.
Typlx works with textarea, input[type="text" | "search" | "email" | "url"], and contenteditable elements. It handles dynamic/SPA pages automatically.
| Provider | Endpoints Used |
|---|---|
| OpenAI-compatible | GET /models, POST /chat/completions |
| Anthropic Claude | Native Anthropic Messages API |
Any API that implements the OpenAI chat completions interface works — including local model servers like Ollama, LM Studio, and vLLM.
- API tokens are encrypted at rest (AES-GCM with PBKDF2 key derivation) in
chrome.storage.local. - Tokens are only used in the background service worker — never exposed to content scripts or page context.
- No telemetry, no analytics, no phone-home behavior.
manifest.json # Chrome manifest
manifest.firefox.json # Firefox manifest (gecko settings, background scripts)
background/
service-worker.js
providers/
anthropic-provider.js
openai-provider.js
provider-registry.js
content/
content.js # injected into pages (IIFE, shadow DOM)
content-core.js # testable pure functions
content.css
popup/
popup.html / popup.css / popup.js
utils/
crypto.js # AES-GCM token encryption
storage.js # Chrome storage wrapper
icons/
Contributions welcome. See CONTRIBUTING.md for setup, code quality tools (ESLint, Prettier, Vitest), and workflow.
| Repo | Platform |
|---|---|
| typlx/android-grammar-keyboard | Android custom IME keyboard |
| typlx/ios-grammar-keyboard | iOS keyboard extension |
| typlx/typlx-website | typlx.com website |
MIT. See LICENSE for details.
