How winboat-org/winboat works
WinBoat is an Electron desktop application for installing and operating Windows in a Docker or Podman container, then exposing Windows apps as Linux desktop windows or opening the full desktop over RDP. The main workflow runs from setup and configuration through container management, guest-server communication, and app/desktop access; USB passthrough and guest-server updating are supporting capabilities. Relationships are limited to README statements and SOURCE INDEX references; unsampled implementations are represented only at paths supported by the tree.
Main entry points: winboat.ts Runtime coordinator · router.ts Screen router · App.vue App shell · install.ts Installer
Components 24
Desktop UI
- Electron shell
src/main/main.ts - App shell
src/renderer/App.vue - Screen router
src/renderer/router.ts - Dashboard
src/renderer/views/Home.vue - Install wizard
src/renderer/views/SetupUI.vue - Windows apps
src/renderer/views/Apps.vue - Configuration UI
src/renderer/views/Config.vue - Migration screen
src/renderer/views/Migration.vue
Setup and State
- Installer
src/renderer/lib/install.ts - Persistent config
src/renderer/lib/config.ts - Install specs
src/renderer/lib/specs.ts
Windows Runtime
- Runtime coordinator
src/renderer/lib/winboat.ts - Container dispatch
src/renderer/lib/containers/common.ts - Container manager
src/renderer/lib/containers/container.ts - Docker backend
src/renderer/lib/containers/docker.ts - Podman backend
src/renderer/lib/containers/podman.ts
Host Integration
- USB passthrough
src/renderer/lib/usbmanager.ts - FreeRDP integration
src/renderer/utils/getFreeRDP.ts
Guest Services
- Guest API client
src/renderer/utils/guestServer.ts - Guest server
guest_server/cmd/server/main.go - Guest updater
guest_server/cmd/updater/main.go
Other components
- Linux user
- Windows VM
- Docker / Podman
Connections 33
- Linux user → Electron shell: opens
README.md - Electron shell → App shell: hosts
- App shell → Screen router: uses routes
src/renderer/App.vue - Screen router → Dashboard: routes to
src/renderer/router.ts - Screen router → Install wizard: routes to
src/renderer/router.ts - Screen router → Windows apps: routes to
src/renderer/router.ts - Screen router → Configuration UI: routes to
src/renderer/router.ts - Screen router → Migration screen: routes to
src/renderer/router.ts - App shell → Installer: checks install
src/renderer/App.vue - App shell → Migration screen: runs migrations
src/renderer/App.vue - Install wizard → Install specs: reads specs
src/renderer/views/SetupUI.vue - Install wizard → Installer: starts install
src/renderer/views/SetupUI.vue - Installer → Persistent config: persists settings
src/renderer/lib/install.ts - Installer → Container dispatch: selects runtime
src/renderer/lib/install.ts - Container dispatch → Docker backend: dispatches
src/renderer/lib/containers/common.ts - Container dispatch → Podman backend: dispatches
src/renderer/lib/containers/common.ts - Docker backend → Container manager: implements
src/renderer/lib/containers/docker.ts - Podman backend → Container manager: implements
- Container manager → Docker / Podman: controls
- Docker / Podman → Windows VM: runs VM
README.md - Dashboard → Runtime coordinator: reads status
src/renderer/views/Home.vue - Windows apps → Runtime coordinator: manages apps
src/renderer/views/Apps.vue - Configuration UI → Persistent config: edits settings
- Runtime coordinator → Persistent config: reads settings
src/renderer/lib/winboat.ts - Runtime coordinator → Container dispatch: controls runtime
src/renderer/lib/winboat.ts - Runtime coordinator → Guest API client: calls guest API
src/renderer/lib/winboat.ts - Guest API client → Guest server: HTTP requests
README.md - Guest server → Windows VM: retrieves data
README.md - Runtime coordinator → Guest updater: requests updates
README.md - Runtime coordinator → FreeRDP integration: uses FreeRDP
src/renderer/lib/winboat.ts - FreeRDP integration → Windows VM: RemoteApp / RDP
README.md - Runtime coordinator → USB passthrough: coordinates passthrough
src/renderer/lib/winboat.ts - USB passthrough → Windows VM: passes devices