# mmfoundation/wallpapermachine architecture

> Architecture diagram of the GitHub repository mmfoundation/wallpapermachine, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mmfoundation/wallpapermachine
- Repository: https://github.com/mmfoundation/wallpapermachine

## Overview

WallpaperMachine is a macOS app for browsing, managing, previewing, and applying Wallpaper Engine scene, video, and web wallpapers. Its main user journey runs from the control panel—selecting a library item or finding one in Workshop or pixiv—through applying it to the desktop. The graph also preserves major supporting capabilities: previews, per-wallpaper options, automation, multi-display behavior, and library storage. Relationships are limited to those stated in the README or shown by the supplied source index; several runtime connections remain unverified because their implementations were not excerpted.

Main entry points: [`App/Views/ControlPanel/Model/PanelController.swift`](https://github.com/mmfoundation/wallpapermachine/blob/main/App/Views/ControlPanel/Model/PanelController.swift) (Panel controller), [`App/Services/Desktop/WallpaperPresentationPolicy.swift`](https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/Desktop/WallpaperPresentationPolicy.swift) (Desktop presentation), [`App/Views/ControlPanel/ControlPanelView.swift`](https://github.com/mmfoundation/wallpapermachine/blob/main/App/Views/ControlPanel/ControlPanelView.swift) (Control panel), [`App/Services/Workshop/WorkshopStore.swift`](https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/Workshop/WorkshopStore.swift) (Steam Workshop)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_panel["Control panel"]
  node_panel["Control panel"]
  node_controller["Panel controller"]
  node_actions["Panel actions"]
  node_preview["Wallpaper preview"]
  node_options["Wallpaper options"]
end

subgraph group_content["Wallpaper sources"]
  node_library["Installed library"]
  node_workshop["Steam Workshop"]
  node_pixiv["pixiv browsing<br/>[PixivStore.swift]"]
  node_import["Wallpaper import"]
end

subgraph group_runtime["Desktop playback"]
  node_bridge["Renderer bridge<br/>[BridgeStore.swift]"]
  node_scene["Scene playback<br/>[mod.rs]"]
  node_video["Native video playback"]
  node_web["Web playback"]
  node_desktop["Desktop presentation"]
  node_span["Still-image display spans"]
  node_space["Wallpaper spaces"]
end

subgraph group_management["Library management"]
  node_storage[("Library storage<br/>[ClientPaths.swift]")]
  node_presets[("Property presets")]
end

subgraph group_support["Automation and support"]
  node_automation[("Wallpaper automation")]
  node_playlist["Playlist rotation"]
  node_diagnostics["Diagnostics"]
end

node_user(("Mac user"))
node_steam{{"Steam services"}}
node_pixiv_service{{"pixiv service"}}

node_user -->|"opens"| node_panel
node_panel -->|"presents"| node_controller
node_controller -->|"browses"| node_library
node_controller -->|"browses"| node_workshop
node_controller -->|"browses"| node_pixiv
node_controller -->|"imports"| node_import
node_workshop -->|"fetches content"| node_steam
node_pixiv -.->|"searches and fetches"| node_pixiv_service
node_user -->|"applies wallpaper"| node_controller
node_controller -->|"starts actions"| node_actions
node_controller -->|"requests preview"| node_preview
node_controller -->|"edits options"| node_options
node_controller -->|"controls playback"| node_bridge
node_bridge -.->|"drives scenes"| node_scene
node_user -->|"applies wallpaper"| node_desktop
node_desktop -.->|"presents video"| node_video
node_desktop -.->|"presents web"| node_web
node_desktop -.->|"spans displays"| node_span
node_desktop -.->|"tracks spaces"| node_space
node_controller -->|"manages library"| node_storage
node_controller -->|"manages presets"| node_presets
node_controller -->|"configures automation"| node_automation
node_controller -->|"configures rotation"| node_playlist
node_controller -->|"exports diagnostics"| node_diagnostics

click node_panel "https://github.com/mmfoundation/wallpapermachine/blob/main/App/Views/ControlPanel/ControlPanelView.swift"
click node_controller "https://github.com/mmfoundation/wallpapermachine/blob/main/App/Views/ControlPanel/Model/PanelController.swift"
click node_actions "https://github.com/mmfoundation/wallpapermachine/tree/main/App/Views/ControlPanel/Model"
click node_preview "https://github.com/mmfoundation/wallpapermachine/tree/main/App/Services/Preview"
click node_options "https://github.com/mmfoundation/wallpapermachine/blob/main/Shared/WallpaperEngineOptions.swift"
click node_library "https://github.com/mmfoundation/wallpapermachine/blob/main/App/Views/ControlPanel/Library/InstalledBrowserModel.swift"
click node_workshop "https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/Workshop/WorkshopStore.swift"
click node_pixiv "https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/Pixiv/PixivStore.swift"
click node_import "https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/Library/WallpaperImportService.swift"
click node_bridge "https://github.com/mmfoundation/wallpapermachine/blob/main/App/ViewModels/BridgeStore.swift"
click node_scene "https://github.com/mmfoundation/wallpapermachine/blob/main/Renderer/Core/src/engine/mod.rs"
click node_video "https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/NativeVideo/NativeVideoWallpaperHost.swift"
click node_web "https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/WebWallpaper/WebWallpaperHost.swift"
click node_desktop "https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/Desktop/WallpaperPresentationPolicy.swift"
click node_span "https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/Desktop/DisplaySpanStillImageHost.swift"
click node_space "https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/Desktop/WallpaperSpaceMonitor.swift"
click node_storage "https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/Library/ClientPaths.swift"
click node_presets "https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/Library/WallpaperPresetStore.swift"
click node_automation "https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/Automation/WallpaperAutomationStore.swift"
click node_playlist "https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/Playlist/PlaylistScheduler.swift"
click node_diagnostics "https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/Diagnostics/DiagnosticsBundle.swift"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_panel,node_controller,node_actions,node_preview,node_options,node_user toneBlue
class node_library,node_workshop,node_pixiv,node_import toneAmber
class node_bridge,node_scene,node_video,node_web,node_desktop,node_span,node_space toneMint
class node_storage,node_presets toneRose
class node_automation,node_playlist,node_diagnostics,node_steam,node_pixiv_service toneIndigo
```

## Components

### Control panel

- [Control panel](https://github.com/mmfoundation/wallpapermachine/blob/main/App/Views/ControlPanel/ControlPanelView.swift): `App/Views/ControlPanel/ControlPanelView.swift`
- [Panel controller](https://github.com/mmfoundation/wallpapermachine/blob/main/App/Views/ControlPanel/Model/PanelController.swift): `App/Views/ControlPanel/Model/PanelController.swift`
- [Panel actions](https://github.com/mmfoundation/wallpapermachine/tree/main/App/Views/ControlPanel/Model): `App/Views/ControlPanel/Model`
- [Wallpaper preview](https://github.com/mmfoundation/wallpapermachine/tree/main/App/Services/Preview): `App/Services/Preview`
- [Wallpaper options](https://github.com/mmfoundation/wallpapermachine/blob/main/Shared/WallpaperEngineOptions.swift): `Shared/WallpaperEngineOptions.swift`

### Wallpaper sources

- [Installed library](https://github.com/mmfoundation/wallpapermachine/blob/main/App/Views/ControlPanel/Library/InstalledBrowserModel.swift): `App/Views/ControlPanel/Library/InstalledBrowserModel.swift`
- [Steam Workshop](https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/Workshop/WorkshopStore.swift): `App/Services/Workshop/WorkshopStore.swift`
- [pixiv browsing](https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/Pixiv/PixivStore.swift): `App/Services/Pixiv/PixivStore.swift`
- [Wallpaper import](https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/Library/WallpaperImportService.swift): `App/Services/Library/WallpaperImportService.swift`

### Desktop playback

- [Renderer bridge](https://github.com/mmfoundation/wallpapermachine/blob/main/App/ViewModels/BridgeStore.swift): `App/ViewModels/BridgeStore.swift`
- [Scene playback](https://github.com/mmfoundation/wallpapermachine/blob/main/Renderer/Core/src/engine/mod.rs): `Renderer/Core/src/engine/mod.rs`
- [Native video playback](https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/NativeVideo/NativeVideoWallpaperHost.swift): `App/Services/NativeVideo/NativeVideoWallpaperHost.swift`
- [Web playback](https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/WebWallpaper/WebWallpaperHost.swift): `App/Services/WebWallpaper/WebWallpaperHost.swift`
- [Desktop presentation](https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/Desktop/WallpaperPresentationPolicy.swift): `App/Services/Desktop/WallpaperPresentationPolicy.swift`
- [Still-image display spans](https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/Desktop/DisplaySpanStillImageHost.swift): `App/Services/Desktop/DisplaySpanStillImageHost.swift`
- [Wallpaper spaces](https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/Desktop/WallpaperSpaceMonitor.swift): `App/Services/Desktop/WallpaperSpaceMonitor.swift`

### Library management

- [Library storage](https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/Library/ClientPaths.swift): `App/Services/Library/ClientPaths.swift`
- [Property presets](https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/Library/WallpaperPresetStore.swift): `App/Services/Library/WallpaperPresetStore.swift`

### Automation and support

- [Wallpaper automation](https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/Automation/WallpaperAutomationStore.swift): `App/Services/Automation/WallpaperAutomationStore.swift`
- [Playlist rotation](https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/Playlist/PlaylistScheduler.swift): `App/Services/Playlist/PlaylistScheduler.swift`
- [Diagnostics](https://github.com/mmfoundation/wallpapermachine/blob/main/App/Services/Diagnostics/DiagnosticsBundle.swift): `App/Services/Diagnostics/DiagnosticsBundle.swift`

### Other components

- **Mac user**
- **Steam services**
- **pixiv service**

## Connections

- Mac user → Control panel: opens (evidence: `README.md`)
- Control panel → Panel controller: presents (evidence: `README.md`)
- Panel controller → Installed library: browses (evidence: `App/Views/ControlPanel/Model/PanelController.swift`)
- Panel controller → Steam Workshop: browses (evidence: `App/Views/ControlPanel/Model/PanelController.swift`)
- Panel controller → pixiv browsing: browses (evidence: `App/Views/ControlPanel/Model/PanelController.swift`)
- Panel controller → Wallpaper import: imports (evidence: `App/Views/ControlPanel/Model/PanelController.swift`)
- Steam Workshop → Steam services: fetches content (evidence: `README.md`)
- pixiv browsing → pixiv service: searches and fetches
- Mac user → Panel controller: applies wallpaper (evidence: `README.md`)
- Panel controller → Panel actions: starts actions (evidence: `App/Views/ControlPanel/Model/PanelController.swift`)
- Panel controller → Wallpaper preview: requests preview (evidence: `README.md`)
- Panel controller → Wallpaper options: edits options (evidence: `README.md`)
- Panel controller → Renderer bridge: controls playback (evidence: `App/Views/ControlPanel/Model/PanelController.swift`)
- Renderer bridge → Scene playback: drives scenes
- Mac user → Desktop presentation: applies wallpaper (evidence: `README.md`)
- Desktop presentation → Native video playback: presents video (evidence: `App/Services/Desktop/WallpaperPresentationPolicy.swift`)
- Desktop presentation → Web playback: presents web (evidence: `App/Services/Desktop/WallpaperPresentationPolicy.swift`)
- Desktop presentation → Still-image display spans: spans displays (evidence: `App/Services/Desktop/WallpaperPresentationPolicy.swift`)
- Desktop presentation → Wallpaper spaces: tracks spaces (evidence: `App/Services/Desktop/WallpaperPresentationPolicy.swift`)
- Panel controller → Library storage: manages library (evidence: `App/Views/ControlPanel/Model/PanelController.swift`)
- Panel controller → Property presets: manages presets (evidence: `App/Views/ControlPanel/Model/PanelController.swift`)
- Panel controller → Wallpaper automation: configures automation (evidence: `App/Views/ControlPanel/Model/PanelController.swift`)
- Panel controller → Playlist rotation: configures rotation (evidence: `App/Views/ControlPanel/Model/PanelController.swift`)
- Panel controller → Diagnostics: exports diagnostics (evidence: `App/Views/ControlPanel/Model/PanelController+Storage.swift`)
