How padi2312/gunnel works
Main Components Identification
The application has three primary architectural layers:
a. Frontend Layer (Svelte-based UI):
• Located in the /frontend directory
• Uses Svelte with TypeScript
• Implements a component-based architecture
• Contains UI components and routing logic
b. Backend Layer (Go-based):
• Located in the /internal directory
• Handles core SSH tunnel management
• Manages configuration and state
• Provides system-level integration
c. Integration Layer (Wails):
• Connects frontend and backend
• Handles cross-platform compatibility
• Manages build and packaging
[Frontend Layer]
• UI Components
• Tunnel Management
• Settings
• Forms
• State Management
• Route Handling
[Wails Bridge]
[Backend Layer]
• Core Services
• Tunnel Manager
• SSH Agent
• Configuration
• Storage
• Local Store
[System Integration]
• SSH Connections
• Port Forwarding
Component Relationships
• Data flow between frontend and backend through Wails bridge
• SSH tunnel connections to remote servers
• Configuration data flow to/from storage
• User interaction flows
Key Technical Details
Frontend:
• Svelte + TypeScript stack
• Component hierarchy
• Route structure (/add, /edit, /settings)
Backend:
• SSH tunnel management
• Configuration handling
• Platform-specific SSH agent integration
Integration:
• Wails binding interface
• Cross-platform compatibility layer