How heyman/heynote works
Main Components
a) Application Layer:
• Electron Main Process
• Electron Renderer Process
• IPC Communication Bridge
b) Frontend Components:
• Vue.js Application Core
• Editor Components
• Settings Interface
• Buffer Management
c) Core Services:
• Language Detection Service
• Formatting Service
• Math/Calculator Service
• Currency Conversion Service
• File System Integration
┌─ Desktop Application (Electron Container) ─────────────────────┐
• ┌─ Main Process ──┐ ┌─ Renderer Process ─────────┐ │
• Auto Updates │ │ ┌─ Vue.js App ───────┐ │ │
• File System │◄──IPC──►│ │ │ │ │
• Menu Handling │ │ │ - Components │ │ │
• Window Mgmt │ │ │ - Stores │ │ │
• ┘ │ │ - Router │ │ │
• ┘ │ │
• ┌─ Editor Core ───────┐ │ │
• CodeMirror │ │ │
• Language Support │ │ │
• Themes │ │ │
• ┘ │ │
• ┘ │
• ┘
Key Elements to Highlight
a) Process Communication:
• IPC (Inter-Process Communication) between main and renderer processes
• File system interactions
• Store management flow
b) Editor Features:
• Language detection workflow
• Syntax highlighting system
• Block management
• Math/Currency processing
c) Data Flow:
• File saving/loading
• Settings management
• Buffer synchronization
Implementation Details
• Numbered annotations for complex workflows