Skip to content
cloakyardPublic

About

A fast, private, multi-segment download manager for macOS — that feels like Apple made it.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

6 stars

Watchers

0 watching

Forks

Repository files navigation

CloakDrop

Downloads, thoughtfully managed.

Website · Source · Support

License: MIT Platform: macOS · Apple silicon Source version: 1.0.0 Swift 6 SwiftUI · Liquid Glass

CloakDrop on macOS, with the sidebar library, download list, and live segment inspector.

Overview

An open-source download manager for Apple silicon Macs, with parallel transfers, saved progress and video capture. The native SwiftUI app and independently tested Swift engine are separate from the Air website.

Features

Capability Implementation
Adaptive parallel transfers Size-aware automatic planning, a configurable connection budget up to 32, and per-download overrides. Bounded scheduling and tail work-stealing keep useful connections busy. Incorrect HTTP ranges trigger a coherent single-stream restart.
HTTP, HTTPS, FTP and FTPS Native transports, including FTP resume probing and implicit TLS for FTPS. Retries use backoff and jitter; connectivity changes can pause and resume configured work.
Pause and resume Persisted segment offsets and private staging files support app relaunch. Size, range and available resource validators guard against mixing incompatible remote representations.
Integrity and provenance Optional MD5, SHA-1 and SHA-256 verification before ordinary files are published; same-origin checksum discovery; local exportable receipts. Offline code-signature checks are available for recognizable app/DMG code objects, without claiming a notarization verdict.
Mirrors and safe publication Metalink mirror spread and failover, source validation, filename sanitization and collision handling. Finalization must never replace an existing file or directory.
Queues and bandwidth Per-queue concurrency, global and per-download speed caps, time-of-day profiles, scheduling, categories and routing rules.
Recover and prioritize Repair ordinary-file downloads with fresh links, reusing compatible partial data or explicitly restarting. Finish one item first across queues, then restore competing work while respecting manual pauses.
Move unfinished downloads Choose another folder for unfinished file or media data. Staging is copied before the catalog changes; the original is retired after that update succeeds. The download stays paused for review and resume.
Playlist import Review up to 100 items from a supported public playlist, select entries and one quality preference, then queue numbered files in a playlist folder. Each page resolves when its download starts; existing catalog URLs are skipped. Requires yt-dlp.
Capture from your workflow Clipboard watching, drag and drop, Services, a Share Extension, and a link grabber with deduplication and pattern expansion. Remembered credentials use Keychain; request-specific state is retained locally for resume.
Built-in browser WebKit with persistent logins, no saved browsing history, and a one-click site-data wipe. Detects manifests, direct media and file downloads, including players in shadow DOM; filters known ad hosts and stream chunks. Optional blocklists are fetched only when selected or updated.
Video and audio grabbing HLS/DASH quality selection, supported AES-128 streams, subtitle sidecars and independently downloadable audio renditions. Optional yt-dlp resolves supported video pages and audio-only pages; CloakDrop’s own engine transfers the selected payload. Pasted video pages and browser page captures offer compatible MP4 (H.264/AAC, when available) or original quality; both preserve the selected source streams without re-encoding.
Local media processing AVFoundation passthrough for compatible media, with an optional network-free ffmpeg helper for additional formats such as VP9, AV1 and Opus. No re-encoding.
Useful finishing touches Guarded ZIP extraction, download quarantine, completion actions, local statistics, and a speed test that runs only when started by you.
Native macOS UI SwiftUI and Liquid Glass, light/dark appearance, keyboard and VoiceOver support, reduced-motion handling, menu-bar and Dock progress, and an interface localized into 11 languages.

Current boundaries

Media support depends on the site, login state, region, URL lifetime and bundled extractor version. DRM-protected formats are excluded. The browser shelf currently represents one primary media item per page. Continuous live recording, automatic re-resolution of expired media URLs, and separate authentication headers for every media resource are not implemented.

If a split video requires an external audio track that cannot be resolved, preparation fails rather than silently choosing silent video. If every available muxer rejects the downloaded pair, the download fails and keeps both staged streams for retry; it never publishes a video-only success. Subtitle sidecars are best effort.

App proxy settings cover HTTP transfers and speed tests. The browser supports system/manual proxy selection; native FTP connects directly, and the app does not pass its proxy settings to yt-dlp. The Share Extension inbox requires an appropriately signed App Group build; the team-less Debug configuration does not exercise that handoff.

Resume has automated and GUI coverage across manager/app relaunch. That evidence does not establish physical power-loss durability or compatibility with every FTP/FTPS server. Without a usable validator or trusted checksum, equal-length remote changes can remain undetected. The 1.0.0 release audit records tested behavior and remaining limits.

Troubleshooting

A download folder moved

