How floccusaddon/floccus works
Main Components
a. Client Applications
• Browser Extensions (Firefox, Chrome, Edge, etc.)
• Android App
• iOS App (in development)
b. Core Components
• Account Management System
• Synchronization Engine
• Adapter Layer
• Storage Layer
c. External Services
• Nextcloud Bookmarks
• Google Drive
• Git Servers
• WebDAV Services
• Linkwarden
Architecture Patterns to Highlight
• Adapter Pattern (for different sync backends)
• MVC Pattern (visible in the src/lib structure)
• Plugin Architecture (for different browsers and platforms)
• Event-driven Architecture (for sync operations)
Component Relationships
[Client Apps] <-> [Core Engine] <-> [Adapter Layer] <-> [External Services]
Detailed Component Breakdown
Core Engine:
• Controller (src/lib/Controller.ts)
• Account Management (src/lib/Account.ts)
• Tree Management (src/lib/Tree.ts)
• Crypto Layer (src/lib/Crypto.ts)
Adapter Layer:
• NextcloudBookmarks Adapter
• WebDAV Adapter
• Google Drive Adapter
• Git Adapter
• Linkwarden Adapter
a. Data Flow:
• Client -> Core Engine -> Adapter -> External Service
b. Sync Strategies:
• Default
• Merge
• Unidirectional
c. Security Layer:
• Encryption
• Authentication
• Secure Storage
Implementation Details
Important implementation aspects:
• Browser API Integration
• Native Platform Support
• Localization System
• Storage Mechanisms
Top: User Interfaces (Browser Extensions, Mobile Apps)
Middle: Core Services (Sync Engine, Account Management)
Bottom: External Services (Storage Backends)
Additional Notes
Annotations for:
• Supported platforms
• Security features
• Sync strategies
• Configuration options