# fayazara/screendrop architecture

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

- Interactive diagram: https://gitdiagram.com/fayazara/screendrop
- Repository: https://github.com/fayazara/screendrop

## Overview

Screendrop is a native macOS screenshot and screen-recording app. Its main workflow starts from menu-bar, hotkey, or automation actions, captures a screen or recording, then hands the result to a preview stack and Library for saving, editing, or sharing. Annotation and recording Studio provide separate editing paths. The graph preserves README capabilities even where their implementation was not sampled; those broader links cite the README, while source-level links use the available excerpts and SOURCE INDEX references.

Main entry points: [`Screendrop/ScreenRecordingManager.swift`](https://github.com/fayazara/screendrop/blob/main/Screendrop/ScreenRecordingManager.swift) (Screen recording), [`Screendrop/CaptureShelfPresenter.swift`](https://github.com/fayazara/screendrop/blob/main/Screendrop/CaptureShelfPresenter.swift) (Preview stack), [`Screendrop/ScreendropApp.swift`](https://github.com/fayazara/screendrop/blob/main/Screendrop/ScreendropApp.swift) (Menu, hotkeys, automation), [`Screendrop/CaptureLibraryModel.swift`](https://github.com/fayazara/screendrop/blob/main/Screendrop/CaptureLibraryModel.swift) (Capture Library)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_capture["Capture &amp; handoff"]
  node_shot["Screenshot capture"]
  node_ocr["Screen text OCR"]
  node_recording["Screen recording"]
  node_camera["Camera recording"]
  node_session["Recording session"]
  node_shelf["Preview stack"]
end

subgraph group_annotate["Screenshot editing"]
  node_annotate["Annotation editor"]
  node_engine["Drawing engine<br/>[AnnoEditor.swift]"]
  node_redaction["Smart redaction"]
end

subgraph group_record["Recording &amp; Studio"]
  node_studio["Recording Studio"]
  node_transcript["Transcription &amp; captions"]
  node_teleprompter["Live teleprompter"]
end

subgraph group_library["Library &amp; sharing"]
  node_library["Capture Library"]
  node_history[("Screenshot history")]
  node_upload["Cloud sharing"]
end

subgraph group_app["App controls"]
  node_entry["Menu, hotkeys, automation"]
  node_prefs["Capture preferences"]
  node_settings["Settings<br/>[SettingsView.swift]"]
end

node_user(("User"))
node_external{{"Cloudflare account"}}
node_shortcuts(("Apple Shortcuts / Siri"))

node_user -->|"starts capture"| node_entry
node_shortcuts -->|"invokes actions"| node_entry
node_entry -->|"requests screenshot"| node_shot
node_entry -->|"starts recording"| node_recording
node_entry -->|"requests text capture"| node_ocr
node_settings -->|"configures"| node_prefs
node_prefs -->|"supplies options"| node_recording
node_shot -->|"shows capture"| node_shelf
node_recording -->|"creates session"| node_session
node_recording -->|"starts camera"| node_camera
node_recording -->|"manages session"| node_teleprompter
node_recording -->|"presents recording"| node_shelf
node_shelf -->|"opens editor"| node_annotate
node_shelf -->|"opens Studio"| node_studio
node_shelf -->|"copies recognized text"| node_ocr
node_annotate -->|"uses drawing engine"| node_engine
node_annotate -->|"recognizes sensitive content"| node_redaction
node_studio -->|"edits transcript"| node_transcript
node_teleprompter -->|"uses speech recognition"| node_external
node_teleprompter -->|"tracks narration"| node_recording
node_entry -->|"opens Library"| node_library
node_library -->|"discovers captures"| node_history
node_library -->|"edits screenshots"| node_annotate
node_library -->|"edits recordings"| node_studio
node_shelf -->|"uploads capture"| node_upload
node_studio -->|"shares recording"| node_upload
node_upload -->|"uploads to"| node_external

click node_entry "https://github.com/fayazara/screendrop/blob/main/Screendrop/ScreendropApp.swift"
click node_prefs "https://github.com/fayazara/screendrop/blob/main/Screendrop/ScreendropPreferences.swift"
click node_shot "https://github.com/fayazara/screendrop/blob/main/Screendrop/ScreenshotManager.swift"
click node_ocr "https://github.com/fayazara/screendrop/blob/main/Screendrop/ImageTextRecognizer.swift"
click node_recording "https://github.com/fayazara/screendrop/blob/main/Screendrop/ScreenRecordingManager.swift"
click node_camera "https://github.com/fayazara/screendrop/blob/main/Screendrop/CameraRecordingManager.swift"
click node_session "https://github.com/fayazara/screendrop/blob/main/Screendrop/RecordingSession.swift"
click node_shelf "https://github.com/fayazara/screendrop/blob/main/Screendrop/CaptureShelfPresenter.swift"
click node_annotate "https://github.com/fayazara/screendrop/blob/main/Screendrop/AnnotationEditorModel.swift"
click node_engine "https://github.com/fayazara/screendrop/blob/main/Screendrop/Engine/AnnoEditor.swift"
click node_redaction "https://github.com/fayazara/screendrop/blob/main/Screendrop/SmartRedactionRecognizer.swift"
click node_studio "https://github.com/fayazara/screendrop/blob/main/Screendrop/RecordingStudioModel.swift"
click node_transcript "https://github.com/fayazara/screendrop/blob/main/Screendrop/RecordingTranscription.swift"
click node_teleprompter "https://github.com/fayazara/screendrop/blob/main/Screendrop/TeleprompterController.swift"
click node_library "https://github.com/fayazara/screendrop/blob/main/Screendrop/CaptureLibraryModel.swift"
click node_history "https://github.com/fayazara/screendrop/blob/main/Screendrop/ScreenshotHistoryStore.swift"
click node_upload "https://github.com/fayazara/screendrop/blob/main/Screendrop/CloudUploader.swift"
click node_settings "https://github.com/fayazara/screendrop/blob/main/Screendrop/SettingsView.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_shot,node_ocr,node_recording,node_camera,node_session,node_shelf,node_user toneBlue
class node_annotate,node_engine,node_redaction toneAmber
class node_studio,node_transcript,node_teleprompter toneMint
class node_library,node_history,node_upload toneRose
class node_entry,node_prefs,node_settings,node_external,node_shortcuts toneIndigo
```

## Components

### Capture & handoff

- [Screenshot capture](https://github.com/fayazara/screendrop/blob/main/Screendrop/ScreenshotManager.swift): `Screendrop/ScreenshotManager.swift`
- [Screen text OCR](https://github.com/fayazara/screendrop/blob/main/Screendrop/ImageTextRecognizer.swift): `Screendrop/ImageTextRecognizer.swift`
- [Screen recording](https://github.com/fayazara/screendrop/blob/main/Screendrop/ScreenRecordingManager.swift): `Screendrop/ScreenRecordingManager.swift`
- [Camera recording](https://github.com/fayazara/screendrop/blob/main/Screendrop/CameraRecordingManager.swift): `Screendrop/CameraRecordingManager.swift`
- [Recording session](https://github.com/fayazara/screendrop/blob/main/Screendrop/RecordingSession.swift): `Screendrop/RecordingSession.swift`
- [Preview stack](https://github.com/fayazara/screendrop/blob/main/Screendrop/CaptureShelfPresenter.swift): `Screendrop/CaptureShelfPresenter.swift`

### Screenshot editing

- [Annotation editor](https://github.com/fayazara/screendrop/blob/main/Screendrop/AnnotationEditorModel.swift): `Screendrop/AnnotationEditorModel.swift`
- [Drawing engine](https://github.com/fayazara/screendrop/blob/main/Screendrop/Engine/AnnoEditor.swift): `Screendrop/Engine/AnnoEditor.swift`
- [Smart redaction](https://github.com/fayazara/screendrop/blob/main/Screendrop/SmartRedactionRecognizer.swift): `Screendrop/SmartRedactionRecognizer.swift`

### Recording & Studio

- [Recording Studio](https://github.com/fayazara/screendrop/blob/main/Screendrop/RecordingStudioModel.swift): `Screendrop/RecordingStudioModel.swift`
- [Transcription & captions](https://github.com/fayazara/screendrop/blob/main/Screendrop/RecordingTranscription.swift): `Screendrop/RecordingTranscription.swift`
- [Live teleprompter](https://github.com/fayazara/screendrop/blob/main/Screendrop/TeleprompterController.swift): `Screendrop/TeleprompterController.swift`

### Library & sharing

- [Capture Library](https://github.com/fayazara/screendrop/blob/main/Screendrop/CaptureLibraryModel.swift): `Screendrop/CaptureLibraryModel.swift`
- [Screenshot history](https://github.com/fayazara/screendrop/blob/main/Screendrop/ScreenshotHistoryStore.swift): `Screendrop/ScreenshotHistoryStore.swift`
- [Cloud sharing](https://github.com/fayazara/screendrop/blob/main/Screendrop/CloudUploader.swift): `Screendrop/CloudUploader.swift`

### App controls

- [Menu, hotkeys, automation](https://github.com/fayazara/screendrop/blob/main/Screendrop/ScreendropApp.swift): `Screendrop/ScreendropApp.swift`
- [Capture preferences](https://github.com/fayazara/screendrop/blob/main/Screendrop/ScreendropPreferences.swift): `Screendrop/ScreendropPreferences.swift`
- [Settings](https://github.com/fayazara/screendrop/blob/main/Screendrop/SettingsView.swift): `Screendrop/SettingsView.swift`

### Other components

- **User**
- **Cloudflare account**
- **Apple Shortcuts / Siri**

## Connections

- User → Menu, hotkeys, automation: starts capture (evidence: `README.md`)
- Apple Shortcuts / Siri → Menu, hotkeys, automation: invokes actions (evidence: `README.md`)
- Menu, hotkeys, automation → Screenshot capture: requests screenshot (evidence: `README.md`)
- Menu, hotkeys, automation → Screen recording: starts recording (evidence: `README.md`)
- Menu, hotkeys, automation → Screen text OCR: requests text capture (evidence: `README.md`)
- Settings → Capture preferences: configures (evidence: `README.md`)
- Capture preferences → Screen recording: supplies options (evidence: `Screendrop/ScreenRecordingManager.swift`)
- Screenshot capture → Preview stack: shows capture (evidence: `README.md`)
- Screen recording → Recording session: creates session (evidence: `Screendrop/ScreenRecordingManager.swift`)
- Screen recording → Camera recording: starts camera (evidence: `Screendrop/ScreenRecordingManager.swift`)
- Screen recording → Live teleprompter: manages session (evidence: `Screendrop/ScreenRecordingManager.swift`)
- Screen recording → Preview stack: presents recording (evidence: `Screendrop/ScreenRecordingManager.swift`)
- Preview stack → Annotation editor: opens editor (evidence: `README.md`)
- Preview stack → Recording Studio: opens Studio (evidence: `README.md`)
- Preview stack → Screen text OCR: copies recognized text (evidence: `README.md`)
- Annotation editor → Drawing engine: uses drawing engine (evidence: `Screendrop/Engine/AnnoEditor.swift`)
- Annotation editor → Smart redaction: recognizes sensitive content (evidence: `README.md`)
- Recording Studio → Transcription & captions: edits transcript (evidence: `README.md`)
- Live teleprompter → Cloudflare account: uses speech recognition
- Live teleprompter → Screen recording: tracks narration (evidence: `Screendrop/TeleprompterController.swift`)
- Menu, hotkeys, automation → Capture Library: opens Library (evidence: `README.md`)
- Capture Library → Screenshot history: discovers captures (evidence: `README.md`)
- Capture Library → Annotation editor: edits screenshots (evidence: `README.md`)
- Capture Library → Recording Studio: edits recordings (evidence: `README.md`)
- Preview stack → Cloud sharing: uploads capture (evidence: `README.md`)
- Recording Studio → Cloud sharing: shares recording (evidence: `README.md`)
- Cloud sharing → Cloudflare account: uploads to (evidence: `README.md`)
