# gelenmedya/rustyfiles architecture

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

- Interactive diagram: https://gitdiagram.com/gelenmedya/rustyfiles
- Repository: https://github.com/gelenmedya/rustyfiles

## Overview

RustyFiles is a cross-platform file manager, with a Rust/GPUI application for Windows and a native Swift macOS application backed by a Rust bridge. The main user journey is navigating a folder, acting on files, and inspecting a selection; archives, preview, search, and organization are distinct capabilities. The graph preserves major README features and central indexed modules, while limiting call arrows to relationships visible in the README or source index. Some indexed macOS files are absent from the supplied tree, so their subsystem uses its existing directory path.

Main entry points: [`crates/rf-app/src/main.rs`](https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/main.rs) (RustyFiles app), [`macos/Sources/RustyFiles/BrowserWindowController.swift`](https://github.com/gelenmedya/rustyfiles/blob/main/macos/Sources/RustyFiles/BrowserWindowController.swift) (macOS browser window), [`crates/rf-app/src/folder_view.rs`](https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/folder_view.rs) (Folder browser), [`crates/rf-app/src/preview.rs`](https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/preview.rs) (Preview pane)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_browse["Browse and manage"]
  node_app["RustyFiles app<br/>[main.rs]"]
  node_folder["Folder browser<br/>[folder_view.rs]"]
  node_fileops["File operations<br/>[ops.rs]"]
  node_archive["Archive browsing<br/>[lib.rs]"]
  node_search["Quick search<br/>[quick_search.rs]"]
  node_rename["Bulk rename<br/>[bulk_rename.rs]"]
  node_undo["Undo history<br/>[undo.rs]"]
end

subgraph group_inspect["Preview and organize"]
  node_preview["Preview pane<br/>[preview.rs]"]
  node_organizer["File organizer<br/>[page.rs]"]
  node_look["DirectLook preview<br/>[app.rs]"]
end

subgraph group_shell["Desktop shell"]
  node_dock["Dock and controls<br/>[control.rs]"]
  node_desktop["Desktop integration<br/>[view.rs]"]
end

subgraph group_platform["Platform and state"]
  node_workspace["Workspace state<br/>[workspace.rs]"]
  node_settings[("User settings<br/>[settings.rs]")]
  node_win["Windows services<br/>[shell.rs]"]
  node_winwide["Windows support layer<br/>[wide.rs]"]
  node_i18n["Localization<br/>[i18n.rs]"]
  node_theme["Theme system<br/>[theme.rs]"]
end

subgraph group_mac["macOS application"]
  node_macapp["Native macOS app<br/>[AppDelegate.swift]"]
  node_macbrowser["macOS browser window"]
  node_maclist["macOS file list"]
  node_macstatus["macOS status center<br/>[StatusCenter.swift]"]
  node_macbridge["Rust macOS bridge<br/>[lib.rs]"]
end

node_user(("File manager user"))

node_user -->|"uses"| node_app
node_app -.->|"browses"| node_folder
node_folder -->|"shows selection"| node_preview
node_folder -->|"browses archives"| node_archive
node_user -->|"manages files"| node_fileops
node_user -->|"searches names"| node_search
node_user -->|"renames files"| node_rename
node_user -->|"undoes actions"| node_undo
node_user -.->|"organizes files"| node_organizer
node_user -.->|"opens preview"| node_look
node_preview -->|"reads state"| node_workspace
node_preview -->|"uses archive view"| node_archive
node_app -.->|"configures"| node_settings
node_settings -->|"configures"| node_dock
node_app -.->|"localizes UI"| node_i18n
node_app -.->|"styles UI"| node_theme
node_app -.->|"uses Windows shell"| node_win
node_user -.->|"uses desktop features"| node_desktop
node_macapp -->|"creates windows"| node_macbrowser
node_macbrowser -->|"hosts file lists"| node_maclist
node_macbrowser -->|"uses status center"| node_macstatus
node_maclist -->|"refreshes browser"| node_macbrowser
node_macapp -.->|"uses Rust bridge"| node_macbridge
node_user -->|"uses macOS app"| node_macapp
node_winwide -.->|"supports Windows"| node_win

click node_app "https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/main.rs"
click node_folder "https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/folder_view.rs"
click node_fileops "https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/ops.rs"
click node_archive "https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-archive/src/lib.rs"
click node_search "https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/quick_search.rs"
click node_rename "https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/bulk_rename.rs"
click node_undo "https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/undo.rs"
click node_preview "https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/preview.rs"
click node_organizer "https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/organizer/page.rs"
click node_look "https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/look/app.rs"
click node_workspace "https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/workspace.rs"
click node_settings "https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/settings.rs"
click node_dock "https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/dock/control.rs"
click node_desktop "https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/shell/desktop/view.rs"
click node_win "https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-win/src/shell.rs"
click node_winwide "https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-win/src/wide.rs"
click node_i18n "https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/i18n.rs"
click node_theme "https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/theme.rs"
click node_macapp "https://github.com/gelenmedya/rustyfiles/blob/main/macos/Sources/RustyFiles/AppDelegate.swift"
click node_macbrowser "https://github.com/gelenmedya/rustyfiles/blob/main/macos/Sources/RustyFiles/BrowserWindowController.swift"
click node_maclist "https://github.com/gelenmedya/rustyfiles/blob/main/macos/Sources/RustyFiles/FileListController.swift"
click node_macstatus "https://github.com/gelenmedya/rustyfiles/blob/main/macos/Sources/RustyFiles/StatusCenter.swift"
click node_macbridge "https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-mac/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_app,node_folder,node_fileops,node_archive,node_search,node_rename,node_undo,node_user toneBlue
class node_preview,node_organizer,node_look toneAmber
class node_dock,node_desktop toneMint
class node_workspace,node_settings,node_win,node_winwide,node_i18n,node_theme toneRose
class node_macapp,node_macbrowser,node_maclist,node_macstatus,node_macbridge toneIndigo
```

## Components

### Browse and manage

- [RustyFiles app](https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/main.rs): `crates/rf-app/src/main.rs`
- [Folder browser](https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/folder_view.rs): `crates/rf-app/src/folder_view.rs`
- [File operations](https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/ops.rs): `crates/rf-app/src/ops.rs`
- [Archive browsing](https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-archive/src/lib.rs): `crates/rf-archive/src/lib.rs`
- [Quick search](https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/quick_search.rs): `crates/rf-app/src/quick_search.rs`
- [Bulk rename](https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/bulk_rename.rs): `crates/rf-app/src/bulk_rename.rs`
- [Undo history](https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/undo.rs): `crates/rf-app/src/undo.rs`

### Preview and organize

- [Preview pane](https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/preview.rs): `crates/rf-app/src/preview.rs`
- [File organizer](https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/organizer/page.rs): `crates/rf-app/src/organizer/page.rs`
- [DirectLook preview](https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/look/app.rs): `crates/rf-app/src/look/app.rs`

### Desktop shell

- [Dock and controls](https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/dock/control.rs): `crates/rf-app/src/dock/control.rs`
- [Desktop integration](https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/shell/desktop/view.rs): `crates/rf-app/src/shell/desktop/view.rs`

### Platform and state

- [Workspace state](https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/workspace.rs): `crates/rf-app/src/workspace.rs`
- [User settings](https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/settings.rs): `crates/rf-app/src/settings.rs`
- [Windows services](https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-win/src/shell.rs): `crates/rf-win/src/shell.rs`
- [Windows support layer](https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-win/src/wide.rs): `crates/rf-win/src/wide.rs`
- [Localization](https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/i18n.rs): `crates/rf-app/src/i18n.rs`
- [Theme system](https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-app/src/theme.rs): `crates/rf-app/src/theme.rs`

### macOS application

- [Native macOS app](https://github.com/gelenmedya/rustyfiles/blob/main/macos/Sources/RustyFiles/AppDelegate.swift): `macos/Sources/RustyFiles/AppDelegate.swift`
- [macOS browser window](https://github.com/gelenmedya/rustyfiles/blob/main/macos/Sources/RustyFiles/BrowserWindowController.swift): `macos/Sources/RustyFiles/BrowserWindowController.swift`
- [macOS file list](https://github.com/gelenmedya/rustyfiles/blob/main/macos/Sources/RustyFiles/FileListController.swift): `macos/Sources/RustyFiles/FileListController.swift`
- [macOS status center](https://github.com/gelenmedya/rustyfiles/blob/main/macos/Sources/RustyFiles/StatusCenter.swift): `macos/Sources/RustyFiles/StatusCenter.swift`
- [Rust macOS bridge](https://github.com/gelenmedya/rustyfiles/blob/main/crates/rf-mac/src/lib.rs): `crates/rf-mac/src/lib.rs`

### Other components

- **File manager user**

## Connections

- File manager user → RustyFiles app: uses (evidence: `README.md`)
- RustyFiles app → Folder browser: browses
- Folder browser → Preview pane: shows selection (evidence: `crates/rf-app/src/preview.rs`)
- Folder browser → Archive browsing: browses archives
- File manager user → File operations: manages files (evidence: `README.md`)
- File manager user → Quick search: searches names (evidence: `README.md`)
- File manager user → Bulk rename: renames files (evidence: `README.md`)
- File manager user → Undo history: undoes actions (evidence: `README.md`)
- File manager user → File organizer: organizes files
- File manager user → DirectLook preview: opens preview
- Preview pane → Workspace state: reads state (evidence: `crates/rf-app/src/preview.rs`)
- Preview pane → Archive browsing: uses archive view (evidence: `crates/rf-app/src/preview.rs`)
- RustyFiles app → User settings: configures
- User settings → Dock and controls: configures (evidence: `crates/rf-app/src/settings.rs`)
- RustyFiles app → Localization: localizes UI
- RustyFiles app → Theme system: styles UI
- RustyFiles app → Windows services: uses Windows shell
- File manager user → Desktop integration: uses desktop features
- Native macOS app → macOS browser window: creates windows (evidence: `macos/Sources/RustyFiles/AppDelegate.swift`)
- macOS browser window → macOS file list: hosts file lists (evidence: `macos/Sources/RustyFiles/BrowserWindowController.swift`)
- macOS browser window → macOS status center: uses status center (evidence: `macos/Sources/RustyFiles/BrowserWindowController.swift`)
- macOS file list → macOS browser window: refreshes browser (evidence: `macos/Sources/RustyFiles/FileListController.swift`)
- Native macOS app → Rust macOS bridge: uses Rust bridge
- File manager user → Native macOS app: uses macOS app (evidence: `README.md`)
- Windows support layer → Windows services: supports Windows
