How askman-dev/askman-chrome-extension works
Main Components Identification
a) Browser Extension Components:
• Content Scripts (src/pages/content)
• Background Service (src/pages/background)
• UI Components (src/components)
• Storage Management (src/shared/storages)
• Agents System (src/agents)
b) External Systems:
• AI Service Providers
• Web Pages (GitHub, StackOverflow, etc.)
┌─ Browser Context ──────────────────────────────────────┐
• ┌─ Extension UI ─────────┐ │
• Popup │ ┌─ Side Panel ┐ │
• Chat Interface │ │ │ │
• Configuration UI │ │ │ │
• ┘ └──────────┘ │
• ┌─ Extension Core ───────────────────────────────┐ │
• ┌─ Agents ─────┐ ┌─ Storage Manager ─┐ │ │
• GitHub │ │ Config Storage │ │ │
• StackOverflow│ │ Theme Storage │ │ │
• ┘ └─────────────────────┘ │ │
• ┌─ Background Service ─┐ ┌─ Content Scripts┐│ │
• Message Handling │ │ Page Integration││ │
• State Management │ │ DOM Manipulation││ │
• ┘ └───────────────┘│ │
• ┘ │
• ┘
┌─ External Services ─────┐ ┌─ Web Pages ──────────┐
• AI Service Providers │ │ GitHub │
• (API Integration) │ │ StackOverflow │
• ┘ └─────────────────────────┘
Component Relationships
Following interactions:
• Content Scripts ↔ Web Page DOM
• UI Components ↔ Background Service
• Background Service ↔ AI Providers
• Storage Manager ↔ All Components
• Agents ↔ Specific Web Pages
Technical Details
• React components for UI (shown in src/components)
• TypeScript implementation (evident from .ts files)
• Configuration management (TOML files in src/assets/conf)
• Localization support (_locales directory)