Pause downloads before moving their destination folder. Keep its .cdpart files and .cdparts directories with it, then Resume; CloakDrop can follow the saved folder and reuse compatible partial data.

If another folder occupies the original location, CloakDrop may refuse to resume because it cannot verify which folder is yours. Preserve that replacement folder and its contents by moving it aside, then Retry. If access still cannot be restored, return the original download folder to the saved location shown under Destination, then retry. Do not delete unrelated data to make room, or remove and re-add the download if you want to retain its partial progress. Use Move Download… to copy accessible unfinished data to another folder. The download remains paused until you resume it; keep the original folder accessible until moving finishes.

A remembered password needs entering again after upgrading

Version 1.0.0 separates saved website credentials by scheme, host and port, and keeps proxy logins separate. Older credentials saved only by hostname are no longer reused, so you may need to enter and remember a password once again. This prevents a saved HTTPS password from being offered to HTTP or another service on the same host. Credentials already attached to an existing download remain available for its resume.

Privacy

There are no analytics, accounts or crash-report uploads. Sparkle update checks and downloads are manual unless you enable automatic updates in About settings. Network activity is limited to work you initiate or configure: transfers and their redirects/mirrors/retries; optional same-origin checksum discovery; submitted video-page resolution; browser pages and subresources; searches submitted on Return; configured proxies; manual speed tests; blocklists you explicitly select or update; and app updates you request or enable. Scheduled transfers and automatic resume can continue work configured earlier.

Download records, settings, receipts and statistics stay on your Mac. The browser retains cookies and site data for logins, but no browsing history. App Sandbox limits filesystem access to the app’s containers, Downloads and destinations you select. See the full privacy policy and security policy for storage, authentication and network boundaries.

Getting started

Requires macOS 26 or later on Apple silicon. Release builds and bundled helpers are arm64-only.

  1. Download the DMG from the newest GitHub release and open it.
  2. Drag CloakDrop into Applications, then open it.
  3. If macOS blocks that first launch, and you trust the official download, open System Settings → Privacy & Security → Open Anyway, then confirm Open.

Current locally signed builds are not notarized. See Apple’s opening guidance and the release notes for the signing status of the build you download.

This source tree is 1.0.0; 1.0.0-rc.4 (20261118.6) is available as a prerelease. See the RC 4 notes for the installer and verification. GitHub Releases lists the available downloads; each release’s notes and assets are the source of truth for its features, checksums, and signing status.

Published release and source

This release focuses on transfer reliability and a simpler native experience: safer recovery of saved downloads and moved folders, stronger input validation, scoped remembered credentials, and updated macOS 27 controls.

The October 30 RC2 audit records 649 executed passing tests (one opt-in live test skipped), fresh Debug/Release builds and a complete YouTube MP4 downloaded by the installed RC. RC2 adds compatible MP4 selection, media timing/packaging fixes and a Ko-fi support link in About. The audit documents the remaining signing, Share Extension and official-bundle runtime limits.

Development

Native app

Requires macOS 26+, Xcode 27+, an Apple silicon Mac and XcodeGen. The headless Swift 6 package separately declares macOS 15 as its minimum deployment target.

brew install xcodegen
git clone https://github.com/cloakyard/cloakdrop.git
cd cloakdrop/apps/macos
xcodegen generate
xcodebuild -project CloakDrop.xcodeproj -scheme CloakDrop \
  -destination 'platform=macOS,arch=arm64' -configuration Debug \
  -derivedDataPath build/Verify build
open build/Verify/Build/Products/Debug/CloakDrop.app

project.yml is the source of truth; the generated .xcodeproj is ignored. Regenerate after changing project configuration or adding/removing source files. Debug and Release are locally ad-hoc signed without a developer team. The separate project-release.yml opts into provisioned App Groups for future Developer ID distribution; packaging alone does not notarize the app. See updates.

In agent environments that inject git safe.bareRepository=explicit, prefix xcodegen, xcodebuild and swift test with GIT_CONFIG_COUNT=0 so SwiftPM can resolve packages.

Optional media helpers

From apps/macos/, run these opt-in scripts before rebuilding:

scripts/fetch-ffmpeg.sh
scripts/fetch-ytdlp.sh

The scripts verify pinned upstream artifacts and stage the helpers for the app’s signing step. Without ffmpeg, compatible AVFoundation processing remains available. Without yt-dlp, direct media and manifest downloads still work, while extractor-based page resolution is unavailable.

Layer Choice
App SwiftUI, AppKit, WebKit and system accessibility
Core Swift 6 actors, structured concurrency and protocol seams
Networking URLSession and a native Network.framework FTP/FTPS client
Persistence GRDB/SQLite; Keychain for remembered credentials
Integrity CryptoKit and Security framework
Media AVFoundation plus optional ffmpeg
Page extraction Optional yt-dlp, used for metadata and media URLs
Build XcodeGen and SwiftLint; the independent website uses Astro

