How lekibbitz/artshot-x works
ArtShot X is a local macOS screenshot and screen-recording app. Its main flow is user selection or display choice, capture, then a floating preview for saving, copying, or editing. Separate workflows stitch manually scrolled captures and record screen, camera, and audio for later editing and MP4 export. The graph preserves these product stages and key internal services. Edges are limited to relationships shown in excerpts, the source index, or the README; unsampled implementation details are not assumed.
Main entry points: AppDelegate.swift App coordinator · RecordingController.swift Recording controls · ScrollingCaptureController.swift Scroll capture · CaptureService.swift Screen capture
Components 25
Capture setup
- App coordinator
Sources/ArtShotX/AppDelegate.swift - Global shortcuts
Sources/ArtShotX/GlobalShortcuts.swift - Capture toolbar
Sources/ArtShotX/CapturePanelController.swift - Region selection
Sources/ArtShotX/SelectionOverlay.swift - Capture geometry
Sources/ArtShotCore/CaptureGeometry.swift - Screen capture
Sources/ArtShotX/CaptureService.swift
Image workflow
- Scroll capture
Sources/ArtShotX/ScrollingCaptureController.swift - Scroll stitching
Sources/ArtShotCore/ScrollStitcher.swift - Scroll preview
Sources/ArtShotX/ScrollingPreviewView.swift - Capture thumbnail
Sources/ArtShotX/QuickAccessController.swift - Image editor
Sources/ArtShotX/PreviewWindowController.swift - Annotation canvas
Sources/ArtShotX/AnnotationCanvas.swift
Recording
- Recording controls
Sources/ArtShotX/RecordingController.swift - Recording remote
Sources/ArtShotX/RecordingControlBar.swift - Live camera
Sources/ArtShotX/LiveCameraSource.swift - Camera layout
Sources/ArtShotX/CameraLayout.swift - Camera overlay
Sources/ArtShotX/CameraOverlayController.swift - Screen recorder
Sources/ArtShotX/ScreenRecorder.swift - Recording timeline
Sources/ArtShotX/RecordingTimeline.swift
Video editing
- Video editor
Sources/ArtShotX/VideoPreviewWindowController.swift - Recording composition
Sources/ArtShotX/RecordingMedia.swift - Camera compositor
Sources/ArtShotX/CameraVideoCompositor.swift
Media library
- Capture library
Sources/ArtShotX/CaptureLibrary.swift
Other components
- User
- ScreenCaptureKit
Connections 30
- User → Global shortcuts: invokes
README.md - User → Capture toolbar: chooses capture
README.md - App coordinator → Global shortcuts: registers
Sources/ArtShotX/AppDelegate.swift - App coordinator → Capture toolbar: coordinates
Sources/ArtShotX/AppDelegate.swift - App coordinator → Region selection: prepares region
Sources/ArtShotX/AppDelegate.swift - App coordinator → Screen capture: requests capture
Sources/ArtShotX/AppDelegate.swift - Region selection → Capture geometry: uses geometry
Sources/ArtShotX/SelectionOverlay.swift - Screen capture → Capture geometry: converts region
Sources/ArtShotX/CaptureService.swift - Screen capture → ScreenCaptureKit: captures image
Sources/ArtShotX/CaptureService.swift - App coordinator → Scroll capture: starts scrolling
Sources/ArtShotX/AppDelegate.swift - Scroll capture → Screen capture: captures samples
Sources/ArtShotX/ScrollingCaptureController.swift - Scroll capture → Scroll stitching: aligns frames
Sources/ArtShotX/ScrollingCaptureController.swift - Scroll capture → Scroll preview: updates preview
Sources/ArtShotX/ScrollingCaptureController.swift - App coordinator → Capture thumbnail: presents captures
Sources/ArtShotX/AppDelegate.swift - Capture thumbnail → Image editor: opens image
README.md - Image editor → Annotation canvas: uses canvas
Sources/ArtShotX/PreviewWindowController.swift - App coordinator → Capture library: loads recent media
Sources/ArtShotX/AppDelegate.swift - User → Recording controls: starts recording
README.md - App coordinator → Recording controls: coordinates
Sources/ArtShotX/AppDelegate.swift - Recording controls → Recording remote: controls recording
Sources/ArtShotX/RecordingController.swift - Recording controls → Live camera: starts camera
Sources/ArtShotX/RecordingController.swift - Recording controls → Camera overlay: shows camera
Sources/ArtShotX/RecordingController.swift - Camera overlay → Camera layout: positions camera
Sources/ArtShotX/CameraOverlayController.swift - Recording controls → Screen recorder: records take
Sources/ArtShotX/RecordingController.swift - Screen recorder → Recording timeline: tracks segments
Sources/ArtShotX/ScreenRecorder.swift - App coordinator → Video editor: opens recording editor
Sources/ArtShotX/AppDelegate.swift - Video editor → Recording composition: prepares export
README.md - Recording composition → Camera compositor: composites camera
Sources/ArtShotX/RecordingMedia.swift - Recording composition → Camera layout: applies layout
Sources/ArtShotX/RecordingMedia.swift - Video editor → Capture library: exports edited media