A powerful Chrome extension that fixes grammar, vocabulary, and style with a single keyboard shortcut using AI.
Features β’ Installation β’ Usage β’ Configuration β’ Privacy β’ Contributing β’ License
Alt-D Smart Fix is a Chrome extension that lets you select any text in any input field, textarea, or content-editable region, press Alt + D, and instantly rewrite it using state-of-the-art AI models from Groq.
Whether you're writing emails, crafting social media posts, coding documentation, or chatting β Alt-D helps you communicate more clearly and professionally in seconds.
- π Instant fixes β Select text, press Alt+D, done!
- π€ Multiple AI models β GPT-OSS 120B, Llama 3.3 70B, Qwen3 32B, Kimi K2, and more
- π¨ 15+ tone presets β Formal, casual, friendly, academic, playful, and more
- π Privacy-first β Your API key and text never leave your browser
- β‘ Smart fallback β Automatically tries larger models if one fails
- π Works everywhere β Gmail, Twitter/X, LinkedIn, Google Docs, Slack, Discord, and any website
| Feature | Description |
|---|---|
| One-Key Fix | Select text β Press Alt+D β Text is fixed instantly |
| Universal Support | Works in inputs, textareas, contenteditable, and rich text editors |
| Smart Context | Sends surrounding context to AI for better understanding |
| Inline Replacement | Fixes are applied directly where you're typing |
| Toast Notifications | Visual feedback for success, errors, and progress |
| Feature | Description |
|---|---|
| Dynamic Model List | Auto-fetches available models from Groq API |
| Smart Fallback | If a model fails, automatically tries the next largest model |
| Model Priority | Sorts models by parameter size (120B β 70B β 32B β 8B) |
| Cached Models | 1-hour cache to reduce API calls |
| Manual Refresh | Force-refresh model list anytime |
| Feature | Description |
|---|---|
| 15+ Tone Presets | Formal, Friendly, Concise, Playful, Academic, Casual, Persuasive, Empathetic, Confident, Creative, Technical, Enthusiastic, Neutral, Diplomatic |
| 3 Custom Tones | Create your own tone instructions |
| Tone Preview | See exactly what prompt is sent to the AI |
| Target Modes | Toggle Grammar, Vocabulary, and Custom fixes |
| Temperature Control | Adjust AI creativity (0.0 - 1.0) |
| Feature | Description |
|---|---|
| Floating Panel | Draggable status panel with minimize option |
| Disable Options | Disable for current page, entire site, or timed duration |
| Auto-Save Settings | Changes are saved automatically as you type |
| Setup Tutorial | Interactive guide for first-time setup |
| Keyboard Shortcuts | Fully customizable via Chrome settings |
-
Clone the repository
git clone https://github.com/melancholic-ksm/altd.git cd altd -
Load in Chrome
- Open Chrome and navigate to
chrome://extensions - Enable Developer mode (toggle in top-right)
- Click Load unpacked
- Select the
altdfolder
- Open Chrome and navigate to
-
Set up keyboard shortcut
- Go to
chrome://extensions/shortcuts - Find "Alt-D Smart Fix"
- Click the pencil icon next to "Fix selected text"
- Press
Alt + D(or your preferred shortcut)
- Go to
-
Get your Groq API key
- Visit console.groq.com
- Create a free account
- Generate an API key
- Paste it in Alt-D settings
Coming soon!
- Select text in any input field, textarea, or editable area
- Press
Alt + D(or your configured shortcut) - Watch the magic β your text is instantly improved!
| Before | After (Formal tone) |
|---|---|
| "i dont no how too fix grammer" | "I don't know how to fix grammar." |
| "plz send me the docs asap thx" | "Please send me the documents at your earliest convenience. Thank you." |
| "the meeting was gud we talked bout stuff" | "The meeting was productive. We discussed several important topics." |
When you trigger Alt-D, a floating panel appears showing:
- Current status (Contacting model, processing, etc.)
- Model name and parameter size
- Minimize button with disable options
Panel Controls:
- Double-click anywhere β Enable drag mode
- Click minimize (β) β Show disable options
- Disable for page β Disable on current URL
- Disable for site β Disable on entire domain
- Disable for time β Disable for 15min/1hr/8hr
Access settings via:
- Click the Alt-D extension icon β βοΈ Settings
- Or right-click the icon β Options
| Setting | Description | Default |
|---|---|---|
| Groq API Key | Your personal API key from Groq | Required |
| Model | AI model to use | GPT-OSS 120B |
| Temperature | Creativity level (0 = precise, 1 = creative) | 0.15 |
| Setting | Description | Default |
|---|---|---|
| Grammar | Fix grammatical errors | β Enabled |
| Vocabulary | Improve word choice | β Enabled |
| Custom | Apply tone/style instructions | β Enabled |
Standard Tones:
Defaultβ No tone adjustment, just fix errorsFormalβ Professional, business-appropriate languageFriendlyβ Warm, approachable communicationConciseβ Brief, to the pointCasualβ Relaxed, conversational
Professional Tones:
Academicβ Scholarly, precise languageTechnicalβ Domain-specific terminologyPersuasiveβ Compelling, convincingDiplomaticβ Tactful, balancedNeutralβ Objective, impartial
Expressive Tones:
Playfulβ Fun, wittyEnthusiasticβ Energetic, excitedCreativeβ Vivid, imaginativeEmpatheticβ Compassionate, caringConfidentβ Assertive, decisive
Custom Tones:
Custom 1-3β Define your own instructions
altd/
βββ manifest.json # Chrome extension manifest (MV3)
βββ README.md # This file
βββ PRIVACY.md # Privacy policy
βββ LICENSE # MIT License
β
βββ src/
βββ background.js # Service worker (API calls, model management)
βββ contentScript.js # Selection capture, floating panel, text replacement
β
βββ options.html # Settings page
βββ options.js # Settings logic & auto-save
βββ options.css # Settings styles
β
βββ popup.html # Toolbar popup
βββ popup.js # Popup logic
βββ popup.css # Popup styles
β
βββ tutorial.html # Setup tutorial page
βββ tutorial.js # Tutorial navigation
βββ tutorial.css # Tutorial styles
β
βββ privacy.html # Privacy policy page
βββ privacy.css # Privacy page styles
β
βββ assets/ # Images for tutorial
βββ find-extension.png
βββ set-shortcut.png
βββ groq-signup.png
βββ create-api-key.png
βββ copy-api-key.png
βββ paste-api-key.png
Alt-D uses the Groq API for AI processing:
Endpoint: https://api.groq.com/openai/v1/chat/completions
Request Format:
{
"model": "openai/gpt-oss-120b",
"temperature": 0.15,
"max_completion_tokens": 768,
"messages": [
{
"role": "system",
"content": "You are Alt-D, a precise text-editing assistant..."
},
{
"role": "user",
"content": "[Selected text with context]"
}
]
}When a model fails (404, rate limit, overloaded), Alt-D automatically tries the next model sorted by parameter size:
1. User's selected model
2. 120B models (GPT-OSS 120B)
3. 100B models (Kimi K2)
4. 70B models (Llama 3.3 70B)
5. 50B models (Compound)
6. 32B models (Qwen3 32B)
7. 20B models (GPT-OSS 20B)
8. 8B models (Llama 3.1 8B)
| Permission | Reason |
|---|---|
storage |
Save settings and API key locally |
scripting |
Inject content script for text selection |
activeTab |
Access current tab for text replacement |
<all_urls> |
Work on any website |
Your privacy is our priority. Alt-D is designed with privacy-first principles:
- β
Local Storage Only β API key stored in
chrome.storage.local, never synced - β No Tracking β Zero analytics, telemetry, or user tracking
- β No Logs β Text is never logged or stored
- β Direct API Calls β Text goes directly to Groq, no intermediary servers
- β Open Source β Full transparency, audit the code yourself
Contributions are welcome! Here's how you can help:
- Check existing issues
- Create a new issue with:
- Clear description
- Steps to reproduce (for bugs)
- Expected vs actual behavior
- Screenshots if applicable
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Make your changes
- Test thoroughly
- Commit:
git commit -m 'Add amazing feature' - Push:
git push origin feature/amazing-feature - Open a Pull Request
# Clone your fork
git clone https://github.com/YOUR_USERNAME/altd.git
cd altd
# Load in Chrome (see Installation)
# Make changes
# Test by reloading the extension- History Panel β Undo/redo previous fixes
- Streaming Responses β Faster perceived latency
- Per-Site Overrides β Custom settings for specific sites
- Context Menu β Right-click to fix text
- Multiple Languages β Support for non-English text
- Chrome Web Store β Official release
Why isn't Alt+D working?
Chrome may reserve Alt+D for the omnibox (address bar). Go to chrome://extensions/shortcuts and:
- Find "Alt-D Smart Fix"
- Set a different shortcut like
Alt+Shift+DorCtrl+Shift+D
Is my API key safe?
Yes! Your API key is stored only in chrome.storage.local on your device. It's never synced to the cloud or sent anywhere except directly to Groq's API.
Which model should I use?
- GPT-OSS 120B β Best quality, recommended default
- Llama 3.3 70B β Fast and capable
- Qwen3 32B β Good balance of speed and quality
- Llama 3.1 8B β Fastest, good for quick fixes
Is Groq free?
Yes! Groq offers free API access with generous rate limits. No credit card required.
Does it work offline?
No, Alt-D requires an internet connection to communicate with Groq's API.
This project is licensed under the MIT License β see the LICENSE file for details.
MIT License
Copyright (c) 2024 melancholic-ksm
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
- Groq β For providing fast, free AI inference
- Chrome Extensions β MV3 documentation
- All contributors and users!
Made with β€οΈ by melancholic-ksm
β Star this repo if you find it useful!
Report Bug β’ Request Feature β’ Contribute