π Browser Extension Setup Guide
Install and configure OpenGrammar on Chrome, Brave, Edge, and Firefox.
π Supported Browsers
| Browser | Version | Status |
|---|---|---|
| Google Chrome | 88+ | β Fully Supported |
| Brave | 1.20+ | β Fully Supported |
| Microsoft Edge | 88+ | β Fully Supported |
| Mozilla Firefox | 90+ | β Supported (Temporary) |
| Opera | 74+ | β Supported |
| Vivaldi | 3.6+ | β Supported |
π§ Installation
Google Chrome
Step 1: Build the Extension
# Navigate to extension folder
cd opengrammar/opengrammar/extension
# Install dependencies
bun install
# Build for production
bun run build
This creates a dist/ folder with the built extension.
Step 2: Load in Chrome
- Open Chrome
- Navigate to
chrome://extensions/ - Enable Developer mode (toggle in top-right corner)
- Click Load unpacked
- Select the
opengrammar/extension/distfolder - Click Select
β Extension loaded! You'll see the OpenGrammar icon in your toolbar.
Step 3: Pin to Toolbar (Optional)
- Click the puzzle piece icon (Extensions) in toolbar
- Find OpenGrammar in the list
- Click the pin icon π
Brave Browser
Step 1: Build the Extension
Same as Chrome:
cd opengrammar/opengrammar/extension
bun install
bun run build
Step 2: Load in Brave
- Open Brave
- Navigate to
brave://extensions/ - Enable Developer mode (top-right)
- Click Load unpacked
- Select
opengrammar/extension/distfolder - Click Select
β Extension loaded!
Step 3: Pin to Toolbar
- Click the puzzle piece icon
- Pin OpenGrammar
Microsoft Edge
Step 1: Build the Extension
Same as Chrome:
cd opengrammar/opengrammar/extension
bun install
bun run build
Step 2: Load in Edge
- Open Edge
- Navigate to
edge://extensions/ - Enable Developer mode (left sidebar)
- Click Load unpacked
- Select
opengrammar/extension/distfolder - Click Select Folder
β Extension loaded!
Step 3: Pin to Toolbar
- Click the puzzle piece icon
- Pin OpenGrammar
Mozilla Firefox
β οΈ Note: Firefox support is temporary. The extension must be reloaded each time you restart Firefox.
Step 1: Build the Extension
cd opengrammar/opengrammar/extension
bun install
bun run build
Step 2: Load in Firefox
- Open Firefox
- Navigate to
about:debugging#/runtime/this-firefox - Click Load Temporary Add-on
- Navigate to
opengrammar/extension/dist - Select
manifest.json - Click Open
β Extension loaded!
β οΈ Important: This extension will be unloaded when you close Firefox. You'll need to reload it each session.
Opera
Step 1: Enable Chrome Extensions
- Open Opera
- Go to Settings
- Enable "Allow extensions from other stores"
Step 2: Install Chrome Extension Loader
- Visit Opera Add-ons
- Search for "Install Chrome Extensions"
- Add to Opera
Step 3: Load OpenGrammar
- Navigate to
chrome://extensions/ - Enable Developer mode
- Load unpacked β
opengrammar/extension/dist
Vivaldi
Step 1: Load in Vivaldi
- Open Vivaldi
- Navigate to
vivaldi://extensions/ - Enable Developer mode
- Click Load unpacked
- Select
opengrammar/extension/dist
βοΈ Initial Configuration
Step 1: Open Settings
- Click the OpenGrammar icon in your toolbar
- Click the Settings (gear) icon
Step 2: Configure Backend URL
- Find Backend URL field
- Enter your backend URL:
- Local:
http://localhost:8787 - Cloudflare:
https://opengrammar.yourname.workers.dev - Vercel:
https://opengrammar-backend.vercel.app - Railway:
https://your-app.railway.app - Render:
https://opengrammar-backend.onrender.com - Docker:
http://localhost:8787
- Local:
Step 3: Configure AI Provider
Select Provider from dropdown:
- Groq (Recommended - Free tier)
- OpenAI (Best quality)
- OpenRouter (100+ models)
- Together AI (Open-source)
- Ollama (Local, offline)
- Custom (Your own API)
Enter your API Key (if required)
Select Model from dropdown
Step 4: Test Connection
- Look for the status indicator
- π’ Green = Connected
- π΄ Red = Not connected
Step 5: Save Settings
Click Save to apply changes.
π― Provider Recommendations
For Free Usage
Provider: Groq
- API Key: Get free key at console.groq.com
- Model:
llama-3.1-70b-versatile - Limits: 100 requests/day free
For Best Quality
Provider: OpenAI
- API Key: Get at platform.openai.com
- Model:
gpt-4o-mini - Cost: ~$0.15 per 1K requests
For Privacy (Offline)
Provider: Ollama (Local)
- API Key: (none required)
- Model:
qwen2.5:1.5b - Setup: See Docker Self-Hosting
For Model Variety
Provider: OpenRouter
- API Key: Get at openrouter.ai
- Models: 100+ options (Claude, Llama, etc.)
- Cost: Pay-per-use
π Verifying Installation
Test 1: Check Extension Icon
- Click the OpenGrammar icon
- Popup should open
- You should see settings and status
Test 2: Check Grammar
- Open any text box (Gmail, Google Docs, etc.)
- Type:
me and him went to store - You should see a red underline under "me and him"
Test 3: Check Backend Connection
- Click extension icon
- Look for status indicator
- Should be green with "Connected"
Test 4: Test Rewrite Feature
- Select any text on a webpage
- Right-click
- Choose Rewrite with OpenGrammar
- Rewrite popup should open
π οΈ Extension Features
Popup Menu
Accessed by clicking the toolbar icon:
- Enable/Disable Toggle - Turn extension on/off
- Error Count - Shows detected issues
- Settings - Open settings page
- Statistics - View writing stats
- Backend Status - Connection indicator
Settings Page
Right-click extension icon β Options:
General Settings
- Enable OpenGrammar
- Check as you type
- Show notifications
- Keyboard shortcuts
AI Settings
- Provider selection
- API key management
- Model selection
- Custom base URL
- Backend health check
Site-Specific Settings
- Disable on specific domains
- Per-domain AI settings
- Domain whitelist
Custom Dictionary
- Add custom words
- Import/export dictionary
- Manage false positives
Ignored Issues
- View ignored suggestions
- Clear all ignored issues
- Manage per-domain ignores
Data Management
- Export all settings
- Import settings backup
- Reset to defaults
π¨ User Interface
Color-Coded Underlines
| Color | Meaning | Example |
|---|---|---|
| Red | Grammar/Spelling | "teh" β "the" |
| Amber | Clarity Issues | Long, confusing sentences |
| Blue | Style Suggestions | Passive voice, weak words |
Interactive Tooltips
Click any underlined text to see:
- Issue type icon
- Original text
- Suggested fix
- Explanation
- Action buttons (Apply, Ignore, Add to Dictionary)
Rewrite Popup
Accessed via right-click or Ctrl+Shift+R:
- Selected text preview
- 8 tone buttons
- Rewrite button
- Apply/Copy buttons
- Close button
π Updating the Extension
Manual Update
# Rebuild extension
cd opengrammar/opengrammar/extension
bun run build
# Reload in browser
# chrome://extensions/ β Click reload icon on OpenGrammar
Automatic Updates
Since this is a locally-loaded extension, it won't auto-update. You need to:
- Rebuild manually
- Reload in extensions page
π Troubleshooting
Extension Not Showing
Problem: Can't find OpenGrammar icon
Solution:
- Check
chrome://extensions/(or browser equivalent) - Make sure extension is enabled
- Click the puzzle piece icon β Pin OpenGrammar
No Grammar Highlights
Problem: Typing errors but no underlines appear
Solution:
- Check extension is enabled (icon badge visible)
- Verify site is not in disabled domains
- Check backend is running:
curl http://localhost:8787/health - Reload the page
- Check browser console (F12) for errors
Backend Not Connecting
Problem: Red status indicator, "Not connected" error
Solution:
- Verify backend URL in settings
- Test backend:
curl your-backend-url/health - Check CORS configuration
- Restart backend service
- Check firewall settings
Extension Crashes
Problem: Extension closes or stops working
Solution:
- Reload extension in extensions page
- Clear browser cache
- Check browser console for errors
- Rebuild extension
- Try in incognito mode (enable in extensions page)
Rewrite Not Working
Problem: Right-click menu doesn't appear
Solution:
- Make sure text is selected
- Check extension is enabled
- Reload the page
- Check browser permissions
- Try keyboard shortcut:
Ctrl+Shift+R
Settings Not Saving
Problem: Settings reset after closing
Solution:
- Check browser storage permissions
- Clear browser data for extension
- Try in a fresh browser profile
- Export settings before resetting
π Browser-Specific Notes
Chrome
- β Best compatibility
- β All features work
- β οΈ Requires Developer mode for local loading
Brave
- β Same as Chrome (Chromium-based)
- β Privacy features don't interfere
- β οΈ May need to disable Shields for some sites
Edge
- β Full Chromium compatibility
- β All features work
- β οΈ Some Microsoft-specific UI differences
Firefox
- β οΈ Temporary loading only
- β οΈ Must reload each session
- β All core features work
- β οΈ Some Chrome APIs not available
Opera
- β Chrome extension compatibility
- β οΈ May need additional setup
- β All features work
Vivaldi
- β Full Chromium compatibility
- β All features work
- β Easy extension management
π Related Documentation
- Quick Start - Get started in 5 minutes
- Backend Deployment - Deploy your backend
- AI Provider Setup - Configure AI providers
- Using OpenGrammar - Daily usage guide
Your extension is now installed and ready! Start writing better! β¨