# zaynlabs/joyos architecture

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

- Interactive diagram: https://gitdiagram.com/zaynlabs/joyos
- Repository: https://github.com/zaynlabs/joyos

## Overview

JoyOS is a Windows couch-console shell: users navigate with a controller or phone remote, browse games and apps, and launch or control them without a mouse. The main path runs from input through the shell and library-backed screens to launching a title. Other documented capabilities include watch sites, family profiles, settings, the floating keyboard, system controls, add-ons, syncing, updates, and localization. Some edges rely on README statements or the source index because the relevant implementation excerpts were not shown; those limits are reflected in the evidence paths.

Main entry points: [`src/app.rs`](https://github.com/zaynlabs/joyos/blob/main/src/app.rs) (JoyOS shell), [`src/ui/settings.rs`](https://github.com/zaynlabs/joyos/blob/main/src/ui/settings.rs) (Settings screens), [`src/ui/keyboard.rs`](https://github.com/zaynlabs/joyos/blob/main/src/ui/keyboard.rs) (On-screen keyboard), [`src/input.rs`](https://github.com/zaynlabs/joyos/blob/main/src/input.rs) (Controller input)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Input and shell"]
  node_controller["Controller input<br/>[input.rs]"]
  node_phone["Phone remote<br/>[companion.rs]"]
  node_shell["JoyOS shell<br/>[app.rs]"]
end

subgraph group_library["Games and media"]
  node_library_scan["Game and app discovery<br/>[mod.rs]"]
  node_store_sources["Store and ROM sources"]
  node_art["Cover art<br/>[art.rs]"]
end

subgraph group_windows["Windows features"]
  node_launch["Launch and kiosk<br/>[launch.rs]"]
  node_input_injection["Input injection<br/>[inject.rs]"]
  node_window["Window management<br/>[window.rs]"]
  node_system_controls["Windows system controls"]
end

subgraph group_preferences["Settings and services"]
  node_settings[("Settings and profiles<br/>[settings.rs]")]
  node_household["Family profiles<br/>[household.rs]"]
  node_license["Plan licensing<br/>[license.rs]"]
  node_sync["Settings sync<br/>[sync.rs]"]
  node_plugins["Add-ons<br/>[plugins.rs]"]
  node_updates["Update checks<br/>[update.rs]"]
  node_search_words["Search history<br/>[words.rs]"]
end

subgraph group_presentation["Screens and language"]
  node_screens["Home and browse screens"]
  node_watch["Watch sites<br/>[watch.rs]"]
  node_settings_screen["Settings screens<br/>[settings.rs]"]
  node_keyboard_ui["On-screen keyboard<br/>[keyboard.rs]"]
  node_localization["Localization<br/>[i18n.rs]"]
end

node_user(("Player"))

node_user -->|"presses"| node_controller
node_controller -->|"sends events"| node_shell
node_phone -->|"sends events"| node_controller
node_shell -->|"renders"| node_screens
node_shell -->|"rescans"| node_library_scan
node_library_scan -->|"scans sources"| node_store_sources
node_library_scan -->|"fills covers"| node_art
node_screens -->|"requests actions"| node_shell
node_shell -->|"opens titles"| node_launch
node_shell -->|"reads and saves"| node_settings
node_settings_screen -->|"changes preferences"| node_settings
node_settings_screen -->|"manages profiles"| node_household
node_settings_screen -->|"checks plan"| node_license
node_settings_screen -->|"configures remote"| node_phone
node_settings_screen -->|"configures add-ons"| node_plugins
node_shell -->|"starts sync"| node_sync
node_shell -->|"loads add-ons"| node_plugins
node_shell -->|"checks updates"| node_updates
node_keyboard_ui -->|"uses suggestions"| node_search_words
node_keyboard_ui -->|"shows translations"| node_localization
node_settings_screen -->|"selects language"| node_localization
node_controller -->|"injects controls"| node_input_injection
node_keyboard_ui -->|"types into apps"| node_input_injection
node_keyboard_ui -->|"uses overlay"| node_window
node_shell -->|"controls Windows"| node_system_controls
node_watch -.->|"opens web pages"| node_launch
node_household -->|"stores family data"| node_settings
node_sync -->|"syncs preferences"| node_settings

click node_controller "https://github.com/zaynlabs/joyos/blob/main/src/input.rs"
click node_phone "https://github.com/zaynlabs/joyos/blob/main/src/companion.rs"
click node_shell "https://github.com/zaynlabs/joyos/blob/main/src/app.rs"
click node_library_scan "https://github.com/zaynlabs/joyos/blob/main/src/library/mod.rs"
click node_store_sources "https://github.com/zaynlabs/joyos/tree/main/src/library"
click node_art "https://github.com/zaynlabs/joyos/blob/main/src/library/art.rs"
click node_screens "https://github.com/zaynlabs/joyos/tree/main/src/ui"
click node_watch "https://github.com/zaynlabs/joyos/blob/main/src/ui/watch.rs"
click node_settings_screen "https://github.com/zaynlabs/joyos/blob/main/src/ui/settings.rs"
click node_keyboard_ui "https://github.com/zaynlabs/joyos/blob/main/src/ui/keyboard.rs"
click node_localization "https://github.com/zaynlabs/joyos/blob/main/src/i18n.rs"
click node_launch "https://github.com/zaynlabs/joyos/blob/main/src/system/launch.rs"
click node_input_injection "https://github.com/zaynlabs/joyos/blob/main/src/system/inject.rs"
click node_window "https://github.com/zaynlabs/joyos/blob/main/src/system/window.rs"
click node_system_controls "https://github.com/zaynlabs/joyos/tree/main/src/system"
click node_settings "https://github.com/zaynlabs/joyos/blob/main/src/settings.rs"
click node_household "https://github.com/zaynlabs/joyos/blob/main/src/household.rs"
click node_license "https://github.com/zaynlabs/joyos/blob/main/src/license.rs"
click node_sync "https://github.com/zaynlabs/joyos/blob/main/src/sync.rs"
click node_plugins "https://github.com/zaynlabs/joyos/blob/main/src/plugins.rs"
click node_updates "https://github.com/zaynlabs/joyos/blob/main/src/update.rs"
click node_search_words "https://github.com/zaynlabs/joyos/blob/main/src/words.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_controller,node_phone,node_shell toneBlue
class node_library_scan,node_store_sources,node_art toneAmber
class node_launch,node_input_injection,node_window,node_system_controls toneMint
class node_settings,node_household,node_license,node_sync,node_plugins,node_updates,node_search_words toneRose
class node_screens,node_watch,node_settings_screen,node_keyboard_ui,node_localization,node_user toneIndigo
```

## Components

### Input and shell

- [Controller input](https://github.com/zaynlabs/joyos/blob/main/src/input.rs): `src/input.rs`
- [Phone remote](https://github.com/zaynlabs/joyos/blob/main/src/companion.rs): `src/companion.rs`
- [JoyOS shell](https://github.com/zaynlabs/joyos/blob/main/src/app.rs): `src/app.rs`

### Games and media

- [Game and app discovery](https://github.com/zaynlabs/joyos/blob/main/src/library/mod.rs): `src/library/mod.rs`
- [Store and ROM sources](https://github.com/zaynlabs/joyos/tree/main/src/library): `src/library`
- [Cover art](https://github.com/zaynlabs/joyos/blob/main/src/library/art.rs): `src/library/art.rs`

### Windows features

- [Launch and kiosk](https://github.com/zaynlabs/joyos/blob/main/src/system/launch.rs): `src/system/launch.rs`
- [Input injection](https://github.com/zaynlabs/joyos/blob/main/src/system/inject.rs): `src/system/inject.rs`
- [Window management](https://github.com/zaynlabs/joyos/blob/main/src/system/window.rs): `src/system/window.rs`
- [Windows system controls](https://github.com/zaynlabs/joyos/tree/main/src/system): `src/system`

### Settings and services

- [Settings and profiles](https://github.com/zaynlabs/joyos/blob/main/src/settings.rs): `src/settings.rs`
- [Family profiles](https://github.com/zaynlabs/joyos/blob/main/src/household.rs): `src/household.rs`
- [Plan licensing](https://github.com/zaynlabs/joyos/blob/main/src/license.rs): `src/license.rs`
- [Settings sync](https://github.com/zaynlabs/joyos/blob/main/src/sync.rs): `src/sync.rs`
- [Add-ons](https://github.com/zaynlabs/joyos/blob/main/src/plugins.rs): `src/plugins.rs`
- [Update checks](https://github.com/zaynlabs/joyos/blob/main/src/update.rs): `src/update.rs`
- [Search history](https://github.com/zaynlabs/joyos/blob/main/src/words.rs): `src/words.rs`

### Screens and language

- [Home and browse screens](https://github.com/zaynlabs/joyos/tree/main/src/ui): `src/ui`
- [Watch sites](https://github.com/zaynlabs/joyos/blob/main/src/ui/watch.rs): `src/ui/watch.rs`
- [Settings screens](https://github.com/zaynlabs/joyos/blob/main/src/ui/settings.rs): `src/ui/settings.rs`
- [On-screen keyboard](https://github.com/zaynlabs/joyos/blob/main/src/ui/keyboard.rs): `src/ui/keyboard.rs`
- [Localization](https://github.com/zaynlabs/joyos/blob/main/src/i18n.rs): `src/i18n.rs`

### Other components

- **Player**

## Connections

- Player → Controller input: presses (evidence: `README.md`)
- Controller input → JoyOS shell: sends events (evidence: `src/app.rs`)
- Phone remote → Controller input: sends events (evidence: `src/companion.rs`)
- JoyOS shell → Home and browse screens: renders (evidence: `src/ui/mod.rs`)
- JoyOS shell → Game and app discovery: rescans (evidence: `src/app.rs`)
- Game and app discovery → Store and ROM sources: scans sources (evidence: `src/library/mod.rs`)
- Game and app discovery → Cover art: fills covers (evidence: `src/library/mod.rs`)
- Home and browse screens → JoyOS shell: requests actions (evidence: `src/ui/mod.rs`)
- JoyOS shell → Launch and kiosk: opens titles (evidence: `src/app.rs`)
- JoyOS shell → Settings and profiles: reads and saves (evidence: `src/app.rs`)
- Settings screens → Settings and profiles: changes preferences (evidence: `src/ui/settings.rs`)
- Settings screens → Family profiles: manages profiles (evidence: `src/ui/settings.rs`)
- Settings screens → Plan licensing: checks plan (evidence: `src/ui/settings.rs`)
- Settings screens → Phone remote: configures remote (evidence: `src/ui/settings.rs`)
- Settings screens → Add-ons: configures add-ons (evidence: `src/ui/settings.rs`)
- JoyOS shell → Settings sync: starts sync (evidence: `src/app.rs`)
- JoyOS shell → Add-ons: loads add-ons (evidence: `src/app.rs`)
- JoyOS shell → Update checks: checks updates (evidence: `src/app.rs`)
- On-screen keyboard → Search history: uses suggestions (evidence: `src/osk.rs`)
- On-screen keyboard → Localization: shows translations (evidence: `src/ui/keyboard.rs`)
- Settings screens → Localization: selects language (evidence: `src/ui/settings.rs`)
- Controller input → Input injection: injects controls (evidence: `src/input.rs`)
- On-screen keyboard → Input injection: types into apps (evidence: `src/osk.rs`)
- On-screen keyboard → Window management: uses overlay (evidence: `src/osk.rs`)
- JoyOS shell → Windows system controls: controls Windows (evidence: `src/app.rs`)
- Watch sites → Launch and kiosk: opens web pages (evidence: `README.md`)
- Family profiles → Settings and profiles: stores family data (evidence: `src/household.rs`)
- Settings sync → Settings and profiles: syncs preferences (evidence: `src/sync.rs`)
