# timowse/dropforge architecture

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

- Interactive diagram: https://gitdiagram.com/timowse/dropforge
- Repository: https://github.com/timowse/dropforge

## Overview

DropForge is a local-first macOS file conversion and workflow app. Users provide files through the menu bar, drag-and-drop, or the wheel; the app resolves available operations, runs jobs, tracks progress, and commits safe output copies. The graph preserves the documented image, media, document, archive, and file-action capabilities. Source-index references support the main UI-to-job and resolver relationships, but sampled excerpts do not expose the full dispatch path from jobs to each engine, so those links are omitted.

Main entry points: [`Sources/DropForgeUI/App/AppCoordinator.swift`](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeUI/App/AppCoordinator.swift) (App coordinator), [`Sources/DropForgeCore/Jobs/JobExecutor.swift`](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeCore/Jobs/JobExecutor.swift) (Job executor), [`Sources/DropForgeCore/Catalog/CapabilityResolver.swift`](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeCore/Catalog/CapabilityResolver.swift) (Capability resolver), [`Sources/DropForgeUI/Wheel/WheelModel.swift`](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeUI/Wheel/WheelModel.swift) (Wheel model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry"]
  node_app["App coordinator"]
  node_status["Menu bar"]
  node_drag["Drag monitor<br/>[DragMonitor.swift]"]
  node_settings["App settings<br/>[AppSettings.swift]"]
  node_main["App launch<br/>[main.swift]"]
end

subgraph group_selection["Selection and choice"]
  node_selectionmodel["File selection<br/>[Selection.swift]"]
  node_wheelmodel["Wheel model<br/>[WheelModel.swift]"]
  node_wheelview["Wheel view<br/>[WheelView.swift]"]
  node_wheelcontroller["Wheel controller"]
  node_picker["File picker<br/>[PickerWindow.swift]"]
end

subgraph group_execution["Jobs and output"]
  node_jobcenter["Job center<br/>[JobCenter.swift]"]
  node_executor["Job executor<br/>[JobExecutor.swift]"]
  node_committer["Output committer"]
  node_naming["Output naming<br/>[OutputNaming.swift]"]
end

subgraph group_engines["Workflow engines"]
  node_image["Image workflows<br/>[ImageEngine.swift]"]
  node_media["Audio video<br/>[MediaEngine.swift]"]
  node_documents["Document workflows"]
  node_office["Office workflows<br/>[OfficeEngine.swift]"]
  node_pdf["PDF workflows<br/>[PDFEngine.swift]"]
  node_archives["Archive workflows"]
  node_actions["File actions<br/>[FileActions.swift]"]
end

subgraph group_support["Shared core"]
  node_catalog["Operation catalog<br/>[Catalog.swift]"]
  node_resolver["Capability resolver"]
  node_formats["File formats<br/>[FileFormat.swift]"]
  node_locator["Engine locator"]
  node_ffmpeg["FFmpeg commands"]
  node_process["Process runner"]
end

node_user(("User"))

node_user -->|"chooses files"| node_status
node_status -->|"opens selection"| node_app
node_user -.->|"drags files"| node_drag
node_drag -.->|"signals drag"| node_app
node_main -->|"starts app"| node_app
node_app -->|"observes settings"| node_settings
node_app -->|"opens wheel"| node_wheelcontroller
node_app -.->|"opens picker"| node_picker
node_app -->|"resolves choices"| node_resolver
node_app -->|"submits jobs"| node_jobcenter
node_app -->|"uses executor"| node_executor
node_wheelcontroller -->|"updates model"| node_wheelmodel
node_wheelcontroller -->|"displays wheel"| node_wheelview
node_wheelmodel -->|"resolves options"| node_resolver
node_wheelmodel -->|"uses selection"| node_selectionmodel
node_jobcenter -->|"runs jobs"| node_executor
node_executor -->|"checks capability"| node_resolver
node_executor -->|"commits outputs"| node_committer
node_committer -->|"chooses names"| node_naming
node_resolver -->|"filters operations"| node_catalog
node_catalog -->|"uses formats"| node_formats
node_media -->|"builds commands"| node_ffmpeg
node_locator -->|"locates helper"| node_ffmpeg
node_image -->|"locates helpers"| node_locator
node_office -->|"locates apps"| node_locator
node_documents -->|"uses formats"| node_formats
node_archives -->|"uses formats"| node_formats
node_archives -.->|"runs commands"| node_process
node_user -.->|"requests conversion"| node_image
node_user -.->|"requests conversion"| node_media
node_user -.->|"requests conversion"| node_documents
node_user -.->|"requests action"| node_archives
node_user -.->|"requests action"| node_actions

click node_app "https://github.com/timowse/dropforge/blob/main/Sources/DropForgeUI/App/AppCoordinator.swift"
click node_status "https://github.com/timowse/dropforge/blob/main/Sources/DropForgeUI/App/StatusItemController.swift"
click node_drag "https://github.com/timowse/dropforge/blob/main/Sources/DropForgeUI/Drag/DragMonitor.swift"
click node_settings "https://github.com/timowse/dropforge/blob/main/Sources/DropForgeUI/Settings/AppSettings.swift"
click node_selectionmodel "https://github.com/timowse/dropforge/blob/main/Sources/DropForgeCore/Model/Selection.swift"
click node_wheelmodel "https://github.com/timowse/dropforge/blob/main/Sources/DropForgeUI/Wheel/WheelModel.swift"
click node_wheelview "https://github.com/timowse/dropforge/blob/main/Sources/DropForgeUI/Wheel/WheelView.swift"
click node_wheelcontroller "https://github.com/timowse/dropforge/blob/main/Sources/DropForgeUI/Wheel/WheelController.swift"
click node_picker "https://github.com/timowse/dropforge/blob/main/Sources/DropForgeUI/Picker/PickerWindow.swift"
click node_catalog "https://github.com/timowse/dropforge/blob/main/Sources/DropForgeCore/Catalog/Catalog.swift"
click node_resolver "https://github.com/timowse/dropforge/blob/main/Sources/DropForgeCore/Catalog/CapabilityResolver.swift"
click node_formats "https://github.com/timowse/dropforge/blob/main/Sources/DropForgeCore/Model/FileFormat.swift"
click node_jobcenter "https://github.com/timowse/dropforge/blob/main/Sources/DropForgeUI/Progress/JobCenter.swift"
click node_executor "https://github.com/timowse/dropforge/blob/main/Sources/DropForgeCore/Jobs/JobExecutor.swift"
click node_committer "https://github.com/timowse/dropforge/blob/main/Sources/DropForgeCore/Files/OutputCommitter.swift"
click node_naming "https://github.com/timowse/dropforge/blob/main/Sources/DropForgeCore/Files/OutputNaming.swift"
click node_image "https://github.com/timowse/dropforge/blob/main/Sources/DropForgeEngines/ImageEngine.swift"
click node_media "https://github.com/timowse/dropforge/blob/main/Sources/DropForgeEngines/MediaEngine.swift"
click node_documents "https://github.com/timowse/dropforge/blob/main/Sources/DropForgeEngines/DocumentEngine.swift"
click node_office "https://github.com/timowse/dropforge/blob/main/Sources/DropForgeEngines/OfficeEngine.swift"
click node_pdf "https://github.com/timowse/dropforge/blob/main/Sources/DropForgeEngines/PDFEngine.swift"
click node_archives "https://github.com/timowse/dropforge/blob/main/Sources/DropForgeEngines/ArchiveEngine.swift"
click node_actions "https://github.com/timowse/dropforge/blob/main/Sources/DropForgeEngines/FileActions.swift"
click node_locator "https://github.com/timowse/dropforge/blob/main/Sources/DropForgeEngines/EngineLocator.swift"
click node_ffmpeg "https://github.com/timowse/dropforge/blob/main/Sources/DropForgeCore/Media/FFmpegCommands.swift"
click node_process "https://github.com/timowse/dropforge/blob/main/Sources/DropForgeCore/Process/ProcessRunner.swift"
click node_main "https://github.com/timowse/dropforge/blob/main/Sources/DropForge/main.swift"

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_status,node_drag,node_settings,node_main,node_user toneBlue
class node_selectionmodel,node_wheelmodel,node_wheelview,node_wheelcontroller,node_picker toneAmber
class node_jobcenter,node_executor,node_committer,node_naming toneMint
class node_image,node_media,node_documents,node_office,node_pdf,node_archives,node_actions toneRose
class node_catalog,node_resolver,node_formats,node_locator,node_ffmpeg,node_process toneIndigo
```

## Components

### App entry

- [App coordinator](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeUI/App/AppCoordinator.swift): `Sources/DropForgeUI/App/AppCoordinator.swift`
- [Menu bar](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeUI/App/StatusItemController.swift): `Sources/DropForgeUI/App/StatusItemController.swift`
- [Drag monitor](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeUI/Drag/DragMonitor.swift): `Sources/DropForgeUI/Drag/DragMonitor.swift`
- [App settings](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeUI/Settings/AppSettings.swift): `Sources/DropForgeUI/Settings/AppSettings.swift`
- [App launch](https://github.com/timowse/dropforge/blob/main/Sources/DropForge/main.swift): `Sources/DropForge/main.swift`

### Selection and choice

- [File selection](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeCore/Model/Selection.swift): `Sources/DropForgeCore/Model/Selection.swift`
- [Wheel model](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeUI/Wheel/WheelModel.swift): `Sources/DropForgeUI/Wheel/WheelModel.swift`
- [Wheel view](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeUI/Wheel/WheelView.swift): `Sources/DropForgeUI/Wheel/WheelView.swift`
- [Wheel controller](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeUI/Wheel/WheelController.swift): `Sources/DropForgeUI/Wheel/WheelController.swift`
- [File picker](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeUI/Picker/PickerWindow.swift): `Sources/DropForgeUI/Picker/PickerWindow.swift`

### Jobs and output

- [Job center](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeUI/Progress/JobCenter.swift): `Sources/DropForgeUI/Progress/JobCenter.swift`
- [Job executor](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeCore/Jobs/JobExecutor.swift): `Sources/DropForgeCore/Jobs/JobExecutor.swift`
- [Output committer](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeCore/Files/OutputCommitter.swift): `Sources/DropForgeCore/Files/OutputCommitter.swift`
- [Output naming](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeCore/Files/OutputNaming.swift): `Sources/DropForgeCore/Files/OutputNaming.swift`

### Workflow engines

- [Image workflows](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeEngines/ImageEngine.swift): `Sources/DropForgeEngines/ImageEngine.swift`
- [Audio video](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeEngines/MediaEngine.swift): `Sources/DropForgeEngines/MediaEngine.swift`
- [Document workflows](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeEngines/DocumentEngine.swift): `Sources/DropForgeEngines/DocumentEngine.swift`
- [Office workflows](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeEngines/OfficeEngine.swift): `Sources/DropForgeEngines/OfficeEngine.swift`
- [PDF workflows](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeEngines/PDFEngine.swift): `Sources/DropForgeEngines/PDFEngine.swift`
- [Archive workflows](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeEngines/ArchiveEngine.swift): `Sources/DropForgeEngines/ArchiveEngine.swift`
- [File actions](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeEngines/FileActions.swift): `Sources/DropForgeEngines/FileActions.swift`

### Shared core

- [Operation catalog](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeCore/Catalog/Catalog.swift): `Sources/DropForgeCore/Catalog/Catalog.swift`
- [Capability resolver](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeCore/Catalog/CapabilityResolver.swift): `Sources/DropForgeCore/Catalog/CapabilityResolver.swift`
- [File formats](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeCore/Model/FileFormat.swift): `Sources/DropForgeCore/Model/FileFormat.swift`
- [Engine locator](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeEngines/EngineLocator.swift): `Sources/DropForgeEngines/EngineLocator.swift`
- [FFmpeg commands](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeCore/Media/FFmpegCommands.swift): `Sources/DropForgeCore/Media/FFmpegCommands.swift`
- [Process runner](https://github.com/timowse/dropforge/blob/main/Sources/DropForgeCore/Process/ProcessRunner.swift): `Sources/DropForgeCore/Process/ProcessRunner.swift`

### Other components

- **User**

## Connections

- User → Menu bar: chooses files (evidence: `Sources/DropForgeUI/App/StatusItemController.swift`)
- Menu bar → App coordinator: opens selection (evidence: `Sources/DropForgeUI/App/StatusItemController.swift`)
- User → Drag monitor: drags files (evidence: `README.md`)
- Drag monitor → App coordinator: signals drag (evidence: `Sources/DropForgeUI/App/AppCoordinator.swift`)
- App launch → App coordinator: starts app (evidence: `Sources/DropForge/main.swift`)
- App coordinator → App settings: observes settings (evidence: `Sources/DropForgeUI/App/AppCoordinator.swift`)
- App coordinator → Wheel controller: opens wheel (evidence: `Sources/DropForgeUI/App/AppCoordinator.swift`)
- App coordinator → File picker: opens picker (evidence: `Sources/DropForgeUI/App/AppCoordinator.swift`)
- App coordinator → Capability resolver: resolves choices (evidence: `Sources/DropForgeUI/App/AppCoordinator.swift`)
- App coordinator → Job center: submits jobs (evidence: `Sources/DropForgeUI/App/AppCoordinator.swift`)
- App coordinator → Job executor: uses executor (evidence: `Sources/DropForgeUI/App/AppCoordinator.swift`)
- Wheel controller → Wheel model: updates model (evidence: `Sources/DropForgeUI/Wheel/WheelController.swift`)
- Wheel controller → Wheel view: displays wheel (evidence: `Sources/DropForgeUI/Wheel/WheelController.swift`)
- Wheel model → Capability resolver: resolves options (evidence: `Sources/DropForgeUI/Wheel/WheelModel.swift`)
- Wheel model → File selection: uses selection (evidence: `Sources/DropForgeUI/Wheel/WheelModel.swift`)
- Job center → Job executor: runs jobs (evidence: `Sources/DropForgeUI/Progress/JobCenter.swift`)
- Job executor → Capability resolver: checks capability (evidence: `Sources/DropForgeCore/Jobs/JobExecutor.swift`)
- Job executor → Output committer: commits outputs (evidence: `Sources/DropForgeCore/Jobs/JobExecutor.swift`)
- Output committer → Output naming: chooses names (evidence: `Sources/DropForgeCore/Files/OutputCommitter.swift`)
- Capability resolver → Operation catalog: filters operations (evidence: `Sources/DropForgeCore/Catalog/CapabilityResolver.swift`)
- Operation catalog → File formats: uses formats (evidence: `Sources/DropForgeCore/Catalog/Catalog.swift`)
- Audio video → FFmpeg commands: builds commands (evidence: `Sources/DropForgeEngines/MediaEngine.swift`)
- Engine locator → FFmpeg commands: locates helper (evidence: `Sources/DropForgeEngines/EngineLocator.swift`)
- Image workflows → Engine locator: locates helpers (evidence: `Sources/DropForgeEngines/ImageEngine.swift`)
- Office workflows → Engine locator: locates apps (evidence: `Sources/DropForgeEngines/OfficeEngine.swift`)
- Document workflows → File formats: uses formats (evidence: `Sources/DropForgeEngines/DocumentEngine.swift`)
- Archive workflows → File formats: uses formats (evidence: `Sources/DropForgeEngines/ArchiveEngine.swift`)
- Archive workflows → Process runner: runs commands
- User → Image workflows: requests conversion (evidence: `README.md`)
- User → Audio video: requests conversion (evidence: `README.md`)
- User → Document workflows: requests conversion (evidence: `README.md`)
- User → Archive workflows: requests action (evidence: `README.md`)
- User → File actions: requests action (evidence: `README.md`)