GRDB is the core’s only third-party Swift dependency. The app also embeds pinned Sparkle 2 for signed updates; see update publishing. The dependency audit records exact versions, upstream sources, verification and compatibility exceptions. The latest audited yt-dlp release still bundles some older runtime libraries, including OpenSSL with a newer security patch available. Updating the extractor does not update every frozen dependency. For this RC, the maintainer explicitly chose to retain the complete official bundle and document that exception instead of adding a custom runtime.

To package the Debug build as a drag-to-Applications DMG, from apps/macos/:

scripts/dmg/make-dmg.sh build/Verify/Build/Products/Debug/CloakDrop.app

Release assets belong on GitHub Releases, not in the source repository. Bundled tools retain their own licenses and distribution requirements.

Verification

From the repository root, run the headless suite:

cd apps/macos/Packages/DownloaderCore
swift test

The October 30, 2026 RC2 audit reports 650 tests across 90 suites: 649 executed and passed, one opt-in live-site test skipped in the optimized run, covering segment scheduling, relaunch/resume, range and identity validation, retry truncation, cancellation races, credential scoping, HTTP/FTP loopback transfers, safe publication, checksums, bandwidth limiting, archive guards, manifest parsing and media extraction. See the RC2 audit for the exact commands, results and limits. The September 14 audit separately records the earlier Thread Sanitizer run.

Normal tests use mocks or loopback servers; a cold package resolution may fetch GRDB. To opt into live-origin smoke tests, supply your own HTTP(S) test files from the package directory:

CLOAKDROP_LIVE_TEST_URLS='https://origin.example/file,https://another.example/file' \
  swift test --filter LiveOriginSmokeTests

The current audit includes arm64 Debug and optimized Release builds, lint/localization checks and a native checksum-matched transfer. Earlier static analysis, pause/relaunch/resume, moved-destination and browser-capture evidence remains in the dated September audit. For the repeatable visual workflow, see the verification guide.

Website

The independent Air website is in apps/site. Its README documents Node/npm setup, browser verification and deployment; native tests do not verify website layouts.

Design and assets

The website follows the portable Air contract and its pinned local bundle. The native app keeps SwiftUI, SF Symbols and macOS system conventions. Do not apply web control skins to native UI.

Brand assets own the marks, installer artwork and synthetic screenshots. Website asset sync reads those checked-in sources; edit the sources rather than generated copies. Screenshots are examples, not evidence of a real transfer or backup.

Project structure

In apps/macos/App/, App/ holds the entry point and app state, Features/ groups product workflows, Shared/ holds reusable UI helpers and Resources/ contains app resources. Headless code and its tests live under apps/macos/Packages/.

cloakdrop/
├── apps/
│   ├── macos/
│   │   ├── App/                       # Thin SwiftUI shell and AppModel bridge
│   │   ├── ShareExtension/            # Share-sheet capture
│   │   ├── Packages/DownloaderCore/
│   │   │   ├── Sources/
│   │   │   │   ├── DownloadModels/
│   │   │   │   ├── DownloadPersistence/
│   │   │   │   └── DownloadEngine/
│   │   │   └── Tests/
│   │   ├── Vendor/                    # Opt-in helpers and provenance notes
│   │   ├── scripts/                   # Helper fetch, DMG and validation tools
│   │   └── project.yml                # XcodeGen source
│   └── site/                          # Astro site → Cloudflare Workers
├── assets/                            # Shared icons, artwork and screenshots
└── docs/                              # Documentation index and dated audits

See the architecture, website guide, asset guide and documentation index.

Deployment and releases

The app uses a three-part marketing version and an increasing YYYYMMDD.N build number. See the Mac release guide for the Air installer, version settings and Developer ID workflow.

Publish website changes through tested dev → main PRs and keep dev updated. When dev also holds unrelated native work, use a separately reviewed website-only PR under the maintainer's approved exception, then merge main into dev without releasing that native work. The website guide records build and deployment commands.

Native release preparation is separate from website deployment. Follow the existing build/packaging and verification instructions above; publish binaries and checksums to GitHub Releases, not the source tree. Preserve documented signing, runtime and physical-device limits.

Contributing

Read AGENTS.md, CLAUDE.md and DESIGN.md before changes. See CONTRIBUTING.md for contribution and disclosure guidance. Keep changes bounded, preserve features and output, remove obsolete references, and record actual verification. Compare all applicable views in phone, tablet, laptop and desktop layouts, both themes.

The family README standard defines this document's section order. Support the project through Buy me a coffee.

License

Released under the MIT License. Third-party components retain their own licenses.

Built by Sumit Sahoo, part of Cloakyard.

About

A fast, private, multi-segment download manager for macOS — that feels like Apple made it.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

6 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages