Gemma Gem: On-Device AI Assistant

2026-05-14 · source · source ↗ · raw capture · wiki page

Chrome extension running Google's Gemma 4 locally in the browser via WebGPU. No cloud services, no API keys.

Capabilities

Models

Architecture

  1. Offscreen Document -- hosts model via HuggingFace Transformers + WebGPU, manages agent loop and token streaming
  2. Service Worker -- routes messages, handles screenshots and JS execution
  3. Content Script -- chat interface and DOM tools

Tools

Read page content (CSS selectors), capture screenshots, click elements, type text, scroll, execute JavaScript.

Requirements

Built with WXT (Vite), HuggingFace Transformers.js, marked.