# anomal3/freeopensourcesystemai architecture

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

- Interactive diagram: https://gitdiagram.com/anomal3/freeopensourcesystemai
- Repository: https://github.com/anomal3/freeopensourcesystemai

## Overview

FossAi is a Rust operating system: UEFI starts the kernel, which initializes hardware and system services; users then interact through a Windows-style desktop and bundled applications. The repository also includes installation, networking, Linux compatibility, and system updates. The graph emphasizes those user-visible stages and the kernel’s filesystem, scheduling, and permission layers. Edges are limited to relationships shown in the sampled entry-point references or stated in the README; many unsampled subsystem internals are therefore not connected.

Main entry points: [`crates/kernel/src/main.rs`](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/main.rs) (Kernel startup), [`crates/kernel/src/ui/mod.rs`](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/ui/mod.rs) (Desktop shell), [`crates/boot-uefi/src/main.rs`](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/boot-uefi/src/main.rs) (UEFI bootloader), [`crates/kernel/src/fs/mod.rs`](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/fs/mod.rs) (Filesystem drivers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_boot["Boot and install"]
  node_uefi["UEFI bootloader<br/>[main.rs]"]
  node_handoff["Boot handoff<br/>[handoff.rs]"]
  node_bootvolume["Boot volume<br/>[volume.rs]"]
  node_slots["A/B slots<br/>[slot.rs]"]
  node_installer["Installer<br/>[main.rs]"]
end

subgraph group_kernel["Kernel services"]
  node_kernel["Kernel startup<br/>[main.rs]"]
  node_sched["Task scheduler<br/>[mod.rs]"]
  node_sync["Synchronization<br/>[sync.rs]"]
  node_block["Block devices<br/>[mod.rs]"]
  node_fs["Filesystem drivers<br/>[mod.rs]"]
  node_vfs["Virtual filesystem<br/>[mod.rs]"]
  node_permissions["File permissions<br/>[perm.rs]"]
  node_ramvol["RAM volumes<br/>[ramvol.rs]"]
end

subgraph group_desktop["Desktop and apps"]
  node_desktop["Desktop shell<br/>[mod.rs]"]
  node_ui["UI toolkit<br/>[lib.rs]"]
  node_programs["User applications<br/>[lib.rs]"]
  node_installer_oobe["First-run setup<br/>[oobe.rs]"]
end

subgraph group_network["Networking"]
  node_netstack["Network stack<br/>[mod.rs]"]
  node_wifi["Wi-Fi<br/>[lib.rs]"]
  node_rdp["Remote desktop<br/>[server.rs]"]
  node_smb["Shared folders<br/>[client.rs]"]
end

subgraph group_compat["Compatibility and updates"]
  node_linux["Linux compatibility<br/>[mod.rs]"]
  node_clr[".NET runtime<br/>[lib.rs]"]
  node_updates["System updates<br/>[lib.rs]"]
end

node_user(("User"))

node_user -->|"starts system"| node_uefi
node_uefi -->|"opens volume"| node_bootvolume
node_uefi -->|"chooses slot"| node_slots
node_uefi -->|"hands off"| node_handoff
node_handoff -->|"starts kernel"| node_kernel
node_kernel -->|"initializes"| node_sched
node_kernel -->|"initializes"| node_block
node_kernel -->|"initializes"| node_fs
node_kernel -->|"mounts volumes"| node_ramvol
node_fs -->|"uses interface"| node_vfs
node_fs -->|"checks access"| node_permissions
node_kernel -->|"starts services"| node_desktop
node_desktop -.->|"uses toolkit"| node_ui
node_user -->|"installs system"| node_installer
node_user -->|"uses desktop"| node_desktop
node_desktop -.->|"launches apps"| node_programs
node_desktop -->|"offers setup"| node_installer_oobe
node_user -->|"uses network"| node_netstack
node_netstack -.->|"supports Wi-Fi"| node_wifi
node_user -->|"connects remotely"| node_rdp
node_user -->|"shares files"| node_smb
node_user -->|"runs Linux apps"| node_linux
node_user -->|"runs .NET apps"| node_clr
node_user -->|"updates system"| node_updates

click node_uefi "https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/boot-uefi/src/main.rs"
click node_handoff "https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/boot-uefi/src/handoff.rs"
click node_bootvolume "https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/boot-uefi/src/volume.rs"
click node_slots "https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/boot-uefi/src/slot.rs"
click node_installer "https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/installer/src/main.rs"
click node_kernel "https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/main.rs"
click node_sched "https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/sched/mod.rs"
click node_sync "https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/sync.rs"
click node_block "https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/block/mod.rs"
click node_fs "https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/fs/mod.rs"
click node_vfs "https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/vfs/mod.rs"
click node_permissions "https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/vfs/perm.rs"
click node_ramvol "https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/fs/ramvol.rs"
click node_desktop "https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/ui/mod.rs"
click node_ui "https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/mini-ui/src/lib.rs"
click node_programs "https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/user-progs/src/lib.rs"
click node_installer_oobe "https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/ui/oobe.rs"
click node_netstack "https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/net/mod.rs"
click node_wifi "https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/wifi/src/lib.rs"
click node_rdp "https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/rdp/src/server.rs"
click node_smb "https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/smb/src/client.rs"
click node_linux "https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/linux/mod.rs"
click node_clr "https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/clr-vm/src/lib.rs"
click node_updates "https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/osupdate/src/lib.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_uefi,node_handoff,node_bootvolume,node_slots,node_installer,node_user toneBlue
class node_kernel,node_sched,node_sync,node_block,node_fs,node_vfs,node_permissions,node_ramvol toneAmber
class node_desktop,node_ui,node_programs,node_installer_oobe toneMint
class node_netstack,node_wifi,node_rdp,node_smb toneRose
class node_linux,node_clr,node_updates toneIndigo
```

## Components

### Boot and install

- [UEFI bootloader](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/boot-uefi/src/main.rs): `crates/boot-uefi/src/main.rs`
- [Boot handoff](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/boot-uefi/src/handoff.rs): `crates/boot-uefi/src/handoff.rs`
- [Boot volume](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/boot-uefi/src/volume.rs): `crates/boot-uefi/src/volume.rs`
- [A/B slots](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/boot-uefi/src/slot.rs): `crates/boot-uefi/src/slot.rs`
- [Installer](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/installer/src/main.rs): `crates/installer/src/main.rs`

### Kernel services

- [Kernel startup](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/main.rs): `crates/kernel/src/main.rs`
- [Task scheduler](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/sched/mod.rs): `crates/kernel/src/sched/mod.rs`
- [Synchronization](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/sync.rs): `crates/kernel/src/sync.rs`
- [Block devices](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/block/mod.rs): `crates/kernel/src/block/mod.rs`
- [Filesystem drivers](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/fs/mod.rs): `crates/kernel/src/fs/mod.rs`
- [Virtual filesystem](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/vfs/mod.rs): `crates/kernel/src/vfs/mod.rs`
- [File permissions](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/vfs/perm.rs): `crates/kernel/src/vfs/perm.rs`
- [RAM volumes](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/fs/ramvol.rs): `crates/kernel/src/fs/ramvol.rs`

### Desktop and apps

- [Desktop shell](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/ui/mod.rs): `crates/kernel/src/ui/mod.rs`
- [UI toolkit](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/mini-ui/src/lib.rs): `crates/mini-ui/src/lib.rs`
- [User applications](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/user-progs/src/lib.rs): `crates/user-progs/src/lib.rs`
- [First-run setup](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/ui/oobe.rs): `crates/kernel/src/ui/oobe.rs`

### Networking

- [Network stack](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/net/mod.rs): `crates/kernel/src/net/mod.rs`
- [Wi-Fi](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/wifi/src/lib.rs): `crates/wifi/src/lib.rs`
- [Remote desktop](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/rdp/src/server.rs): `crates/rdp/src/server.rs`
- [Shared folders](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/smb/src/client.rs): `crates/smb/src/client.rs`

### Compatibility and updates

- [Linux compatibility](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/kernel/src/linux/mod.rs): `crates/kernel/src/linux/mod.rs`
- [.NET runtime](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/clr-vm/src/lib.rs): `crates/clr-vm/src/lib.rs`
- [System updates](https://github.com/anomal3/freeopensourcesystemai/blob/main/crates/osupdate/src/lib.rs): `crates/osupdate/src/lib.rs`

### Other components

- **User**

## Connections

- User → UEFI bootloader: starts system
- UEFI bootloader → Boot volume: opens volume (evidence: `crates/boot-uefi/src/main.rs`)
- UEFI bootloader → A/B slots: chooses slot (evidence: `crates/boot-uefi/src/main.rs`)
- UEFI bootloader → Boot handoff: hands off (evidence: `crates/boot-uefi/src/main.rs`)
- Boot handoff → Kernel startup: starts kernel
- Kernel startup → Task scheduler: initializes (evidence: `crates/kernel/src/main.rs`)
- Kernel startup → Block devices: initializes (evidence: `crates/kernel/src/main.rs`)
- Kernel startup → Filesystem drivers: initializes (evidence: `crates/kernel/src/main.rs`)
- Kernel startup → RAM volumes: mounts volumes (evidence: `crates/kernel/src/main.rs`)
- Filesystem drivers → Virtual filesystem: uses interface (evidence: `crates/kernel/src/fs/mod.rs`)
- Filesystem drivers → File permissions: checks access (evidence: `crates/kernel/src/fs/mod.rs`)
- Kernel startup → Desktop shell: starts services (evidence: `crates/kernel/src/main.rs`)
- Desktop shell → UI toolkit: uses toolkit
- User → Installer: installs system
- User → Desktop shell: uses desktop
- Desktop shell → User applications: launches apps
- Desktop shell → First-run setup: offers setup
- User → Network stack: uses network
- Network stack → Wi-Fi: supports Wi-Fi
- User → Remote desktop: connects remotely
- User → Shared folders: shares files
- User → Linux compatibility: runs Linux apps
- User → .NET runtime: runs .NET apps
- User → System updates: updates system
