Glens is a Chrome extension that uses Gemini Nano (Google's on-device AI) to automatically summarize your Gmail inbox and individual emails. It runs entirely in your browser — no data ever leaves your machine.
- Inbox Summary — Scans visible inbox emails and surfaces what matters: deliveries, flights, meetings, interviews, deadlines, and appointments.
- Single Email Summary — Opens a summary panel when you view any individual email, highlighting key points, action items, dates, and important numbers.
- On-Device AI — Powered by Gemini Nano via Chrome's built-in
LanguageModelAPI. Falls back to regex-based smart extraction if Gemini Nano is unavailable. - Auto-Activation — Fires automatically when Gmail loads and re-runs when you navigate between inbox and individual emails.
- Privacy-First — All processing happens locally in the browser. No external API calls, no data sent anywhere.
- When Gmail loads, Glens detects whether you're in Inbox view or Email view.
- It traverses the Gmail DOM to extract email metadata (sender, subject, snippet, date) or the full body of an opened email.
- It sends the extracted text to the background service worker, which routes it to Gemini Nano if available.
- The AI generates a structured summary, which is displayed in a floating panel on the right side of the screen.
- The panel auto-dismisses after 20 seconds, or you can close/collapse it manually.
- Google Chrome (version 138 or later recommended)
- Gemini Nano enabled in Chrome flags (see setup below)
Glens uses Chrome's built-in on-device AI. You need to enable it first:
- Open Chrome and go to
chrome://flags - Search for "Prompt API for Gemini Nano" and set it to Enabled
- Search for "Optimization Guide On Device Model" and set it to Enabled BypassPerfRequirement
- Restart Chrome
- Go to
chrome://components, find "Optimization Guide On Device Model", and click Check for update to download the model
The model download may take a few minutes depending on your connection.
- Download or clone this repository to your computer
- Open Chrome and go to
chrome://extensions - Toggle Developer mode ON (top-right switch)
- Click Load unpacked
- Select the
Glensfolder (the one containingmanifest.json) - The extension will appear in your extensions list
- Open Gmail
- Wait a few seconds — Glens will automatically scan your inbox and show a summary panel in the top-right corner
- Click on any email to open it — Glens will summarize the email content
- Use the − button to collapse the panel, or × to close it
Glens/
├── manifest.json # Chrome extension config (Manifest V3)
├── content.js # DOM traversal, email extraction, popup UI
├── background.js # Gemini Nano integration, fallback summarization
├── popup.css # Floating panel styles
└── icon.png # Extension icon
| Permission | Reason |
|---|---|
activeTab |
Read Gmail DOM on the active tab |
https://mail.google.com/* |
Restrict the extension to Gmail only |
No network permissions are requested. Everything runs locally.
If Gemini Nano is not available or not yet downloaded, Glens uses regex-based text analysis to extract:
- Dates and times mentioned in emails
- Order/tracking numbers and amounts
- Urgency keywords (urgent, deadline, ASAP)
- Category counts (deliveries, flights, meetings)
The fallback is less detailed but still useful while the model downloads in the background.