How to use
GovLens.
Five-minute walkthrough. No prior knowledge. Works on any .gov.in portal.
Install the extension
The extension isn't on the Chrome Web Store yet. Install it manually — takes 60 seconds.
- Download or clone the repo:
git clone https://github.com/ankursinha/GovLens.git - Open
chrome://extensionsin Chrome. - Toggle Developer mode on (top right).
- Click Load unpacked and pick the
govlens-extensionfolder. - Pin the GL icon to your toolbar so it's always one click away.
Open the side panel
Visit any .gov.in or .nic.in page. A green ✓ badge appears on the GL icon — that means the extension recognised the site. Click the icon. The side panel opens on the right.
- On-device AI — free, private, runs on your machine (Chrome 138+).
- Google Translate — free, internet-based, no key needed.
- Anthropic Cloud — premium, your API key, highest quality.
Translate any page
- The Translate tab is open by default.
- The detected page language shows on the left.
- Pick your target language from the dropdown — 22+ Indian + international options, or type your own.
- Click TRANSLATE PAGE. The page text gets replaced in-place; layout stays intact.
- Click RESTORE ORIGINAL any time to revert.
- TRANSLATE SELECTION ONLY — highlight text on the page, then click this for a quick popover translation.
📝 SUMMARISE PAGE— three-section summary: what it's for, key actions, documents needed.💡 EXPLAIN IN PLAIN ENGLISH— rewrites the page text under 250 words, no jargon.
Cross-language search with jump-and-highlight
- Type your query in any language. English query, Hindi page — works.
- Tick CROSS-LANGUAGE SEARCH if the page is in another language. Your query gets translated to the page's language first.
- Hit GO or press Enter.
- Each result shows the section it came from + a context snippet with your query in yellow.
- Click any result. The tab focuses, the page scrolls to that exact occurrence, and the match pulses red for 4 seconds.
Jargon explainer
Hover any acronym on the page — PAN, GST, PMJAY, NCLT, FEMA, CGHS, EPF, NREGA — and a tooltip appears with the full form and a one-line explanation. 80+ terms ship built-in.
Form auto-save (lifesaver)
Gov sites time you out at the worst possible moment. GovLens silently saves every keystroke into form fields to your browser's local storage.
- Type into any form on a gov page. Saving is automatic — no confirmation dialog.
- If your session dies and the page reloads, GovLens detects the saved draft and shows a yellow banner at the top.
- Click RESTORE to refill every field with what you'd typed before. DISMISS deletes the draft.
The floating search bar
A small GL search bar sits in the bottom-right corner of every gov page. Type to highlight matches in yellow, use ↑/↓ to step through them. Active match goes red. ✕ hides it.
Don't want it? Settings (⚙) → Features → toggle off Show in-page floating toolbar.
Troubleshooting
The side panel shows "Cloud fallback needed"
Your browser doesn't have on-device translation for that language pair yet (or model isn't downloaded). Two options: (a) try a different target language; English-as-pivot usually works, or (b) add an Anthropic API key in Settings.
The translation looks slightly off
The on-device Translator API trades quality for privacy and speed. For higher quality, set up an Anthropic API key — Claude Haiku gives noticeably better gov-jargon translations.
"Could not read page" on Navigate tab
The page may not have finished loading, or it's a Chrome system page (extensions can't read those). Refresh the gov page and reopen the side panel.
Search shows no results but the word is on the page
If the page is in another language, tick CROSS-LANGUAGE SEARCH. Your query will be translated before searching.
How do I uninstall?
chrome://extensions → find GovLens → Remove. All local storage, drafts, and your API key are wiped.