How diygod/rsshub-radar works
Main Components
a. Browser Extension Components:
• Popup Interface (src/popup)
• Options Page (src/options)
• Background Service Worker (src/background)
• Content Scripts (src/contents)
• Sandboxed Scripts (src/sandboxes)
b. Core Services:
• RSS Detection System
• RSSHub Integration
• Rules Engine
• Feed Management System
Key Architectural Elements
┌─ Browser Extension UI Layer ─┐
• Popup Interface │
• Options Pages │
• Preview Pages │
• ┘
• ↕
┌─ Core Processing Layer ──────┐
• Rules Engine │
• RSS Detection │
• RSSHub Integration │
• ┘
• ↕
┌─ Background Services Layer ──┐
• Badge Management │
• Message Handling │
• Update Notifications │
• ┘
• ↕
┌─ External Integration Layer ─┐
• RSS Readers │
• RSSHub Servers │
• Website Content │
• ┘
Component Relationships
• Message passing between components (→)
• Data flow (⇢)
• Dependencies (-->)
Implementation Details
Technical elements:
• React components (src/lib/components)
• Localization system (locales/)
• Configuration management
• Hook system (src/lib/hooks)
Additional Notes
• Separation between privileged and unprivileged contexts
• Rules system as it's central to the extension's functionality
• Quick subscription system
• How the extension integrates with various RSS readers