# renzyxx/wacos architecture

> Architecture diagram of the GitHub repository renzyxx/wacos, 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/renzyxx/wacos
- Repository: https://github.com/renzyxx/wacos

## Overview

WacOS is a native C++ macOS-style desktop shell running over Windows 11, alongside Windows’ kernel, drivers, and applications. The principal user workflow is interacting with the replacement desktop shell and opening its built-in experiences; System Settings provides appearance and system controls. The graph preserves documented shell capabilities and major apps, plus shared rendering, settings, and presentation layers. Source excerpts are partial, so edges are limited to documented relationships and indexed imports; unsampled feature wiring is not inferred.

Main entry points: [`src/shell/main.cpp`](https://github.com/renzyxx/wacos/blob/main/src/shell/main.cpp) (Desktop shell), [`src/ajustes/main.cpp`](https://github.com/renzyxx/wacos/blob/main/src/ajustes/main.cpp) (System Settings), [`src/finder/main.cpp`](https://github.com/renzyxx/wacos/blob/main/src/finder/main.cpp) (Finder), [`src/notas/main.cpp`](https://github.com/renzyxx/wacos/blob/main/src/notas/main.cpp) (Notes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop shell"]
  node_shell["Desktop shell<br/>[main.cpp]"]
  node_finder["Finder<br/>[main.cpp]"]
  node_spotlight["Spotlight<br/>[spotlight.cpp]"]
  node_window_controls["Window controls<br/>[controles.cpp]"]
  node_shell_api["Shell interfaces<br/>[shell.h]"]
end

subgraph group_apps["Built-in apps"]
  node_system_settings["System Settings<br/>[main.cpp]"]
  node_notes["Notes<br/>[main.cpp]"]
  node_built_in_apps["Built-in apps"]
  node_notes_drawing["Notes drawing<br/>[tinta.h]"]
end

subgraph group_shared["Shared presentation"]
  node_app2d["2D app base<br/>[app2d.h]"]
  node_context_menu["Context menus<br/>[context_menu.cpp]"]
  node_glass["Glass rendering<br/>[vidro.h]"]
  node_window_buttons["Window button styling<br/>[semaforo.h]"]
  node_leopard_theme["Leopard styling<br/>[leopard.h]"]
  node_zoom_support["Window zoom support<br/>[ampliacao.h]"]
end

subgraph group_common["Shared services"]
  node_settings_file["Settings storage<br/>[ajustes_arquivo.h]"]
  node_language["Localization<br/>[idioma.h]"]
  node_cjk_fonts["CJK font fallback<br/>[fonte_cjk.h]"]
  node_gpu["GPU support<br/>[gpu.h]"]
  node_icons["Symbol resources<br/>[simbolos.h]"]
  node_cloud["Cloud support<br/>[nuvem.h]"]
  node_siri["Siri support<br/>[siri.h]"]
  node_open_with["Open-with support<br/>[abrircom.h]"]
end

node_user(("Desktop user"))
node_windows["Windows 11"]

node_user -->|"uses desktop"| node_shell
node_windows -->|"hosts shell"| node_shell
node_shell -->|"offers Finder"| node_finder
node_shell -->|"offers Spotlight"| node_spotlight
node_shell -->|"offers settings"| node_system_settings
node_shell -->|"offers apps"| node_built_in_apps
node_shell -->|"implements interfaces"| node_shell_api
node_system_settings -->|"imports settings"| node_settings_file
node_system_settings -->|"imports menus"| node_context_menu
node_system_settings -->|"imports rendering"| node_glass
node_system_settings -->|"imports fonts"| node_cjk_fonts
node_finder -->|"imports menus"| node_context_menu
node_finder -->|"imports open-with"| node_open_with
node_finder -->|"imports cloud support"| node_cloud
node_notes -->|"uses drawing"| node_notes_drawing
node_notes -->|"imports Siri"| node_siri
node_built_in_apps -.->|"uses shared base"| node_app2d
node_shell -.->|"provides controls"| node_window_controls
node_shell -.->|"uses localization"| node_language
node_shell -.->|"uses symbols"| node_icons
node_shell -.->|"uses styling"| node_window_buttons
node_shell -.->|"supports theme"| node_leopard_theme
node_shell -.->|"supports zoom"| node_zoom_support
node_shell -.->|"uses GPU support"| node_gpu

click node_shell "https://github.com/renzyxx/wacos/blob/main/src/shell/main.cpp"
click node_finder "https://github.com/renzyxx/wacos/blob/main/src/finder/main.cpp"
click node_spotlight "https://github.com/renzyxx/wacos/blob/main/src/shell/spotlight.cpp"
click node_system_settings "https://github.com/renzyxx/wacos/blob/main/src/ajustes/main.cpp"
click node_notes "https://github.com/renzyxx/wacos/blob/main/src/notas/main.cpp"
click node_built_in_apps "https://github.com/renzyxx/wacos/tree/main/src"
click node_window_controls "https://github.com/renzyxx/wacos/blob/main/src/janelas/controles.cpp"
click node_app2d "https://github.com/renzyxx/wacos/blob/main/src/comum/app2d.h"
click node_context_menu "https://github.com/renzyxx/wacos/blob/main/src/menu/context_menu.cpp"
click node_settings_file "https://github.com/renzyxx/wacos/blob/main/src/comum/ajustes_arquivo.h"
click node_language "https://github.com/renzyxx/wacos/blob/main/src/comum/idioma.h"
click node_cjk_fonts "https://github.com/renzyxx/wacos/blob/main/src/comum/fonte_cjk.h"
click node_gpu "https://github.com/renzyxx/wacos/blob/main/src/comum/gpu.h"
click node_icons "https://github.com/renzyxx/wacos/blob/main/src/comum/simbolos.h"
click node_cloud "https://github.com/renzyxx/wacos/blob/main/src/comum/nuvem.h"
click node_siri "https://github.com/renzyxx/wacos/blob/main/src/comum/siri.h"
click node_glass "https://github.com/renzyxx/wacos/blob/main/src/comum/vidro.h"
click node_window_buttons "https://github.com/renzyxx/wacos/blob/main/src/comum/semaforo.h"
click node_leopard_theme "https://github.com/renzyxx/wacos/blob/main/src/comum/leopard.h"
click node_zoom_support "https://github.com/renzyxx/wacos/blob/main/src/comum/ampliacao.h"
click node_open_with "https://github.com/renzyxx/wacos/blob/main/src/comum/abrircom.h"
click node_notes_drawing "https://github.com/renzyxx/wacos/blob/main/src/notas/tinta.h"
click node_shell_api "https://github.com/renzyxx/wacos/blob/main/src/shell/shell.h"

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_shell,node_finder,node_spotlight,node_window_controls,node_shell_api,node_user toneBlue
class node_system_settings,node_notes,node_built_in_apps,node_notes_drawing toneAmber
class node_app2d,node_context_menu,node_glass,node_window_buttons,node_leopard_theme,node_zoom_support toneMint
class node_settings_file,node_language,node_cjk_fonts,node_gpu,node_icons,node_cloud,node_siri,node_open_with toneRose
class node_windows toneIndigo
```

## Components

### Desktop shell

- [Desktop shell](https://github.com/renzyxx/wacos/blob/main/src/shell/main.cpp): `src/shell/main.cpp`
- [Finder](https://github.com/renzyxx/wacos/blob/main/src/finder/main.cpp): `src/finder/main.cpp`
- [Spotlight](https://github.com/renzyxx/wacos/blob/main/src/shell/spotlight.cpp): `src/shell/spotlight.cpp`
- [Window controls](https://github.com/renzyxx/wacos/blob/main/src/janelas/controles.cpp): `src/janelas/controles.cpp`
- [Shell interfaces](https://github.com/renzyxx/wacos/blob/main/src/shell/shell.h): `src/shell/shell.h`

### Built-in apps

- [System Settings](https://github.com/renzyxx/wacos/blob/main/src/ajustes/main.cpp): `src/ajustes/main.cpp`
- [Notes](https://github.com/renzyxx/wacos/blob/main/src/notas/main.cpp): `src/notas/main.cpp`
- [Built-in apps](https://github.com/renzyxx/wacos/tree/main/src): `src`
- [Notes drawing](https://github.com/renzyxx/wacos/blob/main/src/notas/tinta.h): `src/notas/tinta.h`

### Shared presentation

- [2D app base](https://github.com/renzyxx/wacos/blob/main/src/comum/app2d.h): `src/comum/app2d.h`
- [Context menus](https://github.com/renzyxx/wacos/blob/main/src/menu/context_menu.cpp): `src/menu/context_menu.cpp`
- [Glass rendering](https://github.com/renzyxx/wacos/blob/main/src/comum/vidro.h): `src/comum/vidro.h`
- [Window button styling](https://github.com/renzyxx/wacos/blob/main/src/comum/semaforo.h): `src/comum/semaforo.h`
- [Leopard styling](https://github.com/renzyxx/wacos/blob/main/src/comum/leopard.h): `src/comum/leopard.h`
- [Window zoom support](https://github.com/renzyxx/wacos/blob/main/src/comum/ampliacao.h): `src/comum/ampliacao.h`

### Shared services

- [Settings storage](https://github.com/renzyxx/wacos/blob/main/src/comum/ajustes_arquivo.h): `src/comum/ajustes_arquivo.h`
- [Localization](https://github.com/renzyxx/wacos/blob/main/src/comum/idioma.h): `src/comum/idioma.h`
- [CJK font fallback](https://github.com/renzyxx/wacos/blob/main/src/comum/fonte_cjk.h): `src/comum/fonte_cjk.h`
- [GPU support](https://github.com/renzyxx/wacos/blob/main/src/comum/gpu.h): `src/comum/gpu.h`
- [Symbol resources](https://github.com/renzyxx/wacos/blob/main/src/comum/simbolos.h): `src/comum/simbolos.h`
- [Cloud support](https://github.com/renzyxx/wacos/blob/main/src/comum/nuvem.h): `src/comum/nuvem.h`
- [Siri support](https://github.com/renzyxx/wacos/blob/main/src/comum/siri.h): `src/comum/siri.h`
- [Open-with support](https://github.com/renzyxx/wacos/blob/main/src/comum/abrircom.h): `src/comum/abrircom.h`

### Other components

- **Desktop user**
- **Windows 11**

## Connections

- Desktop user → Desktop shell: uses desktop
- Windows 11 → Desktop shell: hosts shell
- Desktop shell → Finder: offers Finder
- Desktop shell → Spotlight: offers Spotlight
- Desktop shell → System Settings: offers settings
- Desktop shell → Built-in apps: offers apps (evidence: `src/shell/main.cpp`)
- Desktop shell → Shell interfaces: implements interfaces (evidence: `src/shell/main.cpp`)
- System Settings → Settings storage: imports settings (evidence: `src/ajustes/main.cpp`)
- System Settings → Context menus: imports menus (evidence: `src/ajustes/main.cpp`)
- System Settings → Glass rendering: imports rendering (evidence: `src/ajustes/main.cpp`)
- System Settings → CJK font fallback: imports fonts (evidence: `src/ajustes/main.cpp`)
- Finder → Context menus: imports menus (evidence: `src/finder/main.cpp`)
- Finder → Open-with support: imports open-with (evidence: `src/finder/main.cpp`)
- Finder → Cloud support: imports cloud support (evidence: `src/finder/main.cpp`)
- Notes → Notes drawing: uses drawing (evidence: `src/notas/main.cpp`)
- Notes → Siri support: imports Siri (evidence: `src/notas/main.cpp`)
- Built-in apps → 2D app base: uses shared base (evidence: `src/calendario/main.cpp`)
- Desktop shell → Window controls: provides controls
- Desktop shell → Localization: uses localization (evidence: `src/shell/main.cpp`)
- Desktop shell → Symbol resources: uses symbols (evidence: `src/shell/main.cpp`)
- Desktop shell → Window button styling: uses styling
- Desktop shell → Leopard styling: supports theme
- Desktop shell → Window zoom support: supports zoom
- Desktop shell → GPU support: uses GPU support
