Skip to content

Open source CapCut alternative.

TypeScript

feat(site): seed new accounts with a starter project

David Led04fdb1a9d96
diff --git a/site/prisma/Cut.prisma b/site/prisma/Cut.prisma
index 388ce068..d0f706b6 100644
--- a/site/prisma/Cut.prisma
+++ b/site/prisma/Cut.prisma
@@ -79,6 +79,9 @@ model CutMediaObject {
bytes BigInt @default(0)
kind String @default("media") // media | export | preview | library | overlay
uploadState String @default("pending") // pending | complete
+ // Seeded starter-project media never counts toward the storage quota: usage
+ // is not added when the row lands, so nothing is subtracted when it goes.
+ quotaExempt Boolean @default(false)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
diff --git a/site/public/cut-starter/chat.json b/site/public/cut-starter/chat.json
new file mode 100644
index 00000000..492c0340
--- /dev/null
+++ b/site/public/cut-starter/chat.json
@@ -0,0 +1,31 @@
+[
+ {
+ "id": "59ba035c-d37a-400e-ac1a-d216c254fa5f",
+ "title": "use the image in this https://x.com/Maercihh/status/2078729226820424157 and crea",
+ "updatedAt": 1785389399200,
+ "messages": [
+ {
+ "parts": [
+ {
+ "type": "text",
+ "text": "use the image in this https://x.com/Maercihh/status/2078729226820424157 and create a video in the same style.\n\n3 segments, all seamlessly blended one after the other, walking into and out of the other video.\n\ndo it for Seoul, San Francisco and Toronto"
+ }
+ ],
+ "id": "oftXjkffjGRZaQgx",
+ "role": "user"
+ },
+ {
+ "id": "3Luhh3VN9P5bC3qr",
+ "role": "assistant",
+ "parts": [
+ {
+ "type": "text",
+ "text": "I pulled the reference art from the post and planned a three-part journey in that watercolor-and-ink style \u2014 one traveler walking through Seoul, San Francisco, and Toronto.\n\nHere's how it came together:\n* **Planned the scene** below \u2014 one traveler, three cities, with location references for Dongdaemun Design Plaza in Seoul, a steep San Francisco hillside, and an autumn street in Toronto.\n* **Generated the three segments** and laid them on the timeline in order.\n* **Blended them seamlessly** with 1-second crosszoom transitions, so she walks out of one city straight into the next.\n* **Set a music bed** under the whole cut, with the clips muted so the score carries the journey.\n\nPress play to watch it \u2014 then ask me to change anything: swap in your own city, adjust the pacing, add a title, or restyle the whole thing.",
+ "state": "done"
+ }
+ ]
+ }
+ ],
+ "sessions": {}
+ }
+]
diff --git a/site/public/cut-starter/media/0b108cc1-2237-4680-91b0-9cc704778480-0.png b/site/public/cut-starter/media/0b108cc1-2237-4680-91b0-9cc704778480-0.png
new file mode 100644
index 00000000..cf09925c
Binary files /dev/null and b/site/public/cut-starter/media/0b108cc1-2237-4680-91b0-9cc704778480-0.png differ
diff --git a/site/public/cut-starter/media/2078729226820424157-1-1.jpg b/site/public/cut-starter/media/2078729226820424157-1-1.jpg
new file mode 100644
index 00000000..6d226944
Binary files /dev/null and b/site/public/cut-starter/media/2078729226820424157-1-1.jpg differ
diff --git a/site/public/cut-starter/media/2078729226820424157-1.jpg b/site/public/cut-starter/media/2078729226820424157-1.jpg
new file mode 100644
index 00000000..6d226944
Binary files /dev/null and b/site/public/cut-starter/media/2078729226820424157-1.jpg differ
diff --git a/site/public/cut-starter/media/2078729226820424157-2-1.jpg b/site/public/cut-starter/media/2078729226820424157-2-1.jpg
new file mode 100644
index 00000000..88715b50
Binary files /dev/null and b/site/public/cut-starter/media/2078729226820424157-2-1.jpg differ
diff --git a/site/public/cut-starter/media/2078729226820424157-2.jpg b/site/public/cut-starter/media/2078729226820424157-2.jpg
new file mode 100644
index 00000000..88715b50
Binary files /dev/null and b/site/public/cut-starter/media/2078729226820424157-2.jpg differ
diff --git a/site/public/cut-starter/media/3a2fe5ac-3163-422a-b512-51fd0a3f10c1-0.png b/site/public/cut-starter/media/3a2fe5ac-3163-422a-b512-51fd0a3f10c1-0.png
new file mode 100644
index 00000000..c7def569
Binary files /dev/null and b/site/public/cut-starter/media/3a2fe5ac-3163-422a-b512-51fd0a3f10c1-0.png differ
diff --git a/site/public/cut-starter/media/3a5e9d97-c63d-48f8-bde5-3a9e757c295c-0.mp3 b/site/public/cut-starter/media/3a5e9d97-c63d-48f8-bde5-3a9e757c295c-0.mp3
new file mode 100644
index 00000000..e4601d5c
Binary files /dev/null and b/site/public/cut-starter/media/3a5e9d97-c63d-48f8-bde5-3a9e757c295c-0.mp3 differ
diff --git a/site/public/cut-starter/media/4218c2a2-5276-447a-ad55-db33ad4584df-0.png b/site/public/cut-starter/media/4218c2a2-5276-447a-ad55-db33ad4584df-0.png
new file mode 100644
index 00000000..7604a37b
Binary files /dev/null and b/site/public/cut-starter/media/4218c2a2-5276-447a-ad55-db33ad4584df-0.png differ
diff --git a/site/public/cut-starter/media/ai-watercolor-and-loose-black-ink-sketch-il-1.mp4 b/site/public/cut-starter/media/ai-watercolor-and-loose-black-ink-sketch-il-1.mp4
new file mode 100644
index 00000000..b15d6c7e
Binary files /dev/null and b/site/public/cut-starter/media/ai-watercolor-and-loose-black-ink-sketch-il-1.mp4 differ
diff --git a/site/public/cut-starter/media/ai-watercolor-and-loose-black-ink-sketch-il-2.mp4 b/site/public/cut-starter/media/ai-watercolor-and-loose-black-ink-sketch-il-2.mp4
new file mode 100644
index 00000000..94979607
Binary files /dev/null and b/site/public/cut-starter/media/ai-watercolor-and-loose-black-ink-sketch-il-2.mp4 differ
diff --git a/site/public/cut-starter/media/ai-watercolor-and-loose-black-ink-sketch-il.mp4 b/site/public/cut-starter/media/ai-watercolor-and-loose-black-ink-sketch-il.mp4
new file mode 100644
index 00000000..82fe05be
Binary files /dev/null and b/site/public/cut-starter/media/ai-watercolor-and-loose-black-ink-sketch-il.mp4 differ
diff --git a/site/public/cut-starter/media/c76a22e1-732c-49f6-bb3e-0d9f633e9f54-0.png b/site/public/cut-starter/media/c76a22e1-732c-49f6-bb3e-0d9f633e9f54-0.png
new file mode 100644
index 00000000..9780fa01
Binary files /dev/null and b/site/public/cut-starter/media/c76a22e1-732c-49f6-bb3e-0d9f633e9f54-0.png differ
diff --git a/site/public/cut-starter/media/c773dd7c-dceb-48bc-91e7-3c0af92567c2-0.png b/site/public/cut-starter/media/c773dd7c-dceb-48bc-91e7-3c0af92567c2-0.png
new file mode 100644
index 00000000..cfbeed49
Binary files /dev/null and b/site/public/cut-starter/media/c773dd7c-dceb-48bc-91e7-3c0af92567c2-0.png differ
diff --git a/site/public/cut-starter/media/d26e5830-9424-46a1-b6be-cc734e0dfda4-0.png b/site/public/cut-starter/media/d26e5830-9424-46a1-b6be-cc734e0dfda4-0.png
new file mode 100644
index 00000000..cb88844f
Binary files /dev/null and b/site/public/cut-starter/media/d26e5830-9424-46a1-b6be-cc734e0dfda4-0.png differ
diff --git a/site/public/cut-starter/media/d3be7b91-db0a-4bdf-b934-eeb98ae0ff65-0.png b/site/public/cut-starter/media/d3be7b91-db0a-4bdf-b934-eeb98ae0ff65-0.png
new file mode 100644
index 00000000..ed77003c
Binary files /dev/null and b/site/public/cut-starter/media/d3be7b91-db0a-4bdf-b934-eeb98ae0ff65-0.png differ
diff --git a/site/public/cut-starter/project.json b/site/public/cut-starter/project.json
new file mode 100644
index 00000000..20650924
--- /dev/null
+++ b/site/public/cut-starter/project.json
@@ -0,0 +1,444 @@
+{
+ "version": 1,
+ "name": "Cities",
+ "createdAt": 1785304221163,
+ "updatedAt": 1785306061281,
+ "assets": [
+ {
+ "id": "97139b9b",
+ "fileName": "2078729226820424157-1.jpg",
+ "name": "GPT image 2.0 on ChatGPT. Prompt: { \"CITY_NAME\": \"<Enter City Name>\", \"TAGLINE\": \"<Enter Short Tagline>\", \"prompt\": \"Cre",
+ "type": "image",
+ "duration": 0,
+ "width": 1086,
+ "height": 1448,
+ "origin": "chat",
+ "chatId": "59ba035c-d37a-400e-ac1a-d216c254fa5f"
+ },
+ {
+ "id": "0fc2a719",
+ "fileName": "2078729226820424157-2.jpg",
+ "name": "GPT image 2.0 on ChatGPT. Prompt: { \"CITY_NAME\": \"<Enter City Name>\", \"TAGLINE\": \"<Enter Short Tagline>\", \"prompt\": \"Cre",
+ "type": "image",
+ "duration": 0,
+ "width": 1086,
+ "height": 1448,
+ "origin": "chat",
+ "chatId": "59ba035c-d37a-400e-ac1a-d216c254fa5f"
+ },
+ {
+ "id": "ab925161",
+ "fileName": "4218c2a2-5276-447a-ad55-db33ad4584df-0.png",
+ "name": "Character reference: The Traveler. A woman with long wavy\u2026",
+ "type": "image",
+ "duration": 0,
+ "width": 1536,
+ "height": 2752,
+ "origin": "chat",
+ "chatId": "59ba035c-d37a-400e-ac1a-d216c254fa5f"
+ },
+ {
+ "id": "5b5dac7a",
+ "fileName": "d26e5830-9424-46a1-b6be-cc734e0dfda4-0.png",
+ "name": "Location reference: Steep Hillside, San Francisco. A stee\u2026",
+ "type": "image",
+ "duration": 0,
+ "width": 1536,
+ "height": 2752,
+ "origin": "chat",
+ "chatId": "59ba035c-d37a-400e-ac1a-d216c254fa5f"
+ },
+ {
+ "id": "b8a4adfc",
+ "fileName": "0b108cc1-2237-4680-91b0-9cc704778480-0.png",
+ "name": "Location reference: Dongdaemun Design Plaza, Seoul. The c\u2026",
+ "type": "image",
+ "duration": 0,
+ "width": 1536,
+ "height": 2752,
+ "origin": "chat",
+ "chatId": "59ba035c-d37a-400e-ac1a-d216c254fa5f"
+ },
+ {
+ "id": "6fee6d34",
+ "fileName": "c76a22e1-732c-49f6-bb3e-0d9f633e9f54-0.png",
+ "name": "Location reference: Autumnal Street, Toronto. A city stre\u2026",
+ "type": "image",
+ "duration": 0,
+ "width": 1536,
+ "height": 2752,
+ "origin": "chat",
+ "chatId": "59ba035c-d37a-400e-ac1a-d216c254fa5f"
+ },
+ {
+ "id": "89529dfb",
+ "fileName": "c773dd7c-dceb-48bc-91e7-3c0af92567c2-0.png",
+ "name": "Watercolor and loose black ink sketch illustration on tex\u2026",
+ "type": "image",
+ "duration": 0,
+ "width": 1536,
+ "height": 2752,
+ "origin": "chat",
+ "chatId": "59ba035c-d37a-400e-ac1a-d216c254fa5f"
+ },
+ {
+ "id": "4853b0e6",
+ "fileName": "d3be7b91-db0a-4bdf-b934-eeb98ae0ff65-0.png",
+ "name": "Watercolor and loose black ink sketch illustration on tex\u2026",
+ "type": "image",
+ "duration": 0,
+ "width": 1536,
+ "height": 2752,
+ "origin": "chat",
+ "chatId": "59ba035c-d37a-400e-ac1a-d216c254fa5f"
+ },
+ {
+ "id": "d79aa708",
+ "fileName": "3a2fe5ac-3163-422a-b512-51fd0a3f10c1-0.png",
+ "name": "Watercolor and loose black ink sketch illustration on tex\u2026",
+ "type": "image",
+ "duration": 0,
+ "width": 1536,
+ "height": 2752,
+ "origin": "chat",
+ "chatId": "59ba035c-d37a-400e-ac1a-d216c254fa5f"
+ },
+ {
+ "id": "62b66ce9",
+ "fileName": "ai-watercolor-and-loose-black-ink-sketch-il.mp4",
+ "name": "Watercolor and loose black ink sketch illustration on tex\u2026",
+ "type": "video",
+ "duration": 10.005333333333333,
+ "width": 720,
+ "height": 1280,
+ "origin": "chat",
+ "chatId": "59ba035c-d37a-400e-ac1a-d216c254fa5f"
+ },
+ {
+ "id": "8e504d5d",
+ "fileName": "ai-watercolor-and-loose-black-ink-sketch-il-1.mp4",
+ "name": "Watercolor and loose black ink sketch illustration on tex\u2026",
+ "type": "video",
+ "duration": 10.005333333333333,
+ "width": 720,
+ "height": 1280,
+ "origin": "chat",
+ "chatId": "59ba035c-d37a-400e-ac1a-d216c254fa5f"
+ },
+ {
+ "id": "abf50efa",
+ "fileName": "ai-watercolor-and-loose-black-ink-sketch-il-2.mp4",
+ "name": "Watercolor and loose black ink sketch illustration on tex\u2026",
+ "type": "video",
+ "duration": 10.005333333333333,
+ "width": 720,
+ "height": 1280,
+ "origin": "chat",
+ "chatId": "59ba035c-d37a-400e-ac1a-d216c254fa5f"
+ },
+ {
+ "id": "1d1583d4",
+ "fileName": "3a5e9d97-c63d-48f8-bde5-3a9e757c295c-0.mp3",
+ "name": "Music bed",
+ "type": "audio",
+ "duration": 30.772244897959183,
+ "origin": "chat",
+ "chatId": "59ba035c-d37a-400e-ac1a-d216c254fa5f"
+ },
+ {
+ "id": "7ea8f4c5",
+ "fileName": "2078729226820424157-1-1.jpg",
+ "name": "GPT image 2.0 on ChatGPT. Prompt: { \"CITY_NAME\": \"<Enter City Name>\", \"TAGLINE\": \"<Enter Short Tagline>\", \"prompt\": \"Cre",
+ "type": "image",
+ "duration": 0,
+ "width": 1086,
+ "height": 1448,
+ "origin": "chat",
+ "chatId": "59ba035c-d37a-400e-ac1a-d216c254fa5f"
+ },
+ {
+ "id": "6a8bce44",
+ "fileName": "2078729226820424157-2-1.jpg",
+ "name": "GPT image 2.0 on ChatGPT. Prompt: { \"CITY_NAME\": \"<Enter City Name>\", \"TAGLINE\": \"<Enter Short Tagline>\", \"prompt\": \"Cre",
+ "type": "image",
+ "duration": 0,
+ "width": 1086,
+ "height": 1448,
+ "origin": "chat",
+ "chatId": "59ba035c-d37a-400e-ac1a-d216c254fa5f"
+ }
+ ],
+ "clips": [
+ {
+ "id": "96765a79",
+ "assetId": "abf50efa",
+ "track": 0,
+ "start": 0,
+ "in": 0,
+ "out": 4.733333333333333,
+ "muted": true
+ },
+ {
+ "id": "3cbdbdb5",
+ "assetId": "62b66ce9",
+ "track": 0,
+ "start": 4.733333333333333,
+ "in": 4.3,
+ "out": 9.4,
+ "muted": true,
+ "transition": 1,
+ "transitionStyle": "crosszoom"
+ },
+ {
+ "id": "249a27ff",
+ "assetId": "8e504d5d",
+ "track": 0,
+ "start": 8.833333333333334,
+ "in": 1.5,
+ "out": 6.966666666666667,
+ "muted": true
+ }
+ ],
+ "audioClips": [
+ {
+ "id": "1fc154e8",
+ "assetId": "1d1583d4",
+ "start": 0,
+ "in": 0,
+ "out": 14.3,
+ "volume": 0.4,
+ "lane": 1
+ }
+ ],
+ "overlays": [],
+ "overlayClips": [],
+ "templates": [],
+ "aspect": "9:16",
+ "fadeIn": 0,
+ "fadeOut": 0,
+ "subtitles": {
+ "cues": [],
+ "showOnVideo": true,
+ "showOnTimeline": true
+ },
+ "publish": {
+ "caption": "",
+ "tags": "",
+ "soundTitle": "",
+ "handle": ""
+ },
+ "notes": {
+ "text": "",
+ "publishedAt": "",
+ "links": []
+ },
+ "renders": [
+ {
+ "id": "ff07f318",
+ "chatId": "59ba035c-d37a-400e-ac1a-d216c254fa5f",
+ "prompt": "Watercolor and loose black ink sketch illustration on textured cream paper. Soft, diffuse daylight with transparent watercolor color washes. A limited palette of mustard-yellow, soft indigo, charcoal grey, muted brick red, and faded sage green. Eye-level flat 2D perspective tracking shot with a nostalgic, serene travel poster mood. In a seamless transition as she steps forward, the traveler in her mustard-yellow rain jacket and black backpack is now walking down a steep, sunny hill in San Francisco with historic streetcars and the bay in the background. The voiceover heard over this shot (audio only, never visible): ...but sometimes, those steps cross oceans before you even realize you've crossed the street. Setting, Steep Hillside, San Francisco. Framing, medium tracking shot. This shot's role in the story: the turn as she transitions to San Francisco. One single continuous shot with fluid, continuous character motion throughout \u2014 smooth, natural movement, never held poses or stepped animation. Pure visual storytelling: no on-screen text of any kind \u2014 no captions, subtitles, speech bubbles, titles, signs, or lettering \u2014 and no split screens, panels, or storyboard collages. No baked-in editing effects: no transition frames, fades, motion-blur smears, borders, or blurred letterbox bands \u2014 the picture fills the frame edge to edge, composed upright for this frame with a level horizon; cuts and transitions are added later in the editor. The video continues this exact opening frame \u2014 keep its artwork, medium, and rendering technique unchanged.",
+ "startedAt": 1785304617103,
+ "status": "done",
+ "assetId": "62b66ce9"
+ },
+ {
+ "id": "65fa372e",
+ "chatId": "59ba035c-d37a-400e-ac1a-d216c254fa5f",
+ "prompt": "Watercolor and loose black ink sketch illustration on textured cream paper. Soft, diffuse daylight with transparent watercolor color washes. A limited palette of mustard-yellow, soft indigo, charcoal grey, muted brick red, and faded sage green. Eye-level flat 2D perspective tracking shot with a nostalgic, serene travel poster mood. With her next step, the traveler in her mustard-yellow rain jacket and black backpack emerges onto a crisp, autumnal Toronto street, walking towards the CN Tower towering in the cool morning sky. The voiceover heard over this shot (audio only, never visible): Because home isn't where you land, it's the rhythm of the road beneath your feet. Setting, Autumnal Street, Toronto. Framing, low-angle tracking shot. This shot's role in the story: the payoff in Toronto. One single continuous shot with fluid, continuous character motion throughout \u2014 smooth, natural movement, never held poses or stepped animation. Pure visual storytelling: no on-screen text of any kind \u2014 no captions, subtitles, speech bubbles, titles, signs, or lettering \u2014 and no split screens, panels, or storyboard collages. No baked-in editing effects: no transition frames, fades, motion-blur smears, borders, or blurred letterbox bands \u2014 the picture fills the frame edge to edge, composed upright for this frame with a level horizon; cuts and transitions are added later in the editor. The video continues this exact opening frame \u2014 keep its artwork, medium, and rendering technique unchanged.",
+ "startedAt": 1785304617103,
+ "status": "done",
+ "assetId": "8e504d5d"
+ },
+ {
+ "id": "de9d8f97",
+ "chatId": "59ba035c-d37a-400e-ac1a-d216c254fa5f",
+ "prompt": "Watercolor and loose black ink sketch illustration on textured cream paper. Soft, diffuse daylight with transparent watercolor color washes. A limited palette of mustard-yellow, soft indigo, charcoal grey, muted brick red, and faded sage green. Eye-level flat 2D perspective tracking shot with a nostalgic, serene travel poster mood. A traveler wearing a mustard-yellow rain jacket and a black backpack walks briskly past the futuristic curves of the Dongdaemun Design Plaza and glowing neon shopfronts in Seoul. The voiceover heard over this shot (audio only, never visible): They say a journey of a thousand miles begins with a single step... Setting, Dongdaemun Design Plaza, Seoul. Framing, wide tracking shot. This shot's role in the story: establish the world with an iconic Seoul cityscape. One single continuous shot with fluid, continuous character motion throughout \u2014 smooth, natural movement, never held poses or stepped animation. Pure visual storytelling: no on-screen text of any kind \u2014 no captions, subtitles, speech bubbles, titles, signs, or lettering \u2014 and no split screens, panels, or storyboard collages. No baked-in editing effects: no transition frames, fades, motion-blur smears, borders, or blurred letterbox bands \u2014 the picture fills the frame edge to edge, composed upright for this frame with a level horizon; cuts and transitions are added later in the editor. The video continues this exact opening frame \u2014 keep its artwork, medium, and rendering technique unchanged.",
+ "startedAt": 1785304617102,
+ "status": "done",
+ "assetId": "abf50efa"
+ }
+ ],
+ "genvideo": {
+ "id": "scene-df15cc5e",
+ "brief": "A travel journey across three cities: Seoul, San Francisco, and Toronto. Each segment features a traveler walking through iconic cityscapes, seamlessly transitioning and walking from one city to the next.",
+ "references": [
+ {
+ "mediaId": "97139b9b",
+ "kind": "image",
+ "purpose": "style",
+ "name": "GPT image 2.0 on ChatGPT. Prompt: { \"CITY_NAME\": \"<Enter City Name>\", \"TAGLINE\": \"<Enter Short Tagline>\", \"prompt\": \"Cre"
+ },
+ {
+ "mediaId": "0fc2a719",
+ "kind": "image",
+ "purpose": "style",
+ "name": "GPT image 2.0 on ChatGPT. Prompt: { \"CITY_NAME\": \"<Enter City Name>\", \"TAGLINE\": \"<Enter Short Tagline>\", \"prompt\": \"Cre"
+ }
+ ],
+ "audioMode": "generated",
+ "targetSeconds": 18,
+ "fps": 30,
+ "durationFrames": 459,
+ "transcript": [],
+ "aspect": "9:16",
+ "style": "Watercolor and loose black ink sketch illustration on textured cream paper. Soft, diffuse daylight with transparent watercolor color washes. A limited palette of mustard-yellow, soft indigo, charcoal grey, muted brick red, and faded sage green. Eye-level flat 2D perspective tracking shot with a nostalgic, serene travel poster mood.",
+ "suiteLabel": "donkey-hosted",
+ "chatId": "59ba035c-d37a-400e-ac1a-d216c254fa5f",
+ "characters": [
+ {
+ "id": "char:1",
+ "kind": "character",
+ "name": "The Traveler",
+ "description": "A woman with long wavy brown hair. She wears a bright mustard-yellow rain jacket, a white t-shirt, light blue denim jeans, white sneakers, and carries a matte black backpack. Rendered with loose black ink linework and soft watercolor fills.",
+ "mediaId": "ab925161"
+ }
+ ],
+ "locations": [
+ {
+ "id": "loc:1",
+ "kind": "location",
+ "name": "Dongdaemun Design Plaza, Seoul",
+ "description": "The curving, metallic-like structure of the plaza rendered in light grey watercolor washes and loose ink outlines. In the background, glowing neon shopfronts shimmer in soft pink and cool blue washes against warm cream paper.",
+ "mediaId": "b8a4adfc"
+ },
+ {
+ "id": "loc:2",
+ "kind": "location",
+ "name": "Steep Hillside, San Francisco",
+ "description": "A steep downhill street with a historic cable car in muted brick red and cream watercolor. The background features the San Francisco bay in soft indigo washes under a sunny, warm cream sky.",
+ "mediaId": "5b5dac7a"
+ },
+ {
+ "id": "loc:3",
+ "kind": "location",
+ "name": "Autumnal Street, Toronto",
+ "description": "A city street lined with maple trees in faded orange and dry gold watercolor washes. The tall silhouette of the CN Tower rises in soft indigo and grey washes against a clear cream sky.",
+ "mediaId": "6fee6d34"
+ }
+ ],
+ "shots": [
+ {
+ "id": "shot:0",
+ "startFrame": 0,
+ "endFrame": 142,
+ "audioText": "They say a journey of a thousand miles begins with a single step...",
+ "dialogue": "They say a journey of a thousand miles begins with a single step...",
+ "action": "A traveler wearing a mustard-yellow rain jacket and a black backpack walks briskly past the futuristic curves of the Dongdaemun Design Plaza and glowing neon shopfronts in Seoul.",
+ "intent": "establish the world with an iconic Seoul cityscape",
+ "characters": [
+ "char:1"
+ ],
+ "location": "loc:1",
+ "framing": "wide tracking shot",
+ "status": "placed",
+ "attempts": 1,
+ "startKeyframe": "4853b0e6",
+ "lastPrompt": "Watercolor and loose black ink sketch illustration on textured cream paper. Soft, diffuse daylight with transparent watercolor color washes. A limited palette of mustard-yellow, soft indigo, charcoal grey, muted brick red, and faded sage green. Eye-level flat 2D perspective tracking shot with a nostalgic, serene travel poster mood. A traveler wearing a mustard-yellow rain jacket and a black backpack walks briskly past the futuristic curves of the Dongdaemun Design Plaza and glowing neon shopfronts in Seoul. The voiceover heard over this shot (audio only, never visible): They say a journey of a thousand miles begins with a single step... Setting, Dongdaemun Design Plaza, Seoul. Framing, wide tracking shot. This shot's role in the story: establish the world with an iconic Seoul cityscape. One single continuous shot with fluid, continuous character motion throughout \u2014 smooth, natural movement, never held poses or stepped animation. Pure visual storytelling: no on-screen text of any kind \u2014 no captions, subtitles, speech bubbles, titles, signs, or lettering \u2014 and no split screens, panels, or storyboard collages. No baked-in editing effects: no transition frames, fades, motion-blur smears, borders, or blurred letterbox bands \u2014 the picture fills the frame edge to edge, composed upright for this frame with a level horizon; cuts and transitions are added later in the editor.",
+ "clip": "abf50efa",
+ "timelineClipId": "96765a79"
+ },
+ {
+ "id": "shot:1",
+ "startFrame": 142,
+ "endFrame": 295,
+ "audioText": "...but sometimes, those steps cross oceans before you even realize you've crossed the street.",
+ "dialogue": "...but sometimes, those steps cross oceans before you even realize you've crossed the street.",
+ "action": "In a seamless transition as she steps forward, the traveler in her mustard-yellow rain jacket and black backpack is now walking down a steep, sunny hill in San Francisco with historic streetcars and the bay in the background.",
+ "intent": "the turn as she transitions to San Francisco",
+ "characters": [
+ "char:1"
+ ],
+ "location": "loc:2",
+ "framing": "medium tracking shot",
+ "status": "placed",
+ "attempts": 1,
+ "startKeyframe": "89529dfb",
+ "lastPrompt": "Watercolor and loose black ink sketch illustration on textured cream paper. Soft, diffuse daylight with transparent watercolor color washes. A limited palette of mustard-yellow, soft indigo, charcoal grey, muted brick red, and faded sage green. Eye-level flat 2D perspective tracking shot with a nostalgic, serene travel poster mood. In a seamless transition as she steps forward, the traveler in her mustard-yellow rain jacket and black backpack is now walking down a steep, sunny hill in San Francisco with historic streetcars and the bay in the background. The voiceover heard over this shot (audio only, never visible): ...but sometimes, those steps cross oceans before you even realize you've crossed the street. Setting, Steep Hillside, San Francisco. Framing, medium tracking shot. This shot's role in the story: the turn as she transitions to San Francisco. One single continuous shot with fluid, continuous character motion throughout \u2014 smooth, natural movement, never held poses or stepped animation. Pure visual storytelling: no on-screen text of any kind \u2014 no captions, subtitles, speech bubbles, titles, signs, or lettering \u2014 and no split screens, panels, or storyboard collages. No baked-in editing effects: no transition frames, fades, motion-blur smears, borders, or blurred letterbox bands \u2014 the picture fills the frame edge to edge, composed upright for this frame with a level horizon; cuts and transitions are added later in the editor.",
+ "clip": "62b66ce9",
+ "timelineClipId": "3cbdbdb5"
+ },
+ {
+ "id": "shot:2",
+ "startFrame": 295,
+ "endFrame": 459,
+ "audioText": "Because home isn't where you land, it's the rhythm of the road beneath your feet.",
+ "dialogue": "Because home isn't where you land, it's the rhythm of the road beneath your feet.",
+ "action": "With her next step, the traveler in her mustard-yellow rain jacket and black backpack emerges onto a crisp, autumnal Toronto street, walking towards the CN Tower towering in the cool morning sky.",
+ "intent": "the payoff in Toronto",
+ "characters": [
+ "char:1"
+ ],
+ "location": "loc:3",
+ "framing": "low-angle tracking shot",
+ "status": "placed",
+ "attempts": 1,
+ "startKeyframe": "d79aa708",
+ "lastPrompt": "Watercolor and loose black ink sketch illustration on textured cream paper. Soft, diffuse daylight with transparent watercolor color washes. A limited palette of mustard-yellow, soft indigo, charcoal grey, muted brick red, and faded sage green. Eye-level flat 2D perspective tracking shot with a nostalgic, serene travel poster mood. With her next step, the traveler in her mustard-yellow rain jacket and black backpack emerges onto a crisp, autumnal Toronto street, walking towards the CN Tower towering in the cool morning sky. The voiceover heard over this shot (audio only, never visible): Because home isn't where you land, it's the rhythm of the road beneath your feet. Setting, Autumnal Street, Toronto. Framing, low-angle tracking shot. This shot's role in the story: the payoff in Toronto. One single continuous shot with fluid, continuous character motion throughout \u2014 smooth, natural movement, never held poses or stepped animation. Pure visual storytelling: no on-screen text of any kind \u2014 no captions, subtitles, speech bubbles, titles, signs, or lettering \u2014 and no split screens, panels, or storyboard collages. No baked-in editing effects: no transition frames, fades, motion-blur smears, borders, or blurred letterbox bands \u2014 the picture fills the frame edge to edge, composed upright for this frame with a level horizon; cuts and transitions are added later in the editor.",
+ "clip": "8e504d5d",
+ "timelineClipId": "249a27ff"
+ }
+ ],
+ "phase": "done",
+ "breakdownApproved": true,
+ "createdAt": 1785304298202,
+ "updatedAt": 35,
+ "script": {
+ "logline": "A solo traveler seamlessly steps across the iconic streets of Seoul, San Francisco, and Toronto in a single continuous journey.",
+ "beats": [
+ {
+ "dialogue": "They say a journey of a thousand miles begins with a single step...",
+ "action": "A traveler wearing a mustard-yellow rain jacket and a black backpack walks briskly past the futuristic curves of the Dongdaemun Design Plaza and glowing neon shopfronts in Seoul.",
+ "characters": [
+ "char:1"
+ ],
+ "location": "loc:1",
+ "framing": "wide tracking shot",
+ "intent": "establish the world with an iconic Seoul cityscape",
+ "approxSeconds": 5
+ },
+ {
+ "dialogue": "...but sometimes, those steps cross oceans before you even realize you've crossed the street.",
+ "action": "In a seamless transition as she steps forward, the traveler in her mustard-yellow rain jacket and black backpack is now walking down a steep, sunny hill in San Francisco with historic streetcars and the bay in the background.",
+ "characters": [
+ "char:1"
+ ],
+ "location": "loc:2",
+ "framing": "medium tracking shot",
+ "intent": "the turn as she transitions to San Francisco",
+ "approxSeconds": 5
+ },
+ {
+ "dialogue": "Because home isn't where you land, it's the rhythm of the road beneath your feet.",
+ "action": "With her next step, the traveler in her mustard-yellow rain jacket and black backpack emerges onto a crisp, autumnal Toronto street, walking towards the CN Tower towering in the cool morning sky.",
+ "characters": [
+ "char:1"
+ ],
+ "location": "loc:3",
+ "framing": "low-angle tracking shot",
+ "intent": "the payoff in Toronto",
+ "approxSeconds": 5
+ }
+ ],
+ "style": "Cinematic travel documentary style, smooth steadycam movement, rich color grading transitioning from vibrant night neons to warm golden hour and crisp morning light."
+ },
+ "beatVoices": [
+ {
+ "startFrame": 0,
+ "durationFrames": 142
+ },
+ {
+ "startFrame": 142,
+ "durationFrames": 153
+ },
+ {
+ "startFrame": 295,
+ "durationFrames": 164
+ }
+ ],
+ "negative": "photorealistic rendering, 3D CGI, live-action footage, photographic lighting, digital gradients, hyperrealistic textures, lens flare",
+ "renderStartedAt": 1785304617083,
+ "musicAssetId": "1d1583d4",
+ "musicClipId": "1fc154e8",
+ "endedAt": 1785304696184
+ }
+}
diff --git a/site/src/app/cut/app/(home)/onboarding/page.tsx b/site/src/app/cut/app/(home)/onboarding/page.tsx
index a49a864d..b2cf70ed 100644
--- a/site/src/app/cut/app/(home)/onboarding/page.tsx
+++ b/site/src/app/cut/app/(home)/onboarding/page.tsx
@@ -1,15 +1,45 @@
"use client";
-import { Suspense } from "react";
+import { Suspense, useEffect, useRef } from "react";
+import { useRouter } from "next/navigation";
import { ProjectsHome } from "@/cut/components/ProjectsHome";
+import { cloudBackend } from "@/cut/lib/backend/cloud";
+import { CUT_APP_BASE } from "@/cut/lib/nav";
+import { starterProjectId } from "@/cut/lib/starter";
+import { authClient } from "@/lib/auth-client";
// The welcome sequence's own address. The sequence is a full-window overlay
// mounted in the app shell that reads this address itself and opens from its
-// first paint, so this route only renders the app home underneath — the same
-// thing that's behind it everywhere else, and where the user lands when it
-// closes.
+// first paint, so this route only renders what's underneath it. A signup lands
+// here, and a new account arrives with its seeded starter project — so under
+// the slides this route moves to that project's editor, and closing the last
+// slide hands over to a cut ready to explore. An account without a starter
+// (seed failed, or an older account revisiting this address) stays on the app
+// home, the same thing that's behind the sequence everywhere else.
export default function OnboardingPage() {
+ const router = useRouter();
+ const { data: session } = authClient.useSession();
+ const userId = session?.user.id;
+ const sent = useRef(false);
+
+ useEffect(() => {
+ if (!userId || sent.current) return;
+ let cancelled = false;
+ void (async () => {
+ const id = starterProjectId(userId);
+ // Straight to the cloud surface: the starter is always a cloud project,
+ // whichever backend the connect gate picks for this browser.
+ const res = await cloudBackend.fetch(`/api/cut/projects/${id}`).catch(() => null);
+ if (cancelled || !res?.ok || sent.current) return;
+ sent.current = true;
+ router.replace(`${CUT_APP_BASE}/p/${id}`);
+ })();
+ return () => {
+ cancelled = true;
+ };
+ }, [userId, router]);
+
return (
<Suspense>
<ProjectsHome />
diff --git a/site/src/cut/lib/starter.ts b/site/src/cut/lib/starter.ts
new file mode 100644
index 00000000..1b984ce4
--- /dev/null
+++ b/site/src/cut/lib/starter.ts
@@ -0,0 +1,4 @@
+// The starter project every new account is seeded with (server/cloud/starter.ts).
+// Its id is derived from the owner, so the seed is idempotent and the client
+// can address the project straight from the session without a lookup.
+export const starterProjectId = (userId: string) => `starter-${userId}`;
diff --git a/site/src/cut/server/cloud/gc.ts b/site/src/cut/server/cloud/gc.ts
index 208e19bb..69582626 100644
--- a/site/src/cut/server/cloud/gc.ts
+++ b/site/src/cut/server/cloud/gc.ts
@@ -101,6 +101,9 @@ async function reclaimPlan(userId: string, target: number): Promise<ReclaimPlan>
userId,
projectId: { in: projects.map((p) => p.id) },
uploadState: "complete",
+ // Exempt bytes never counted toward the quota, so deleting them frees
+ // nothing the quota can see — they must not pad a project's claim.
+ quotaExempt: false,
},
_sum: { bytes: true },
});
@@ -185,7 +188,7 @@ async function reclaimOverQuota() {
const limits = await cutLimitsFor(userId);
if (limits.storageBytes === null || limits.storageBytes > FREE_STORAGE_BYTES) continue;
const stored = await prisma.cutMediaObject.aggregate({
- where: { userId, uploadState: "complete" },
+ where: { userId, uploadState: "complete", quotaExempt: false },
_sum: { bytes: true },
});
const target = Number(stored._sum.bytes ?? 0) - limits.storageBytes;
@@ -251,7 +254,15 @@ export async function runGc(): Promise<Response> {
projectId: { not: null },
updatedAt: { lt: new Date(Date.now() - ORPHAN_MAX_AGE_MS) },
},
- select: { id: true, userId: true, projectId: true, fileName: true, r2Key: true, bytes: true },
+ select: {
+ id: true,
+ userId: true,
+ projectId: true,
+ fileName: true,
+ r2Key: true,
+ bytes: true,
+ quotaExempt: true,
+ },
});
const docProjects = await prisma.cutProject.findMany({
where: { id: { in: [...new Set(mediaCandidates.map((c) => c.projectId!))] } },
@@ -271,9 +282,11 @@ export async function runGc(): Promise<Response> {
byUser.set(o.userId, list);
}
for (const [userId, rows] of byUser) {
+ // Quota-exempt rows never added usage, so only the counted ones subtract.
+ const counted = rows.filter((r) => !r.quotaExempt);
await prisma.$transaction(async (tx) => {
await tx.cutMediaObject.deleteMany({ where: { id: { in: rows.map((r) => r.id) } } });
- await addUsage(tx, userId, -rows.reduce((sum, r) => sum + Number(r.bytes), 0));
+ await addUsage(tx, userId, -counted.reduce((sum, r) => sum + Number(r.bytes), 0));
});
await del(rows.map((r) => r.r2Key));
}
diff --git a/site/src/cut/server/cloud/projects.ts b/site/src/cut/server/cloud/projects.ts
index 60a6affc..72f28d51 100644
--- a/site/src/cut/server/cloud/projects.ts
+++ b/site/src/cut/server/cloud/projects.ts
@@ -91,8 +91,10 @@ export async function deleteProjectCascade(userId: string, id: string): Promise<
const objects = await prisma.cutMediaObject.findMany({
where: { userId, projectId: id },
});
+ // Quota-exempt rows (seeded starter media) never added usage, so they
+ // subtract none here; their R2 copies still go with the rest.
const freed = objects
- .filter((o) => o.uploadState === "complete")
+ .filter((o) => o.uploadState === "complete" && !o.quotaExempt)
.reduce((sum, o) => sum + Number(o.bytes), 0);
// Cancel the project's in-flight renders first: a job finishing after
// the delete would re-register storage for a project nothing can see.
@@ -355,7 +357,9 @@ export const projectsCloud = {
if (row) {
await prisma.$transaction(async (tx) => {
await tx.cutMediaObject.delete({ where: { id: row.id } });
- if (row.uploadState === "complete") await addUsage(tx, userId, -Number(row.bytes));
+ if (row.uploadState === "complete" && !row.quotaExempt) {
+ await addUsage(tx, userId, -Number(row.bytes));
+ }
});
await del([row.r2Key]);
}
@@ -394,7 +398,9 @@ export const projectsCloud = {
if (row) {
await prisma.$transaction(async (tx) => {
await tx.cutMediaObject.delete({ where: { id: row.id } });
- if (row.uploadState === "complete") await addUsage(tx, userId, -Number(row.bytes));
+ if (row.uploadState === "complete" && !row.quotaExempt) {
+ await addUsage(tx, userId, -Number(row.bytes));
+ }
});
await del([row.r2Key]);
}
diff --git a/site/src/cut/server/cloud/starter.ts b/site/src/cut/server/cloud/starter.ts
new file mode 100644
index 00000000..c4f32f3f
--- /dev/null
+++ b/site/src/cut/server/cloud/starter.ts
@@ -0,0 +1,102 @@
+// The starter project a new account is seeded with at signup: a finished
+// example cut (doc + media + its AI chat thread) sourced from public/cut-starter.
+// Each account gets its own copy — the doc and thread rows are theirs, and the
+// media bytes are copied under their R2 prefix — so deleting the project (or
+// single files from it) removes only that account's copy through the normal
+// cascade. The seeded media rows are quotaExempt: they never count toward the
+// storage quota, while anything the user later adds to the project counts as
+// usual.
+//
+// The canonical bytes live twice: in public/cut-starter/media (the source of
+// truth, served by the site) and mirrored lazily under cut/starter/ in R2 so
+// each signup is a cheap server-side copy instead of a re-upload.
+import fs from "node:fs/promises";
+import path from "node:path";
+import { DONKEYCUT_CANONICAL } from "@/cut/lib/hosts";
+import { starterProjectId } from "@/cut/lib/starter";
+import type { ProjectDoc } from "@/cut/lib/types";
+import type { Prisma } from "@/generated/prisma/client";
+import { prisma } from "@/lib/prisma";
+import { contentTypeFor } from "../serveFile";
+import { copy, head, projectMediaKey, putObject } from "./r2";
+
+const STARTER_DIR = "cut-starter";
+const starterMediaKey = (fileName: string) => `cut/starter/media/${fileName}`;
+
+/** A file from public/cut-starter — from disk where the public folder is on the
+ * filesystem (dev, node servers), else fetched from the canonical host. */
+async function readStarterFile(rel: string): Promise<Buffer> {
+ try {
+ return await fs.readFile(path.join(process.cwd(), "public", STARTER_DIR, rel));
+ } catch {
+ const url = `${DONKEYCUT_CANONICAL}/${STARTER_DIR}/${rel.split("/").map(encodeURIComponent).join("/")}`;
+ const res = await fetch(url);
+ if (!res.ok) throw new Error(`starter file ${rel} unavailable (${res.status})`);
+ return Buffer.from(await res.arrayBuffer());
+ }
+}
+
+/** Make sure the canonical R2 mirror of one starter media file exists, and
+ * report its size and type. The first signup after a template change pays the
+ * upload; every later one just HEADs. */
+async function ensureStarterObject(fileName: string): Promise<{ bytes: number; mime: string }> {
+ const key = starterMediaKey(fileName);
+ const existing = await head(key);
+ if (existing && existing.bytes > 0) {
+ return { bytes: existing.bytes, mime: existing.mime || contentTypeFor(fileName) };
+ }
+ const buf = await readStarterFile(`media/${fileName}`);
+ const mime = contentTypeFor(fileName);
+ await putObject(key, buf, mime);
+ return { bytes: buf.length, mime };
+}
+
+/** Seed the account's starter project: copy the media into its R2 prefix, then
+ * land the project, media rows, and chat threads in one transaction. Idempotent
+ * via the derived project id, and no usage is added — the rows are quotaExempt. */
+export async function seedStarterProject(userId: string): Promise<void> {
+ const id = starterProjectId(userId);
+ if (await prisma.cutProject.findUnique({ where: { id } })) return;
+
+ const doc = JSON.parse(String(await readStarterFile("project.json"))) as ProjectDoc;
+ const threads = JSON.parse(String(await readStarterFile("chat.json"))) as { id: string }[];
+ const now = Date.now();
+ doc.createdAt = now;
+ doc.updatedAt = now;
+
+ const fileNames = [...new Set(doc.assets.map((a) => a.fileName))];
+ const media = await Promise.all(
+ fileNames.map(async (fileName) => {
+ const info = await ensureStarterObject(fileName);
+ await copy(starterMediaKey(fileName), projectMediaKey(userId, id, fileName));
+ return { fileName, ...info };
+ })
+ );
+
+ await prisma.$transaction(async (tx) => {
+ await tx.cutProject.create({
+ data: { id, userId, name: doc.name, doc: doc as unknown as Prisma.InputJsonValue },
+ });
+ await tx.cutMediaObject.createMany({
+ data: media.map((m) => ({
+ userId,
+ projectId: id,
+ r2Key: projectMediaKey(userId, id, m.fileName),
+ fileName: m.fileName,
+ mime: m.mime,
+ bytes: m.bytes,
+ kind: "media",
+ uploadState: "complete",
+ quotaExempt: true,
+ })),
+ });
+ await tx.cutChatThread.createMany({
+ data: threads.map((t) => ({
+ projectId: id,
+ id: t.id,
+ userId,
+ data: t as unknown as Prisma.InputJsonValue,
+ })),
+ });
+ });
+}
diff --git a/site/src/lib/onboarding/signup-grants.ts b/site/src/lib/onboarding/signup-grants.ts
index 653b3f77..4baafd90 100644
--- a/site/src/lib/onboarding/signup-grants.ts
+++ b/site/src/lib/onboarding/signup-grants.ts
@@ -1,20 +1,22 @@
+import { seedStarterProject } from "@/cut/server/cloud/starter";
import { creditStringToMicros } from "@/lib/credits/amounts";
import { grantCredits } from "@/lib/credits/inference";
import { grantVisionCalls } from "@/lib/credits/vision-grants";
import { signupAppCredits } from "@/lib/onboarding/sequence";
-// Single source of truth for what a new account starts with. Both grants are
-// idempotent and keyed to the user, so provisioning can run more than once (e.g.
-// a retried signup) without ever double-granting. The credit amount itself is
-// in sequence.ts, which the welcome slides can import too.
+// Single source of truth for what a new account starts with. All three steps
+// are idempotent and keyed to the user, so provisioning can run more than once
+// (e.g. a retried signup) without double-granting or double-seeding. The credit
+// amount itself is in sequence.ts, which the welcome slides can import too.
export const signupVisionFreeCalls = 100; // lifetime free Vision API calls
export async function provisionSignupGrants(userId: string): Promise<void> {
- // Settle the two grants independently: one failing must not block the other,
+ // Settle the steps independently: one failing must not block the others,
// and signup itself must never fail because a bonus grant hiccupped.
const results = await Promise.allSettled([
grantSignupAppCredits(userId),
grantSignupVisionCalls(userId),
+ seedStarterProject(userId),
]);
for (const result of results) {