# knifelemon/filee architecture

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

- Interactive diagram: https://gitdiagram.com/knifelemon/filee
- Repository: https://github.com/knifelemon/filee

## Overview

Filee is a desktop, drag-and-drop file converter: users invoke a cursor-centered format donut, choose a compatible conversion, and receive output locally. The documented workflow spans gesture and file acquisition, format/route selection, conversion, and result handling; the app also offers browser drops, presets, crop/edit tools, watched folders, history, and optional engine management. The graph emphasizes those stages and engine registration. Edges are limited to explicit README statements or sampled source references; unsampled feature internals are represented by their exact enclosing directories.

Main entry points: [`src/Filee.App/Services/RadialController.cs`](https://github.com/knifelemon/filee/blob/main/src/Filee.App/Services/RadialController.cs) (Format donut), [`src/Filee.Core/Conversion/ConverterCatalog.cs`](https://github.com/knifelemon/filee/blob/main/src/Filee.Core/Conversion/ConverterCatalog.cs) (Converter catalog), [`src/Filee.App/Services/EngineDownloadService.cs`](https://github.com/knifelemon/filee/blob/main/src/Filee.App/Services/EngineDownloadService.cs) (Engine downloads), [`src/Filee.Core/Conversion/JobQueue.cs`](https://github.com/knifelemon/filee/blob/main/src/Filee.Core/Conversion/JobQueue.cs) (Conversion jobs)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Desktop interaction"]
  node_app["Desktop app<br/>[Program.cs]"]
  node_trigger["Gesture trigger<br/>[TriggerService.cs]"]
  node_donut["Format donut"]
  node_platform["Platform services"]
  node_browser["Browser drops<br/>[BrowserDrag.cs]"]
  node_cli["Command line<br/>[Cli.cs]"]
end

subgraph group_conversion["Conversion core"]
  node_catalog["Converter catalog"]
  node_routing["Route planner<br/>[RoutePlanner.cs]"]
  node_queue["Conversion jobs<br/>[JobQueue.cs]"]
  node_registry["Engine registry<br/>[EngineRegistry.cs]"]
  node_formats["Format registry<br/>[FormatRegistry.cs]"]
end

subgraph group_engines["Engine management"]
  node_engineui["Engine settings UI"]
  node_download["Engine downloads"]
  node_installer["Engine installer<br/>[EngineInstaller.cs]"]
  node_environment["Engine environment"]
end

subgraph group_features["Adjacent features"]
  node_preset["Presets and toolbars<br/>[Presets]"]
  node_watch["Watch folders<br/>[FolderWatcher.cs]"]
  node_history[("Recent conversions<br/>[HistoryEntry.cs]")]
  node_crop["Crop and edits<br/>[CropService.cs]"]
  node_gallery["Preset gallery<br/>[GalleryIndex.cs]"]
  node_settings[("User settings<br/>[UserDataStore.cs]")]
end

node_user(("User"))
node_output[("Local output files")]
node_galleryservice(("Preset gallery service"))

node_user -->|"starts gesture"| node_trigger
node_trigger -.->|"opens menu"| node_donut
node_user -->|"drops files"| node_donut
node_donut -.->|"offers formats"| node_catalog
node_catalog -.->|"plans route"| node_routing
node_routing -.->|"dispatches jobs"| node_queue
node_queue -->|"writes results"| node_output
node_registry -->|"registers converters"| node_catalog
node_browser -->|"uses formats"| node_formats
node_user -->|"drags browser content"| node_browser
node_watch -.->|"converts arrivals"| node_queue
node_user -->|"configures folders"| node_watch
node_preset -.->|"configures toolbar"| node_donut
node_user -->|"selects crop"| node_crop
node_gallery -->|"installs presets"| node_galleryservice
node_engineui -->|"manages engines"| node_download
node_download -->|"installs packages"| node_installer
node_installer -->|"installs into"| node_environment
node_download -->|"refreshes catalog"| node_catalog
node_cli -->|"manages packages"| node_installer
node_platform -.->|"provides OS services"| node_app
node_settings -.->|"stores preferences"| node_engineui

click node_app "https://github.com/knifelemon/filee/blob/main/src/Filee.App/Program.cs"
click node_trigger "https://github.com/knifelemon/filee/blob/main/src/Filee.App/Services/Triggers/TriggerService.cs"
click node_donut "https://github.com/knifelemon/filee/blob/main/src/Filee.App/Services/RadialController.cs"
click node_platform "https://github.com/knifelemon/filee/blob/main/src/Filee.Core/Platform/IPlatformServices.cs"
click node_browser "https://github.com/knifelemon/filee/blob/main/src/Filee.Core/Web/BrowserDrag.cs"
click node_catalog "https://github.com/knifelemon/filee/blob/main/src/Filee.Core/Conversion/ConverterCatalog.cs"
click node_routing "https://github.com/knifelemon/filee/blob/main/src/Filee.Core/Conversion/RoutePlanner.cs"
click node_queue "https://github.com/knifelemon/filee/blob/main/src/Filee.Core/Conversion/JobQueue.cs"
click node_registry "https://github.com/knifelemon/filee/blob/main/src/Filee.Engines/EngineRegistry.cs"
click node_formats "https://github.com/knifelemon/filee/blob/main/src/Filee.Core/Formats/FormatRegistry.cs"
click node_preset "https://github.com/knifelemon/filee/tree/main/src/Filee.Core/Presets"
click node_watch "https://github.com/knifelemon/filee/blob/main/src/Filee.Core/Watching/FolderWatcher.cs"
click node_history "https://github.com/knifelemon/filee/blob/main/src/Filee.Core/History/HistoryEntry.cs"
click node_crop "https://github.com/knifelemon/filee/blob/main/src/Filee.App/Services/CropService.cs"
click node_gallery "https://github.com/knifelemon/filee/blob/main/src/Filee.Core/Gallery/GalleryIndex.cs"
click node_settings "https://github.com/knifelemon/filee/blob/main/src/Filee.Core/Settings/UserDataStore.cs"
click node_engineui "https://github.com/knifelemon/filee/blob/main/src/Filee.App/ViewModels/Pages/EnginesPageViewModel.cs"
click node_download "https://github.com/knifelemon/filee/blob/main/src/Filee.App/Services/EngineDownloadService.cs"
click node_installer "https://github.com/knifelemon/filee/blob/main/src/Filee.Engines/Infrastructure/EngineInstaller.cs"
click node_environment "https://github.com/knifelemon/filee/blob/main/src/Filee.Engines/Infrastructure/EngineEnvironment.cs"
click node_cli "https://github.com/knifelemon/filee/blob/main/src/Filee.Cli/Cli.cs"

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_trigger,node_donut,node_platform,node_browser,node_cli,node_user toneBlue
class node_catalog,node_routing,node_queue,node_registry,node_formats,node_output toneAmber
class node_engineui,node_download,node_installer,node_environment toneMint
class node_preset,node_watch,node_history,node_crop,node_gallery,node_settings toneRose
class node_galleryservice toneIndigo
```

## Components

### Desktop interaction

- [Desktop app](https://github.com/knifelemon/filee/blob/main/src/Filee.App/Program.cs): `src/Filee.App/Program.cs`
- [Gesture trigger](https://github.com/knifelemon/filee/blob/main/src/Filee.App/Services/Triggers/TriggerService.cs): `src/Filee.App/Services/Triggers/TriggerService.cs`
- [Format donut](https://github.com/knifelemon/filee/blob/main/src/Filee.App/Services/RadialController.cs): `src/Filee.App/Services/RadialController.cs`
- [Platform services](https://github.com/knifelemon/filee/blob/main/src/Filee.Core/Platform/IPlatformServices.cs): `src/Filee.Core/Platform/IPlatformServices.cs`
- [Browser drops](https://github.com/knifelemon/filee/blob/main/src/Filee.Core/Web/BrowserDrag.cs): `src/Filee.Core/Web/BrowserDrag.cs`
- [Command line](https://github.com/knifelemon/filee/blob/main/src/Filee.Cli/Cli.cs): `src/Filee.Cli/Cli.cs`

### Conversion core

- [Converter catalog](https://github.com/knifelemon/filee/blob/main/src/Filee.Core/Conversion/ConverterCatalog.cs): `src/Filee.Core/Conversion/ConverterCatalog.cs`
- [Route planner](https://github.com/knifelemon/filee/blob/main/src/Filee.Core/Conversion/RoutePlanner.cs): `src/Filee.Core/Conversion/RoutePlanner.cs`
- [Conversion jobs](https://github.com/knifelemon/filee/blob/main/src/Filee.Core/Conversion/JobQueue.cs): `src/Filee.Core/Conversion/JobQueue.cs`
- [Engine registry](https://github.com/knifelemon/filee/blob/main/src/Filee.Engines/EngineRegistry.cs): `src/Filee.Engines/EngineRegistry.cs`
- [Format registry](https://github.com/knifelemon/filee/blob/main/src/Filee.Core/Formats/FormatRegistry.cs): `src/Filee.Core/Formats/FormatRegistry.cs`

### Engine management

- [Engine settings UI](https://github.com/knifelemon/filee/blob/main/src/Filee.App/ViewModels/Pages/EnginesPageViewModel.cs): `src/Filee.App/ViewModels/Pages/EnginesPageViewModel.cs`
- [Engine downloads](https://github.com/knifelemon/filee/blob/main/src/Filee.App/Services/EngineDownloadService.cs): `src/Filee.App/Services/EngineDownloadService.cs`
- [Engine installer](https://github.com/knifelemon/filee/blob/main/src/Filee.Engines/Infrastructure/EngineInstaller.cs): `src/Filee.Engines/Infrastructure/EngineInstaller.cs`
- [Engine environment](https://github.com/knifelemon/filee/blob/main/src/Filee.Engines/Infrastructure/EngineEnvironment.cs): `src/Filee.Engines/Infrastructure/EngineEnvironment.cs`

### Adjacent features

- [Presets and toolbars](https://github.com/knifelemon/filee/tree/main/src/Filee.Core/Presets): `src/Filee.Core/Presets`
- [Watch folders](https://github.com/knifelemon/filee/blob/main/src/Filee.Core/Watching/FolderWatcher.cs): `src/Filee.Core/Watching/FolderWatcher.cs`
- [Recent conversions](https://github.com/knifelemon/filee/blob/main/src/Filee.Core/History/HistoryEntry.cs): `src/Filee.Core/History/HistoryEntry.cs`
- [Crop and edits](https://github.com/knifelemon/filee/blob/main/src/Filee.App/Services/CropService.cs): `src/Filee.App/Services/CropService.cs`
- [Preset gallery](https://github.com/knifelemon/filee/blob/main/src/Filee.Core/Gallery/GalleryIndex.cs): `src/Filee.Core/Gallery/GalleryIndex.cs`
- [User settings](https://github.com/knifelemon/filee/blob/main/src/Filee.Core/Settings/UserDataStore.cs): `src/Filee.Core/Settings/UserDataStore.cs`

### Other components

- **User**
- **Local output files**
- **Preset gallery service**

## Connections

- User → Gesture trigger: starts gesture (evidence: `README.md`)
- Gesture trigger → Format donut: opens menu
- User → Format donut: drops files (evidence: `README.md`)
- Format donut → Converter catalog: offers formats
- Converter catalog → Route planner: plans route
- Route planner → Conversion jobs: dispatches jobs
- Conversion jobs → Local output files: writes results (evidence: `README.md`)
- Engine registry → Converter catalog: registers converters (evidence: `src/Filee.Engines/EngineRegistry.cs`)
- Browser drops → Format registry: uses formats (evidence: `src/Filee.Core/Web/BrowserDrag.cs`)
- User → Browser drops: drags browser content (evidence: `README.md`)
- Watch folders → Conversion jobs: converts arrivals
- User → Watch folders: configures folders (evidence: `README.md`)
- Presets and toolbars → Format donut: configures toolbar
- User → Crop and edits: selects crop (evidence: `README.md`)
- Preset gallery → Preset gallery service: installs presets (evidence: `README.md`)
- Engine settings UI → Engine downloads: manages engines (evidence: `src/Filee.App/ViewModels/Pages/EnginesPageViewModel.cs`)
- Engine downloads → Engine installer: installs packages (evidence: `src/Filee.App/Services/EngineDownloadService.cs`)
- Engine installer → Engine environment: installs into (evidence: `src/Filee.Engines/Infrastructure/EngineInstaller.cs`)
- Engine downloads → Converter catalog: refreshes catalog (evidence: `src/Filee.App/Services/EngineDownloadService.cs`)
- Command line → Engine installer: manages packages (evidence: `src/Filee.Cli/EnginesCommand.cs`)
- Platform services → Desktop app: provides OS services
- User settings → Engine settings UI: stores preferences (evidence: `src/Filee.App/ViewModels/Pages/EnginesPageViewModel.cs`)
