# seetao-sott/desktop-island architecture

> Architecture diagram of the GitHub repository seetao-sott/desktop-island, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/seetao-sott/desktop-island
- Repository: https://github.com/seetao-sott/desktop-island

## Overview

Desktop Island is a Windows desktop companion combining a hover-expanded island, a file-organizing edge shelf, and wallpaper-level widgets. The user workflow spans island alerts and controls, shelf file operations, and widget editing, display, and theming; the rhythm game and screen-edge audio effects are additional product features. The README documents several cross-layer behaviors; source excerpts show the island and widget entry points and selected implementation links. Other subsystem connections are shown only where documented, so unsampled implementation details are not inferred.

Main entry points: [`src-tauri/src/main.rs`](https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/main.rs) (Tauri host), [`src/widgets/main.ts`](https://github.com/seetao-sott/desktop-island/blob/main/src/widgets/main.ts) (Widget editor and runtime), [`src-tauri/src/shelf_fs.rs`](https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/shelf_fs.rs) (Shelf filesystem), [`src/widgets/rhythm.ts`](https://github.com/seetao-sott/desktop-island/blob/main/src/widgets/rhythm.ts) (Rhythm game)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_island["Island and system"]
  node_island_ui["Island interface<br/>[main.ts]"]
  node_island_host["Tauri host<br/>[main.rs]"]
  node_media["Media controls<br/>[media.rs]"]
  node_pomodoro["Pomodoro timer<br/>[pomodoro.rs]"]
  node_alerts["System alerts<br/>[alerts.rs]"]
  node_fullscreen["Fullscreen detection<br/>[fullscreen.rs]"]
  node_desktop["Desktop controls<br/>[desktop.rs]"]
end

subgraph group_shelf["Shelf and files"]
  node_shelf_ui["Shelf interface<br/>[shelf.ts]"]
  node_shelf_api["Shelf API client<br/>[shelf-api.ts]"]
  node_shelf_backend["Shelf commands<br/>[shelf_cmds.rs]"]
  node_shelf_fs["Shelf filesystem<br/>[shelf_fs.rs]"]
  node_fileops["Safe file operations<br/>[fileops.rs]"]
  node_migration["Desktop migration<br/>[migrate.rs]"]
end

subgraph group_widgets["Desktop widgets"]
  node_widgets_ui["Widget editor and runtime<br/>[main.ts]"]
  node_widget_models["Widget models"]
  node_widget_skins["Widget themes"]
  node_widget_grid["Widget layout grid<br/>[grid.ts]"]
  node_widget_audio_view["Audio visualization<br/>[audio.ts]"]
  node_widget_native["Widget host<br/>[widgets.rs]"]
  node_wallpaper_theme["Wallpaper theming<br/>[theme.rs]"]
  node_wallpaper["Wallpaper integration<br/>[wallpaper.rs]"]
end

subgraph group_rhythm["Audio experiences"]
  node_rhythm_game["Rhythm game<br/>[rhythm.ts]"]
  node_chart_library["Chart loading<br/>[chart.rs]"]
  node_osu_parser["osu chart parser<br/>[osu.rs]"]
  node_audio_capture["System audio capture<br/>[audio.rs]"]
  node_edge_glow["Screen-edge glow<br/>[edge.ts]"]
end

node_user(("User"))
node_windows(("Windows desktop"))
node_wallpaper_engine["Wallpaper Engine"]

node_user -->|"uses"| node_island_ui
node_island_ui -->|"invokes commands"| node_island_host
node_island_host -->|"registers"| node_media
node_island_host -->|"commands timer"| node_pomodoro
node_island_host -->|"reads alerts"| node_alerts
node_island_host -->|"hides on fullscreen"| node_fullscreen
node_island_host -->|"controls desktop"| node_desktop
node_user -->|"organizes files"| node_shelf_ui
node_shelf_ui -->|"calls"| node_shelf_api
node_shelf_api -->|"invokes commands"| node_shelf_backend
node_shelf_backend -->|"performs operations"| node_shelf_fs
node_shelf_fs -->|"moves files"| node_fileops
node_shelf_fs -->|"supports migration"| node_migration
node_user -->|"edits widgets"| node_widgets_ui
node_widgets_ui -->|"creates models"| node_widget_models
node_widgets_ui -->|"renders with"| node_widget_skins
node_widgets_ui -->|"positions on"| node_widget_grid
node_widget_models -->|"provides view data"| node_widget_skins
node_widget_audio_view -->|"implements audio view"| node_widget_skins
node_widgets_ui -->|"uses for audio"| node_widget_audio_view
node_widgets_ui -->|"saves layout"| node_widget_native
node_widget_native -->|"updates theme"| node_wallpaper_theme
node_wallpaper_theme -->|"gets wallpaper colors"| node_wallpaper
node_wallpaper -.->|"queries wallpaper"| node_wallpaper_engine
node_user -->|"plays charts"| node_rhythm_game
node_rhythm_game -->|"loads songs"| node_chart_library
node_chart_library -->|"parses charts"| node_osu_parser
node_rhythm_game -->|"sets now playing"| node_island_host
node_user -->|"enables effect"| node_edge_glow
node_audio_capture -.->|"provides audio"| node_edge_glow
node_audio_capture -.->|"feeds visualization"| node_widget_audio_view
node_windows -->|"provides loopback audio"| node_audio_capture

click node_island_ui "https://github.com/seetao-sott/desktop-island/blob/main/src/main.ts"
click node_island_host "https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/main.rs"
click node_media "https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/media.rs"
click node_pomodoro "https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/pomodoro.rs"
click node_alerts "https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/alerts.rs"
click node_fullscreen "https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/fullscreen.rs"
click node_desktop "https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/desktop.rs"
click node_shelf_ui "https://github.com/seetao-sott/desktop-island/blob/main/src/shelf.ts"
click node_shelf_api "https://github.com/seetao-sott/desktop-island/blob/main/src/shelf-api.ts"
click node_shelf_backend "https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/shelf_cmds.rs"
click node_shelf_fs "https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/shelf_fs.rs"
click node_fileops "https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/fileops.rs"
click node_migration "https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/shelf_fs/migrate.rs"
click node_widgets_ui "https://github.com/seetao-sott/desktop-island/blob/main/src/widgets/main.ts"
click node_widget_models "https://github.com/seetao-sott/desktop-island/tree/main/src/widgets/kinds"
click node_widget_skins "https://github.com/seetao-sott/desktop-island/tree/main/src/widgets/skins"
click node_widget_grid "https://github.com/seetao-sott/desktop-island/blob/main/src/widgets/grid.ts"
click node_widget_audio_view "https://github.com/seetao-sott/desktop-island/blob/main/src/widgets/views/audio.ts"
click node_widget_native "https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/widgets.rs"
click node_wallpaper_theme "https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/theme.rs"
click node_wallpaper "https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/wallpaper.rs"
click node_rhythm_game "https://github.com/seetao-sott/desktop-island/blob/main/src/widgets/rhythm.ts"
click node_chart_library "https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/chart.rs"
click node_osu_parser "https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/osu.rs"
click node_audio_capture "https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/audio.rs"
click node_edge_glow "https://github.com/seetao-sott/desktop-island/blob/main/src/edge/edge.ts"

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_island_ui,node_island_host,node_media,node_pomodoro,node_alerts,node_fullscreen,node_desktop,node_user toneBlue
class node_shelf_ui,node_shelf_api,node_shelf_backend,node_shelf_fs,node_fileops,node_migration toneAmber
class node_widgets_ui,node_widget_models,node_widget_skins,node_widget_grid,node_widget_audio_view,node_widget_native,node_wallpaper_theme,node_wallpaper toneMint
class node_rhythm_game,node_chart_library,node_osu_parser,node_audio_capture,node_edge_glow toneRose
class node_windows,node_wallpaper_engine toneIndigo
```

## Components

### Island and system

- [Island interface](https://github.com/seetao-sott/desktop-island/blob/main/src/main.ts): `src/main.ts`
- [Tauri host](https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/main.rs): `src-tauri/src/main.rs`
- [Media controls](https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/media.rs): `src-tauri/src/media.rs`
- [Pomodoro timer](https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/pomodoro.rs): `src-tauri/src/pomodoro.rs`
- [System alerts](https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/alerts.rs): `src-tauri/src/alerts.rs`
- [Fullscreen detection](https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/fullscreen.rs): `src-tauri/src/fullscreen.rs`
- [Desktop controls](https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/desktop.rs): `src-tauri/src/desktop.rs`

### Shelf and files

- [Shelf interface](https://github.com/seetao-sott/desktop-island/blob/main/src/shelf.ts): `src/shelf.ts`
- [Shelf API client](https://github.com/seetao-sott/desktop-island/blob/main/src/shelf-api.ts): `src/shelf-api.ts`
- [Shelf commands](https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/shelf_cmds.rs): `src-tauri/src/shelf_cmds.rs`
- [Shelf filesystem](https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/shelf_fs.rs): `src-tauri/src/shelf_fs.rs`
- [Safe file operations](https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/fileops.rs): `src-tauri/src/fileops.rs`
- [Desktop migration](https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/shelf_fs/migrate.rs): `src-tauri/src/shelf_fs/migrate.rs`

### Desktop widgets

- [Widget editor and runtime](https://github.com/seetao-sott/desktop-island/blob/main/src/widgets/main.ts): `src/widgets/main.ts`
- [Widget models](https://github.com/seetao-sott/desktop-island/tree/main/src/widgets/kinds): `src/widgets/kinds`
- [Widget themes](https://github.com/seetao-sott/desktop-island/tree/main/src/widgets/skins): `src/widgets/skins`
- [Widget layout grid](https://github.com/seetao-sott/desktop-island/blob/main/src/widgets/grid.ts): `src/widgets/grid.ts`
- [Audio visualization](https://github.com/seetao-sott/desktop-island/blob/main/src/widgets/views/audio.ts): `src/widgets/views/audio.ts`
- [Widget host](https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/widgets.rs): `src-tauri/src/widgets.rs`
- [Wallpaper theming](https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/theme.rs): `src-tauri/src/theme.rs`
- [Wallpaper integration](https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/wallpaper.rs): `src-tauri/src/wallpaper.rs`

### Audio experiences

- [Rhythm game](https://github.com/seetao-sott/desktop-island/blob/main/src/widgets/rhythm.ts): `src/widgets/rhythm.ts`
- [Chart loading](https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/chart.rs): `src-tauri/src/chart.rs`
- [osu chart parser](https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/osu.rs): `src-tauri/src/osu.rs`
- [System audio capture](https://github.com/seetao-sott/desktop-island/blob/main/src-tauri/src/audio.rs): `src-tauri/src/audio.rs`
- [Screen-edge glow](https://github.com/seetao-sott/desktop-island/blob/main/src/edge/edge.ts): `src/edge/edge.ts`

### Other components

- **User**
- **Windows desktop**
- **Wallpaper Engine**

## Connections

- User → Island interface: uses
- Island interface → Tauri host: invokes commands (evidence: `src/main.ts`)
- Tauri host → Media controls: registers (evidence: `src-tauri/src/main.rs`)
- Tauri host → Pomodoro timer: commands timer (evidence: `src-tauri/src/main.rs`)
- Tauri host → System alerts: reads alerts (evidence: `src-tauri/src/main.rs`)
- Tauri host → Fullscreen detection: hides on fullscreen (evidence: `src-tauri/src/main.rs`)
- Tauri host → Desktop controls: controls desktop (evidence: `src-tauri/src/main.rs`)
- User → Shelf interface: organizes files
- Shelf interface → Shelf API client: calls (evidence: `src/shelf.ts`)
- Shelf API client → Shelf commands: invokes commands
- Shelf commands → Shelf filesystem: performs operations
- Shelf filesystem → Safe file operations: moves files (evidence: `src-tauri/src/shelf_fs.rs`)
- Shelf filesystem → Desktop migration: supports migration (evidence: `src-tauri/src/shelf_fs/migrate.rs`)
- User → Widget editor and runtime: edits widgets
- Widget editor and runtime → Widget models: creates models (evidence: `src/widgets/main.ts`)
- Widget editor and runtime → Widget themes: renders with (evidence: `src/widgets/main.ts`)
- Widget editor and runtime → Widget layout grid: positions on (evidence: `src/widgets/main.ts`)
- Widget models → Widget themes: provides view data (evidence: `src/widgets/skins/types.ts`)
- Audio visualization → Widget themes: implements audio view (evidence: `src/widgets/views/audio.ts`)
- Widget editor and runtime → Audio visualization: uses for audio (evidence: `src/widgets/main.ts`)
- Widget editor and runtime → Widget host: saves layout
- Widget host → Wallpaper theming: updates theme
- Wallpaper theming → Wallpaper integration: gets wallpaper colors
- Wallpaper integration → Wallpaper Engine: queries wallpaper
- User → Rhythm game: plays charts
- Rhythm game → Chart loading: loads songs
- Chart loading → osu chart parser: parses charts (evidence: `src-tauri/src/chart.rs`)
- Rhythm game → Tauri host: sets now playing
- User → Screen-edge glow: enables effect
- System audio capture → Screen-edge glow: provides audio
- System audio capture → Audio visualization: feeds visualization
- Windows desktop → System audio capture: provides loopback audio
