Skip to content

Open source CapCut alternative.

TypeScript

docs: retire cut.donkeyuse.com from comments and the Cut guide

David Le96f03585dbb9
diff --git a/.github/workflows/nightly-donkey-build.yml b/.github/workflows/nightly-donkey-build.yml
index 01e30c73..2d04bed0 100644
--- a/.github/workflows/nightly-donkey-build.yml
+++ b/.github/workflows/nightly-donkey-build.yml
@@ -92,7 +92,7 @@ jobs:
# The bundled CLI tools (ffmpeg, lit, pdf-fill, …) are NOT baked into the app: it downloads
# them on first run from the artifact published by the Publish Bundled Tools workflow, so the
# nightly package builds without vendoring them here. The Donkey Cut engine (the local server
- # behind cut.donkeyuse.com) IS built and bundled by package-donkey-app.sh — no separate step.
+ # behind donkeycut.com) IS built and bundled by package-donkey-app.sh — no separate step.
- name: Package Donkey
if: steps.changes.outputs.should_build == 'true'
env:
diff --git a/apps/Donkey/Sources/Donkey/DonkeyAppDelegate.swift b/apps/Donkey/Sources/Donkey/DonkeyAppDelegate.swift
index be1880f4..d934f8f4 100644
--- a/apps/Donkey/Sources/Donkey/DonkeyAppDelegate.swift
+++ b/apps/Donkey/Sources/Donkey/DonkeyAppDelegate.swift
@@ -27,7 +27,7 @@ final class DonkeyAppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {
/// run only while signed in and are torn down on sign-out.
private var sessionHeartbeatTimer: Timer?
private var sessionHeartbeatActiveObserver: NSObjectProtocol?
- /// Runs the Donkey Cut engine (the local server behind cut.donkeyuse.com) for the app's
+ /// Runs the Donkey Cut engine (the local server behind donkeycut.com) for the app's
/// lifetime. Cut is free and standalone, so this starts regardless of sign-in state.
private var cutEngineSupervisor: DonkeyCutEngineSupervisor?
/// The QuickTime-style screen recorder: a menu bar toggle, a center-bottom control bar, and the
diff --git a/apps/Donkey/Sources/DonkeyRuntime/DonkeyCutEngineSupervisor.swift b/apps/Donkey/Sources/DonkeyRuntime/DonkeyCutEngineSupervisor.swift
index f8cd6326..4bcfc228 100644
--- a/apps/Donkey/Sources/DonkeyRuntime/DonkeyCutEngineSupervisor.swift
+++ b/apps/Donkey/Sources/DonkeyRuntime/DonkeyCutEngineSupervisor.swift
@@ -1,6 +1,6 @@
import Foundation
-/// Runs the Donkey Cut engine — the local server behind cut.donkeyuse.com — for the app's lifetime.
+/// Runs the Donkey Cut engine — the local server behind donkeycut.com — for the app's lifetime.
///
/// Cut's page is static html/js served from the hosted site; everything real (project files, ffmpeg,
/// on-device speech, the user's own claude/codex logins) happens in this engine on 127.0.0.1. The app
diff --git a/docs/guides/cut/README.md b/docs/guides/cut/README.md
index 07f638f7..fc7f5c5c 100644
--- a/docs/guides/cut/README.md
+++ b/docs/guides/cut/README.md
@@ -1,6 +1,6 @@
# Cut
-Cut (publicly "Donkey Cut") is a standalone, free video editor. Its product domain is `donkeycut.com` — a marketing landing at `/` and the editor at `/app/…` — while the legacy `cut.donkeyuse.com` keeps serving the editor at its root, unchanged. Both hosts serve only the client bundle — every page is client-rendered — and the page does all real work against the Cut engine: a local server the Donkey Mac app ships and supervises on the user's own Mac. The engine uses local disk, the app's bundled ffmpeg, on-device speech, and the user's own Claude/Codex CLI logins. Using the app requires a Donkey sign-in, and every engine request carries the signed-in account id: each account's projects and library live in that account's own folder on the Mac, so accounts sharing a machine don't see each other's work. AI generation — images, video, and voiceovers — and the assistant's Gemini models additionally spend credits: the page posts to Donkey's hosted inference routes with the user's session and credits. On `cut.donkeyuse.com` the auth cookie rides the registrable domain; `donkeycut.com` is a different registrable domain, so it signs in through an apex one-time-token handoff (`/cut-auth`) that sets a host-only cookie there. Generated media lands back in the project through the engine like any other file; Gemini chat turns, including their editor tool calls, run entirely in the page.
+Cut (publicly "Donkey Cut") is a standalone, free video editor. Its product domain is `donkeycut.com` — a marketing landing at `/` and the editor at `/app/…`; old `cut.donkeyuse.com` links are redirected there at the edge (Cloudflare). The host serves only the client bundle — every page is client-rendered — and the page does all real work against the Cut engine: a local server the Donkey Mac app ships and supervises on the user's own Mac. The engine uses local disk, the app's bundled ffmpeg, on-device speech, and the user's own Claude/Codex CLI logins. Using the app requires a Donkey sign-in, and every engine request carries the signed-in account id: each account's projects and library live in that account's own folder on the Mac, so accounts sharing a machine don't see each other's work. AI generation — images, video, and voiceovers — and the assistant's Gemini models additionally spend credits: the page posts to Donkey's hosted inference routes with the user's session and credits. `donkeycut.com` owns sign-in directly — the auth pages and the Google callback serve on that host — so the session is a plain host-only cookie. Generated media lands back in the project through the engine like any other file; Gemini chat turns, including their editor tool calls, run entirely in the page.
**The engine rule:** the engine API surface (`/api/cut/*`) runs only on the user's Mac. On a hosted deploy every one of those routes answers 404 before any handler runs, so the unauthenticated routes are unreachable there and nothing can execute off-Mac — the engine has no path to Donkey's production models; the page reaches them only through Donkey's own authenticated inference APIs. Don't wrap the engine's routes in the Donkey auth helper, reach for Prisma from them, or bill them against credits; local-only is the design for everything the engine does.
@@ -22,7 +22,7 @@ browser ── API calls ──▶ Cut engine on 127.0.0.1 (spawned by the Donke
· the user's own claude/codex CLI logins
```
-The client probes the engine's health endpoint (dedicated port first, dev server second) and remembers the winner. Browsers permission-gate a hosted page's calls to the local machine, so the first hosted visit holds on a connect screen and fires the browser's permission prompt from the user's own click; a denied permission gets its own recovery screen. The engine grants the hosted origins cross-origin access, and only those origins. Without a running engine the page shows a "get Donkey / open Donkey" state that connects by itself as soon as the engine appears — unless web mode is on, in which case the page passes straight into cloud-only editing instead of walling. Engine updates ride the Donkey app's own auto-updater, so the client never prompts to update.
+The client probes the engine's health endpoint (dedicated port first, dev server second) and remembers the winner. Browsers permission-gate a hosted page's calls to the local machine, so the first hosted visit holds on a connect screen and fires the browser's permission prompt from the user's own click; a denied permission gets its own recovery screen. The engine grants the hosted origin cross-origin access, and only that origin. Without a running engine the page shows a "get Donkey / open Donkey" state that connects by itself as soon as the engine appears — unless web mode is on, in which case the page passes straight into cloud-only editing instead of walling. Engine updates ride the Donkey app's own auto-updater, so the client never prompts to update.
## Web mode
diff --git a/scripts/package-donkey-app.sh b/scripts/package-donkey-app.sh
index 7e6fd08c..778a3c79 100755
--- a/scripts/package-donkey-app.sh
+++ b/scripts/package-donkey-app.sh
@@ -323,7 +323,7 @@ stage_bundled_tools() {
echo "Baked bundled tools from $source_dir into $dest_dir (offline override)."
}
-# The Donkey Cut engine — the local server behind cut.donkeyuse.com — is version-locked to the
+# The Donkey Cut engine — the local server behind donkeycut.com — is version-locked to the
# app and built here as part of packaging, so one command produces a complete app. Set
# DONKEY_CUT_ENGINE_BIN to reuse a prebuilt binary (e.g. a cross-arch or cached CI build) instead.
stage_cut_engine() {