How aurorateam/launcher works
Main Components
A. Core Application Layer:
• Electron Main Process (src/main)
• Electron Renderer Process (src/renderer)
• Preload Scripts (src/preload)
• IPC Communication Channels (src/common/channels.ts)
B. Main Process Components:
• Core System Management
• Launcher Core (src/main/core/Launcher.ts)
• System Handler (src/main/core/System.ts)
• Window Management (src/main/core/LauncherWindow.ts)
• Game Management
• Game Service (src/main/game/GameService.ts)
• Java Management (src/main/game/JavaManager.ts)
• Authentication (src/main/game/AuthlibInjector.ts)
• Update System (src/main/game/Updater.ts)
• Game Monitoring (src/main/game/Watcher.ts)
• API Layer
• API Management (src/main/api/APIManager.ts)
• Authorization Service (src/main/api/AuthorizationService.ts)
C. Renderer Components:
• UI Scenes
• Login Scene
• Servers List Scene
• Server Panel Scene
• Shared Components
• Modal System
• Title Bar
• Server Button
• Skin Viewer
User Interface Layer (Renderer Process)
• Three main scenes
• Shared components
Bridge Layer (Preload Scripts)
• IPC communication channels
Core Application Layer (Main Process)
• Related services (Game, API, System)
External Systems
• Minecraft Game Instance
• Authentication Server
• Game Content Server
Connection Flows
• IPC communication between renderer and main processes
• Game service interactions with Minecraft
• API calls to external services
• File system operations
• Authentication flows
Important Details
• Clear separation between Electron processes
• Security boundary between renderer and main processes
• Data flow directions
• State management paths
• File system interaction points
• External API communication points
• Rectangles: Main components
• Hexagons: Services
• Clouds: External services
• Process boundaries
• Security zones
UI state management
Keep the abstraction level focused on the architectural components while showing the key interactions that make this launcher function. This will help other developers understand both the structure and the dynamic aspects of the system.