# bluebeard63/whiterose architecture

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

- Interactive diagram: https://gitdiagram.com/bluebeard63/whiterose
- Repository: https://github.com/bluebeard63/whiterose
- Video tour (about a minute): https://gitdiagram.com/bluebeard63/whiterose/video

## Overview

WhiteRose is a Wayland desktop whose session workflow runs through the launcher into the compositor, shell and session daemon; users then interact with shell panels and apps, while the daemon serves settings and system capabilities. The compositor handles windows, layouts, input, rendering and Wayland integration. Files and Notepad provide separate user-facing workflows. README statements support the main process and capability links; source excerpts add detail for file search, file opening, compositor settings and layout behavior. Many listed subsystems were not sampled, so their internal call relationships are not asserted.

Main entry points: [`compositor/src/state.rs`](https://github.com/bluebeard63/whiterose/blob/master/compositor/src/state.rs) (Window state), [`apps/files/src/main.rs`](https://github.com/bluebeard63/whiterose/blob/master/apps/files/src/main.rs) (Files app), [`shell`](https://github.com/bluebeard63/whiterose/tree/master/shell) (Desktop shell), [`compositor/src/main.rs`](https://github.com/bluebeard63/whiterose/blob/master/compositor/src/main.rs) (Wayland compositor)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_session["Desktop session"]
  node_launcher["Session launcher<br/>[main.go]"]
  node_shell["Desktop shell"]
  node_island["Island and panels"]
  node_settings["Settings UI"]
end

subgraph group_wm["Compositor"]
  node_compositor["Wayland compositor<br/>[main.rs]"]
  node_wmstate["Window state<br/>[state.rs]"]
  node_tiling["Window layouts<br/>[mod.rs]"]
  node_render["Rendering<br/>[render.rs]"]
  node_input["Input and shortcuts<br/>[input.rs]"]
  node_clipboard["Clipboard history<br/>[clipboard.rs]"]
  node_capture["Clipboard capture"]
  node_display["Display settings<br/>[display_config.rs]"]
  node_ipc["Compositor IPC<br/>[ipc.rs]"]
end

subgraph group_daemon["Session services"]
  node_daemon["Session daemon<br/>[main.go]"]
  node_server["Daemon socket server<br/>[server.go]"]
  node_settingsstore[("Settings store")]
end

subgraph group_apps["Desktop apps"]
  node_files["Files app<br/>[main.rs]"]
  node_fileplaces["Places and drives<br/>[places.rs]"]
  node_filesearch["Indexed search<br/>[search.rs]"]
  node_fileops["File operations<br/>[ops.rs]"]
  node_filelaunch["Open applications<br/>[launch.rs]"]
  node_notepad["Notepad editor<br/>[main.rs]"]
  node_notepaddoc["Document editing<br/>[doc.rs]"]
  node_notepadsession[("Editor session<br/>[session.rs]")]
end

node_user(("Desktop user"))
node_system["System services"]

node_user -->|"starts session"| node_launcher
node_launcher -->|"launches"| node_compositor
node_compositor -->|"IPC socket"| node_shell
node_compositor -->|"starts daemon"| node_daemon
node_shell -->|"Unix socket"| node_daemon
node_user -->|"uses desktop"| node_shell
node_shell -->|"shows panels"| node_island
node_shell -->|"offers settings"| node_settings
node_compositor -->|"runs state"| node_wmstate
node_wmstate -->|"arranges windows"| node_tiling
node_wmstate -.->|"schedules frames"| node_render
node_wmstate -->|"applies settings"| node_display
node_wmstate -.->|"handles input"| node_input
node_wmstate -.->|"serves IPC"| node_ipc
node_wmstate -.->|"manages clipboard"| node_clipboard
node_capture -->|"captures selection"| node_clipboard
node_daemon -->|"serves clients"| node_server
node_server -.->|"reads settings"| node_settingsstore
node_daemon -->|"uses D-Bus"| node_system
node_user -->|"opens files"| node_files
node_files -.->|"loads places"| node_fileplaces
node_files -->|"searches files"| node_filesearch
node_files -.->|"performs operations"| node_fileops
node_files -.->|"opens with apps"| node_filelaunch
node_filesearch -->|"opens results"| node_filelaunch
node_user -->|"edits text"| node_notepad
node_notepad -.->|"edits documents"| node_notepaddoc
node_notepad -->|"persists session"| node_notepadsession
node_notepadsession -->|"writes scratch"| node_notepaddoc

click node_launcher "https://github.com/bluebeard63/whiterose/blob/master/daemon/cmd/whiterose-launch/main.go"
click node_compositor "https://github.com/bluebeard63/whiterose/blob/master/compositor/src/main.rs"
click node_wmstate "https://github.com/bluebeard63/whiterose/blob/master/compositor/src/state.rs"
click node_tiling "https://github.com/bluebeard63/whiterose/blob/master/compositor/src/layout/mod.rs"
click node_render "https://github.com/bluebeard63/whiterose/blob/master/compositor/src/render.rs"
click node_input "https://github.com/bluebeard63/whiterose/blob/master/compositor/src/input.rs"
click node_clipboard "https://github.com/bluebeard63/whiterose/blob/master/compositor/src/clipboard.rs"
click node_capture "https://github.com/bluebeard63/whiterose/blob/master/compositor/src/clipboard_capture.rs"
click node_display "https://github.com/bluebeard63/whiterose/blob/master/compositor/src/display_config.rs"
click node_ipc "https://github.com/bluebeard63/whiterose/blob/master/compositor/src/ipc.rs"
click node_shell "https://github.com/bluebeard63/whiterose/tree/master/shell"
click node_island "https://github.com/bluebeard63/whiterose/tree/master/shell"
click node_settings "https://github.com/bluebeard63/whiterose/tree/master/shell/settings"
click node_daemon "https://github.com/bluebeard63/whiterose/blob/master/daemon/cmd/whiterosed/main.go"
click node_server "https://github.com/bluebeard63/whiterose/blob/master/daemon/internal/server/server.go"
click node_settingsstore "https://github.com/bluebeard63/whiterose/tree/master/daemon/internal/store"
click node_files "https://github.com/bluebeard63/whiterose/blob/master/apps/files/src/main.rs"
click node_fileplaces "https://github.com/bluebeard63/whiterose/blob/master/apps/files/src/places.rs"
click node_filesearch "https://github.com/bluebeard63/whiterose/blob/master/apps/files/src/search.rs"
click node_fileops "https://github.com/bluebeard63/whiterose/blob/master/apps/files/src/ops.rs"
click node_filelaunch "https://github.com/bluebeard63/whiterose/blob/master/apps/files/src/launch.rs"
click node_notepad "https://github.com/bluebeard63/whiterose/blob/master/apps/notepad/src/main.rs"
click node_notepaddoc "https://github.com/bluebeard63/whiterose/blob/master/apps/notepad/src/doc.rs"
click node_notepadsession "https://github.com/bluebeard63/whiterose/blob/master/apps/notepad/src/session.rs"

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_launcher,node_shell,node_island,node_settings,node_user toneBlue
class node_compositor,node_wmstate,node_tiling,node_render,node_input,node_clipboard,node_capture,node_display,node_ipc toneAmber
class node_daemon,node_server,node_settingsstore toneMint
class node_files,node_fileplaces,node_filesearch,node_fileops,node_filelaunch,node_notepad,node_notepaddoc,node_notepadsession toneRose
class node_system toneIndigo
```

## Components

### Desktop session

- [Session launcher](https://github.com/bluebeard63/whiterose/blob/master/daemon/cmd/whiterose-launch/main.go): `daemon/cmd/whiterose-launch/main.go`
- [Desktop shell](https://github.com/bluebeard63/whiterose/tree/master/shell): `shell`
- [Island and panels](https://github.com/bluebeard63/whiterose/tree/master/shell): `shell`
- [Settings UI](https://github.com/bluebeard63/whiterose/tree/master/shell/settings): `shell/settings`

### Compositor

- [Wayland compositor](https://github.com/bluebeard63/whiterose/blob/master/compositor/src/main.rs): `compositor/src/main.rs`
- [Window state](https://github.com/bluebeard63/whiterose/blob/master/compositor/src/state.rs): `compositor/src/state.rs`
- [Window layouts](https://github.com/bluebeard63/whiterose/blob/master/compositor/src/layout/mod.rs): `compositor/src/layout/mod.rs`
- [Rendering](https://github.com/bluebeard63/whiterose/blob/master/compositor/src/render.rs): `compositor/src/render.rs`
- [Input and shortcuts](https://github.com/bluebeard63/whiterose/blob/master/compositor/src/input.rs): `compositor/src/input.rs`
- [Clipboard history](https://github.com/bluebeard63/whiterose/blob/master/compositor/src/clipboard.rs): `compositor/src/clipboard.rs`
- [Clipboard capture](https://github.com/bluebeard63/whiterose/blob/master/compositor/src/clipboard_capture.rs): `compositor/src/clipboard_capture.rs`
- [Display settings](https://github.com/bluebeard63/whiterose/blob/master/compositor/src/display_config.rs): `compositor/src/display_config.rs`
- [Compositor IPC](https://github.com/bluebeard63/whiterose/blob/master/compositor/src/ipc.rs): `compositor/src/ipc.rs`

### Session services

- [Session daemon](https://github.com/bluebeard63/whiterose/blob/master/daemon/cmd/whiterosed/main.go): `daemon/cmd/whiterosed/main.go`
- [Daemon socket server](https://github.com/bluebeard63/whiterose/blob/master/daemon/internal/server/server.go): `daemon/internal/server/server.go`
- [Settings store](https://github.com/bluebeard63/whiterose/tree/master/daemon/internal/store): `daemon/internal/store`

### Desktop apps

- [Files app](https://github.com/bluebeard63/whiterose/blob/master/apps/files/src/main.rs): `apps/files/src/main.rs`
- [Places and drives](https://github.com/bluebeard63/whiterose/blob/master/apps/files/src/places.rs): `apps/files/src/places.rs`
- [Indexed search](https://github.com/bluebeard63/whiterose/blob/master/apps/files/src/search.rs): `apps/files/src/search.rs`
- [File operations](https://github.com/bluebeard63/whiterose/blob/master/apps/files/src/ops.rs): `apps/files/src/ops.rs`
- [Open applications](https://github.com/bluebeard63/whiterose/blob/master/apps/files/src/launch.rs): `apps/files/src/launch.rs`
- [Notepad editor](https://github.com/bluebeard63/whiterose/blob/master/apps/notepad/src/main.rs): `apps/notepad/src/main.rs`
- [Document editing](https://github.com/bluebeard63/whiterose/blob/master/apps/notepad/src/doc.rs): `apps/notepad/src/doc.rs`
- [Editor session](https://github.com/bluebeard63/whiterose/blob/master/apps/notepad/src/session.rs): `apps/notepad/src/session.rs`

### Other components

- **Desktop user**
- **System services**

## Connections

- Desktop user → Session launcher: starts session (evidence: `README.md`)
- Session launcher → Wayland compositor: launches (evidence: `README.md`)
- Wayland compositor → Desktop shell: IPC socket (evidence: `README.md`)
- Wayland compositor → Session daemon: starts daemon (evidence: `README.md`)
- Desktop shell → Session daemon: Unix socket (evidence: `README.md`)
- Desktop user → Desktop shell: uses desktop (evidence: `README.md`)
- Desktop shell → Island and panels: shows panels (evidence: `README.md`)
- Desktop shell → Settings UI: offers settings (evidence: `README.md`)
- Wayland compositor → Window state: runs state
- Window state → Window layouts: arranges windows (evidence: `compositor/src/state.rs`)
- Window state → Rendering: schedules frames
- Window state → Display settings: applies settings (evidence: `compositor/src/state.rs`)
- Window state → Input and shortcuts: handles input
- Window state → Compositor IPC: serves IPC (evidence: `compositor/src/state.rs`)
- Window state → Clipboard history: manages clipboard (evidence: `compositor/src/state.rs`)
- Clipboard capture → Clipboard history: captures selection
- Session daemon → Daemon socket server: serves clients (evidence: `README.md`)
- Daemon socket server → Settings store: reads settings
- Session daemon → System services: uses D-Bus (evidence: `README.md`)
- Desktop user → Files app: opens files (evidence: `README.md`)
- Files app → Places and drives: loads places (evidence: `apps/files/src/main.rs`)
- Files app → Indexed search: searches files (evidence: `apps/files/src/main.rs`)
- Files app → File operations: performs operations (evidence: `apps/files/src/main.rs`)
- Files app → Open applications: opens with apps (evidence: `apps/files/src/main.rs`)
- Indexed search → Open applications: opens results (evidence: `apps/files/src/search.rs`)
- Desktop user → Notepad editor: edits text (evidence: `README.md`)
- Notepad editor → Document editing: edits documents (evidence: `apps/notepad/src/main.rs`)
- Notepad editor → Editor session: persists session (evidence: `apps/notepad/src/main.rs`)
- Editor session → Document editing: writes scratch (evidence: `apps/notepad/src/session.rs`)
