How joedmin/xextension-readeck-button works
Main Components
a) Client-Side Components:
• Article View Component
• Readeck Button Component
• Keyboard Shortcut Handler
b) Extension Core:
• "View Model" component (Models/View.php)
• Configuration management for:
• API Token Storage
• Instance URL Configuration
• Keyboard Shortcuts
c) External Services:
• Readeck API Service
• FreshRSS Core System
Connection and Data Flow
• User Interface → Extension Controller (action triggers)
• Extension Controller → Readeck API (bookmark submissions)
• Configuration Flow between components
• Internationalization handling (i18n folder integration)
Specific Implementation Details
• Blue: User interface components (views/)
• Green: Core logic (Controllers/)
• Yellow: Configuration elements (.env, configure.phtml)
• Red: External service connections (Readeck API)
Technical Stack Representation
• PHP Backend
• JavaScript Frontend
• CSS Styling
• Docker Development Environment
Integration Points
Following interfaces:
• FreshRSS Extension API Integration
• Readeck API Connection (with token authentication)
• Browser Event Handlers
[User Interface Layer]
• ↕
[Extension Core Layer]
• ↕
[External Services Layer]
Important Considerations:
1. Keep the focus on the extension's integration points rather than FreshRSS's internal architecture
Demonstrate the asynchronous nature of the bookmark submission process
Additional Elements:
A small deployment section showing
• Extension installation path
• Configuration storage
• Static asset locations
A development workflow section showing
• Docker container interaction
• Local development setup
• Testing paths
Remember to maintain a balance between showing enough detail to understand the system's operation while avoiding overwhelming complexity. Focus on the extension's core functionality: capturing and sending bookmarks to Readeck while maintaining a smooth user experience in FreshRSS.