mirror of
https://github.com/zadam/trilium.git
synced 2025-12-06 07:24:25 +01:00
Service Worker Architecture: - Event-driven, stateless (MV3 compatible) - Message passing with structured error handling - Chrome storage for state persistence Capture Features: - Save Selection (with image processing and base64 embedding) - Save Page (Readability → DOMPurify → Cheerio pipeline) - Save Link (basic URL + title) - Save Screenshot (full page capture, cropping pending) - Save Image (download and embed as base64) Additional Features: - Duplicate note detection with user choice dialog - Context menu initialization on install - Keyboard shortcut handlers - Trilium API communication (create notes, search) - Connection testing and validation Uses centralized logging throughout. No global state - all persistence via chrome.storage.