Gemma 4 Browser Assistant is an open-source browser extension that embeds an AI assistant directly into the browsing experience, powered by on-device machine learning models. It uses Transformers.js and Gemma models to run inference locally in the browser, eliminating the need for external servers and preserving user privacy. The extension includes a side panel interface that allows users to interact with the AI while browsing, enabling tasks such as summarizing pages and answering questions. It can access and analyze page content, browsing history, and tab state to provide contextual assistance. The architecture follows modern browser extension standards, with separate components for background processing, content scripts, and UI rendering. It also supports tool-calling capabilities, allowing the AI to perform actions such as navigating tabs or highlighting elements. Overall, it demonstrates how to build fully local, agent-based assistants inside web browsers.
Features
- On-device AI processing using Transformers.js and Gemma
- Side panel interface for real-time interaction
- Page analysis and summarization capabilities
- Access to browsing context such as tabs and history
- Tool-calling for actions like navigation and highlighting
- No external server dependency for privacy and control