How surfer-org/protocol works
Main Components
a) Desktop Application (Core Component)
• Frontend (React + Electron)
• Backend Services
• Platform-specific Exporters
• Local Storage System
b) SDK Component
• Python SDK Interface
• Client Libraries
• Protocol Implementation
c) Documentation System
• Next.js Documentation Site
• API Documentation
• Cookbook Examples
Architectural Relationships to Highlight
[Desktop App Layer]
• UI Components (React + Shadcn)
• Platform Dashboard
• Export Interface
• Settings/Configuration
• Core Services (Electron)
• Platform Handlers
• Authentication Manager
• Data Export Engine
• Platform Integrations
• Apple (iMessage)
• Google (Gmail)
• Microsoft
• Twitter/X
• Notion
• OpenAI (ChatGPT)
[SDK Layer]
• Python Client
• Protocol Implementation
• Data Processing
[Storage Layer]
• Local File System
Data Flow Indicators
• User interaction flows
• Data export paths
• SDK integration points
• Storage operations
Implementation Details
• Electron's main and renderer process separation
• Platform-specific export implementations
• SDK integration points
• Local storage management
• Cross-platform compatibility
Notes for Scale
• Potential expansion points for new platforms
• SDK extensibility
• Future integration possibilities