-
Notifications
You must be signed in to change notification settings - Fork 1
Technical Documentation
Wei Xuan edited this page Feb 7, 2026
·
1 revision
Comprehensive technical documentation for developers and contributors.
Web Guide is built on Chrome's Manifest V3 architecture with three main components communicating via message passing and API calls.
┌─────────────────────────────────────────────────────────────┐
│ User Interface │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ Popup UI (popup.html + popup.js) │ │
│ │ - Voice input (Web Speech API) │ │
│ │ - Voice output (Speech Synthesis) │ │
│ │ - Command processing │ │
│ └─────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
↕
┌─────────────────────────────────────────────────────────────┐
│ Content Scripts │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ content.js │ │
│ │ - PageExtractor: DOM analysis & data extraction │ │
│ │ - VisualGuide: Highlights, arrows, tooltips │ │
│ └─────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
↕
┌─────────────────────────────────────────────────────────────┐
│ Background Services │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ background.js (Service Worker) │ │
│ │ - Lifecycle management │ │
│ │ - Settings storage │ │
│ │ - Chrome APIs access │ │
│ └─────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
↕
┌─────────────────────────────────────────────────────────────┐
│ External Services │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ Groq API (Llama) │ │
│ │ - Page summarization │ │
│ │ - Natural language understanding │ │
│ │ - Element identification │ │
│ └─────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
| Component | Technology | Purpose |
|---|---|---|
| Popup Script | JavaScript (ES6) | User interface, voice I/O, API orchestration |
| Content Script | JavaScript (ES6) | DOM extraction, visual guidance rendering |
| Background Script | Service Worker | Lifecycle, storage, future features |
| Groq API | Llama (LLM) | Natural language processing, intelligence |
- Popup Console: Right-click popup → Inspect
- Content Script: Right-click page → Inspect → Console tab
- Background Worker: chrome://extensions → Background Page
# No build step required
# Just reload extension after code changes
In chrome://extensions:
- Click reload icon on extension card
- Refresh test webpage
- Test functionality
-
chrome.runtime- Messaging between components -
chrome.tabs- Current tab information -
chrome.scripting- Content script injection -
chrome.storage- User preferences - Web Speech API - Voice recognition
- Speech Synthesis API - Text-to-speech
← Back to User Guide | Next: API Reference →