launch-film 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Emin Budak
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,150 @@
1
- # Temporary Holding Version
1
+ # launch-film
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ A 20 to 40 second launch film made from a product's own website or App Store page: its real logo, colors, fonts and screens, set in motion with music and sound effects.
4
+
5
+ ```bash
6
+ npx launch-film linear.app
7
+ ```
8
+
9
+ ![Stills from the film launch-film made for linear.app](.github/assets/linear-sheet.jpg)
10
+
11
+ [Watch the film](.github/assets/linear-film.mp4) (28 seconds). It was made with the command above and nothing else: no brief, no edits.
12
+
13
+ Tools that make videos with code usually start from a brief: you describe the product, its colors and the style you want. launch-film starts from the site. [easybrandkit](https://github.com/EminBudak/easybrandkit) reads the logo, colors, fonts and first screen in a headless browser, the page's own headline and section titles become the film's words, and a look is picked to suit the brand. You get an MP4 at 1920x1080, rendered on your machine with Chrome and ffmpeg. There is no account, no API key and nothing is uploaded.
14
+
15
+ ## Use it with your agent
16
+
17
+ launch-film ships as an [Agent Skill](https://agentskills.io). Your agent gets the brand, picks a look, writes the scenes from the page's words, renders the film, looks at its frames and hands you the MP4.
18
+
19
+ ```bash
20
+ npx skills add EminBudak/launch-film
21
+ ```
22
+
23
+ That covers Claude Code, Codex, Cursor and the other agents the [`skills`](https://github.com/vercel-labs/skills) CLI supports. To install it by hand instead:
24
+
25
+ **Claude Code**, as a plugin:
26
+
27
+ ```
28
+ /plugin marketplace add EminBudak/launch-film
29
+ /plugin install launch-film@launch-film
30
+ ```
31
+
32
+ or as a skill folder:
33
+
34
+ ```bash
35
+ git clone https://github.com/EminBudak/launch-film
36
+ cp -r launch-film/skills/launch-film ~/.claude/skills/
37
+ ```
38
+
39
+ **Codex**:
40
+
41
+ ```bash
42
+ cp -r launch-film/skills/launch-film ~/.agents/skills/
43
+ ```
44
+
45
+ **Cursor**:
46
+
47
+ ```bash
48
+ cp -r launch-film/skills/launch-film ~/.cursor/skills/
49
+ ```
50
+
51
+ Then ask as usual:
52
+
53
+ > Make a launch video for linear.app
54
+
55
+ ## Use it from the command line
56
+
57
+ ```
58
+ npx launch-film <url> [options] read the brand, plan the film, render it
59
+ npx launch-film plan <url> [options] read the brand and write film.json only
60
+ npx launch-film render <film.json> render a film.json after editing it
61
+ npx launch-film frames <film.mp4> save stills of each clip and a contact sheet
62
+ npx launch-film looks | types | icons <word> | doctor
63
+
64
+ --out <dir> folder for the brand, film.json and the film (default ./launch-film-<site>)
65
+ --look <name> launch, aurora, gridline, pop or journal (default: picked from the brand)
66
+ --seconds <n> aim for 20 to 40 seconds (default 30)
67
+ --aspect 9:16 a vertical film (default 16:9)
68
+ --brand <dir> use an easybrandkit folder you already have
69
+ --easybrandkit <cmd> the easybrandkit to run (default: LAUNCH_FILM_EASYBRANDKIT, one on PATH, else easybrandkit with npx)
70
+ --no-music, --no-sfx, --jobs <n>, --keep
71
+ ```
72
+
73
+ A run leaves this behind:
74
+
75
+ ```
76
+ launch-film-linear.app/
77
+ brand/ easybrandkit's kit: logos, colors, fonts, first screen
78
+ words.json the words read from the page
79
+ film.json the plan, which you can edit and render again
80
+ film.mp4 the film
81
+ frames/sheet.jpg two stills from every clip, for checking
82
+ ```
83
+
84
+ ## How it works
85
+
86
+ 1. **Brand.** easybrandkit opens the site in headless Chrome and saves its logos cut on their own background, its button, heading and surface colors, its font families and its first screen at 2x. Given an App Store or Google Play listing, it saves the app's icon, screenshots and rating, and reads the site the listing names.
87
+ 2. **Words.** The page's title, description, headline and section titles are read, with the line under each section title. Every word in the film comes from there.
88
+ 3. **Plan.** A first film is planned without a brief: the name and its promise, the real screen in a browser window, the page's own sentence as a headline, three sections as feature cards, a number the page states (or an app's store rating), the app's store screenshots, and the logo close with the site's address. It is written to `film.json`.
89
+ 4. **Render.** Each clip is an HTML page with one paused timeline. A virtual clock steps it frame by frame in headless Chrome, so every frame is drawn for its time however long drawing takes, and the frames go to ffmpeg. Two clips render at a time.
90
+ 5. **Sound.** The music and every sound effect are synthesised in code for this film: the groove starts on the second clip, each clip lasts whole bars so cuts land on the beat, and the logo lands on a hit. There are no samples.
91
+ 6. **Check.** Stills from each clip and a contact sheet are saved, so you (or your agent) can look before sharing.
92
+
93
+ ## film.json
94
+
95
+ ```json
96
+ {
97
+ "brand": "brand/brand.json",
98
+ "look": "launch",
99
+ "aspect": "16:9",
100
+ "clips": [
101
+ { "kind": "scene", "bars": 2, "scene": { "type": "opener", "title": "Linear", "text": "The product development system for teams and agents" } },
102
+ { "kind": "screen", "bars": 2, "image": "brand/screen-01.png", "mode": "pan" },
103
+ { "kind": "scene", "bars": 2, "scene": { "type": "headline", "title": "Purpose-built for planning and building products with AI *agents*" } },
104
+ { "kind": "scene", "bars": 2, "scene": { "type": "number", "value": "40,000+", "text": "product teams" } },
105
+ { "kind": "logo", "bars": 2, "logo": "brand/logo-01.png", "site": "linear.app" }
106
+ ]
107
+ }
108
+ ```
109
+
110
+ | kind | what it shows |
111
+ | --- | --- |
112
+ | `scene` | type in motion; 37 types such as `opener`, `headline`, `features`, `number`, `rating`, `steps`, `quote`, `compare`, `chat` (list them with `launch-film types`) |
113
+ | `screen` | a screenshot in a browser window coming in from depth; `mode: "zoom"` with a `box` moves the camera onto one part of it |
114
+ | `shots` | two or three store screenshots side by side, coming in from depth |
115
+ | `phone` | a phone's screen capture in a drawn phone |
116
+ | `scroll` | a tall page scrolling in a window |
117
+ | `logo` | the logo close, from an easybrandkit logo file or an app icon |
118
+
119
+ Words between asterisks are set in the brand's accent color. A bar is one bar of the look's music, about two seconds; give `seconds` instead if you prefer.
120
+
121
+ ## Looks
122
+
123
+ | look | | suits |
124
+ | --- | --- | --- |
125
+ | `launch` | a near-black stage with depth and soft light, type rising out of masks, one bright accent | developer tools, SaaS, dark sites |
126
+ | `aurora` | frosted glass cards over a slow aurora of the brand's colors | AI products, consumer apps, vivid brands |
127
+ | `gridline` | a light paper page with hairline columns and giant numerals, one signal color | B2B, finance, light sites |
128
+ | `pop` | full color fields that change with the cuts, sticker cards with hard shadows | consumer apps, food, games, social |
129
+ | `journal` | warm paper, newspaper rules, large serif headlines | editorial brands, publications |
130
+
131
+ ## Requirements
132
+
133
+ - Node 22 or newer
134
+ - Google Chrome or Chromium (set `LAUNCH_FILM_CHROME` to use another build)
135
+ - ffmpeg (set `LAUNCH_FILM_FFMPEG` and `LAUNCH_FILM_FFPROBE` to use another build)
136
+ - [easybrandkit](https://github.com/EminBudak/easybrandkit): install it with `npm install -g easybrandkit`, or launch-film runs it with `npx -y easybrandkit` (set `LAUNCH_FILM_EASYBRANDKIT` to use a copy of your own)
137
+
138
+ Run `npx launch-film doctor` to check. It has been tested on macOS with Chrome 156 and ffmpeg 7.1.
139
+
140
+ ## Limits
141
+
142
+ - The film says what the site says. A page with few section titles gives a thin first plan; edit `film.json` or let your agent write the scenes.
143
+ - A brand typeface that Google Fonts does not have is replaced by the look's own, and the render says which.
144
+ - easybrandkit needs a site that opens in a headless browser. A bot check or a login wall gets no kit, and a social profile is not a brand's site.
145
+ - A 30 second film takes one to three minutes to render on a laptop.
146
+ - The music is simple by design. To use your own track: `ffmpeg -i film.mp4 -i track.mp3 -map 0:v -map 1:a -c:v copy -shortest out.mp4`.
147
+
148
+ ## License
149
+
150
+ MIT. The icons are Phosphor Icons (MIT); see [THIRD_PARTY.md](THIRD_PARTY.md) for them and for the fonts fetched at render time.
package/THIRD_PARTY.md ADDED
@@ -0,0 +1,57 @@
1
+ # Third-party notes
2
+
3
+ launch-film has no npm dependencies. This file lists everything in it, or used by it, that someone else made.
4
+
5
+ ## Shipped in this package
6
+
7
+ ### Phosphor Icons
8
+
9
+ `assets/phosphor.json.gz` holds the fill and bold drawings of the 1,512 icons in `@phosphor-icons/core` 2.1.1, unchanged, built with `scripts/build-icons.js`. Scenes draw them for feature cards and the logo close.
10
+
11
+ MIT License
12
+
13
+ Copyright (c) 2023 Phosphor Icons
14
+
15
+ Permission is hereby granted, free of charge, to any person obtaining a copy
16
+ of this software and associated documentation files (the "Software"), to deal
17
+ in the Software without restriction, including without limitation the rights
18
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19
+ copies of the Software, and to permit persons to whom the Software is
20
+ furnished to do so, subject to the following conditions:
21
+
22
+ The above copyright notice and this permission notice shall be included in all
23
+ copies or substantial portions of the Software.
24
+
25
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
+ SOFTWARE.
32
+
33
+ ## Fetched while it runs, not shipped
34
+
35
+ ### Typefaces from Google Fonts
36
+
37
+ No font files are in this package. When a film renders, its typefaces are downloaded from Google Fonts by family name and kept in `~/.cache/launch-film/fonts`:
38
+
39
+ - the brand's own families, when Google Fonts has them, each under its own license as listed on Google Fonts (the SIL Open Font License 1.1 or the Apache License 2.0);
40
+ - the looks' families, all under the SIL Open Font License 1.1: Inter, Plus Jakarta Sans, JetBrains Mono, Archivo, Bricolage Grotesque, Space Mono and Fraunces.
41
+
42
+ They are embedded in the pages that are rendered, and reach the film only as pixels.
43
+
44
+ ### easybrandkit
45
+
46
+ `launch-film <url>` and `launch-film plan <url>` run [easybrandkit](https://github.com/EminBudak/easybrandkit) (MIT, by the same author) to read the site: an easybrandkit installed on PATH (`npm install -g easybrandkit`), or else `npx -y easybrandkit`, and `npx -y github:EminBudak/easybrandkit` when npm cannot give it. `LAUNCH_FILM_EASYBRANDKIT` names another command.
47
+
48
+ ## Used from your machine, not shipped
49
+
50
+ - Google Chrome or Chromium renders the frames.
51
+ - ffmpeg encodes the film, joins the clips and reads and writes pictures.
52
+
53
+ ## Written for this package
54
+
55
+ - The timeline that moves every page (`src/runtime/timeline.js`) is this package's own code. Its method names follow the shape of GSAP's (`gsap.timeline()`, `tl.from()`, `"expo.out"`) because motion designers know them, but no GSAP code is included or loaded.
56
+ - Every sound (the music bed and all sound effects) is synthesised by `src/audio.js`. There are no recordings or samples.
57
+ - The test brand in `test/fixtures/acme`, "Acme Notes", is a made-up product drawn by `test/fixtures/make-fixture.js`.
Binary file
@@ -0,0 +1,223 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ // launch-film: a launch film from a website or an App Store page.
4
+
5
+ const fs = require("fs");
6
+ const path = require("path");
7
+
8
+ const HELP = `launch-film: a 20-40 second launch film made from a product's own site.
9
+
10
+ Usage:
11
+ launch-film <url> [options] Read the brand, plan the film, render it.
12
+ launch-film plan <url> [options] Read the brand and write film.json only.
13
+ launch-film render <film.json> Render a film.json (after editing it).
14
+ launch-film frames <film.mp4> Save stills of each clip and a contact sheet.
15
+ launch-film looks List the looks.
16
+ launch-film types List the scene types and their fields.
17
+ launch-film icons <word> Find icon names for a scene.
18
+ launch-film doctor Check that Chrome and ffmpeg are found.
19
+
20
+ Options:
21
+ --out <dir> Folder for the brand, film.json and the film
22
+ (default: ./launch-film-<site>).
23
+ --brand <path> Use a kit you already have: an easybrandkit folder
24
+ or its brand.json.
25
+ --words <file> Use a words.json you already have instead of reading
26
+ the page again.
27
+ --easybrandkit <cmd> The easybrandkit to run: a command, or the path of
28
+ its scripts/easybrandkit.js (default:
29
+ LAUNCH_FILM_EASYBRANDKIT, an easybrandkit on PATH,
30
+ else easybrandkit with npx).
31
+ Install it with npm install -g easybrandkit.
32
+ --look <name> launch, aurora, gridline, pop or journal (default: picked
33
+ from the brand).
34
+ --seconds <n> Aim for this length, 20-40 (default 30).
35
+ --aspect <ratio> 16:9 (default) or 9:16.
36
+ --jobs <n> Clips rendered at once (default 2).
37
+ --no-music Leave out the music bed.
38
+ --no-sfx Leave out the sound effects.
39
+ --keep Keep the work files (each clip's MP4).
40
+
41
+ Everything renders on this machine with Chrome and ffmpeg. No account or key.
42
+ `;
43
+
44
+ function parseArgs(argv) {
45
+ const out = { _: [], flags: {} };
46
+ for (let i = 0; i < argv.length; i++) {
47
+ const a = argv[i];
48
+ if (a === "--help" || a === "-h") out.flags.help = true;
49
+ else if (a === "--version" || a === "-v") out.flags.version = true;
50
+ else if (/^--no-/.test(a)) out.flags[a.slice(5)] = false;
51
+ else if (a === "--keep") out.flags.keep = true;
52
+ else if (a.startsWith("--")) {
53
+ const [key, inline] = a.slice(2).split("=");
54
+ out.flags[key] = inline !== undefined ? inline : argv[++i];
55
+ } else out._.push(a);
56
+ }
57
+ return out;
58
+ }
59
+
60
+ const say = (text) => process.stderr.write(text);
61
+ function fail(message) {
62
+ say(`launch-film: ${message}\n`);
63
+ process.exit(1);
64
+ }
65
+
66
+ function normaliseUrl(raw) {
67
+ let s = String(raw || "").trim();
68
+ if (!s) return null;
69
+ if (!/^https?:\/\//i.test(s)) s = `https://${s}`;
70
+ try {
71
+ const u = new URL(s);
72
+ return /^[a-z0-9.-]+$/i.test(u.hostname) && u.hostname.includes(".") ? u.href : null;
73
+ } catch {
74
+ return null;
75
+ }
76
+ }
77
+
78
+ async function makePlan(url, flags) {
79
+ const { runEasybrandkit, readBrand } = require("../src/brand");
80
+ const { readWords } = require("../src/words");
81
+ const { planFilm } = require("../src/plan");
82
+ const host = new URL(url).hostname.replace(/^www\./, "");
83
+ const out = path.resolve(flags.out || `launch-film-${host.replace(/[^a-z0-9.-]/gi, "-")}`);
84
+ fs.mkdirSync(out, { recursive: true });
85
+ const { isStoreUrl, appStoreId, storeBrand } = require("../src/store");
86
+ let brandFile;
87
+ let storeWords = null;
88
+ if (flags.brand) {
89
+ brandFile = path.resolve(flags.brand);
90
+ if (fs.existsSync(brandFile) && fs.statSync(brandFile).isDirectory()) brandFile = path.join(brandFile, "brand.json");
91
+ if (!fs.existsSync(brandFile)) fail(`no brand.json at ${brandFile}`);
92
+ // The film refers to the brand by a path from its own folder.
93
+ const local = path.join(out, "brand");
94
+ if (path.dirname(brandFile) !== local) {
95
+ fs.rmSync(local, { recursive: true, force: true });
96
+ fs.cpSync(path.dirname(brandFile), local, { recursive: true });
97
+ brandFile = path.join(local, path.basename(brandFile));
98
+ }
99
+ } else if (isStoreUrl(url)) {
100
+ // easybrandkit reads a store listing and the maker's site it names. When
101
+ // it cannot, an App Store listing is read here from Apple's lookup API.
102
+ const dir = path.join(out, "brand");
103
+ say(`Reading the store listing with easybrandkit...\n`);
104
+ try {
105
+ brandFile = await runEasybrandkit(url, dir, { command: flags.easybrandkit, log: (t) => flags.verbose && say(t) });
106
+ const kit = JSON.parse(fs.readFileSync(brandFile, "utf8"));
107
+ const listing = (kit.stores || []).find((s) => s && /appstore|googleplay/i.test(String(s.type)) && s.ok !== false);
108
+ if (!listing) throw new Error("easybrandkit read no store listing from it");
109
+ kit.app = { name: listing.name || kit.name || "", by: listing.by || "", site: listing.site || "" };
110
+ fs.writeFileSync(brandFile, JSON.stringify(kit, null, 2) + "\n");
111
+ } catch (err) {
112
+ if (!appStoreId(url)) fail(`${err.message}`);
113
+ say(`easybrandkit could not read the listing (${err.message.split(". ")[0]}); reading it from the App Store instead.\n`);
114
+ fs.rmSync(dir, { recursive: true, force: true });
115
+ const made = await storeBrand(url, dir, { runEasybrandkit: (u, d, o) => runEasybrandkit(u, d, { ...o, command: flags.easybrandkit }), log: say });
116
+ brandFile = made.brandFile;
117
+ }
118
+ } else {
119
+ say(`Reading the brand of ${url} with easybrandkit...\n`);
120
+ brandFile = await runEasybrandkit(url, path.join(out, "brand"), { command: flags.easybrandkit, log: (t) => flags.verbose && say(t) });
121
+ }
122
+ const brand = readBrand(brandFile);
123
+ // A kit made from an App Store page carries the listing's description.
124
+ if (!storeWords && brand.app && brand.stores[0]) storeWords = require("../src/store").wordsFromListing({ name: brand.name, description: brand.stores[0].description });
125
+ let words;
126
+ if (flags.words) words = JSON.parse(fs.readFileSync(path.resolve(flags.words), "utf8"));
127
+ else if (storeWords) words = storeWords;
128
+ else {
129
+ say(`Reading the words on the page...\n`);
130
+ words = await readWords(brand.url || url, { log: say });
131
+ }
132
+ fs.writeFileSync(path.join(out, "words.json"), JSON.stringify(words, null, 2) + "\n");
133
+ const seconds = Math.min(40, Math.max(20, Number(flags.seconds) || 30));
134
+ const film = planFilm(brand, words, { look: flags.look, seconds, aspect: flags.aspect === "9:16" ? "9:16" : "16:9", filmDir: out });
135
+ if (flags.music === false) film.music = false;
136
+ if (flags.sfx === false) film.sfx = false;
137
+ const filmFile = path.join(out, "film.json");
138
+ fs.writeFileSync(filmFile, JSON.stringify(film, null, 2) + "\n");
139
+ for (const note of brand.notes) say(`note: ${note}\n`);
140
+ say(`Planned ${film.clips.length} clips in the ${film.look} look: ${path.relative(process.cwd(), filmFile) || filmFile}\n`);
141
+ return { filmFile, out };
142
+ }
143
+
144
+ async function render(filmFile, flags) {
145
+ const { renderFilm } = require("../src/film");
146
+ const started = Date.now();
147
+ const result = await renderFilm(filmFile, {
148
+ output: flags.output || null,
149
+ jobs: Math.max(1, Math.min(4, Number(flags.jobs) || 2)),
150
+ keep: Boolean(flags.keep),
151
+ log: say,
152
+ });
153
+ for (const note of result.notes) say(`note: ${note}\n`);
154
+ say(`Rendered ${result.seconds.toFixed(1)} s in ${((Date.now() - started) / 1000).toFixed(0)} s: ${result.output}\n`);
155
+ return result;
156
+ }
157
+
158
+ async function frames(file, flags) {
159
+ const { saveFrames } = require("../src/frames");
160
+ const r = await saveFrames(file, { out: flags.out });
161
+ say(`Saved ${r.stills.length} stills and a contact sheet: ${r.sheet}\n`);
162
+ return r;
163
+ }
164
+
165
+ async function main() {
166
+ const { _: args, flags } = parseArgs(process.argv.slice(2));
167
+ if (flags.version) {
168
+ process.stdout.write(`${require("../package.json").version}\n`);
169
+ return;
170
+ }
171
+ if (flags.help || !args.length) {
172
+ process.stdout.write(HELP);
173
+ return;
174
+ }
175
+ const [command, ...rest] = args;
176
+ if (command === "looks") {
177
+ const { LOOKS } = require("../src/motion");
178
+ for (const [name, look] of Object.entries(LOOKS)) process.stdout.write(`${name.padEnd(9)} ${look.about}. Suits ${look.suits}.\n`);
179
+ return;
180
+ }
181
+ if (command === "types") {
182
+ const { catalog } = require("../src/scene");
183
+ for (const t of catalog()) {
184
+ const fields = [...t.fields, ...(t.items ? [`items (${t.items.count.join("-")}): ${Array.isArray(t.items.fields) ? t.items.fields.join(", ") : t.items.fields}`] : [])];
185
+ process.stdout.write(`${t.type.padEnd(11)} ${t.about}${fields.length ? `\n${" ".repeat(12)}fields: ${fields.join("; ")}` : ""}\n`);
186
+ }
187
+ return;
188
+ }
189
+ if (command === "icons") {
190
+ const { iconSearch } = require("../src/scene");
191
+ process.stdout.write(`${iconSearch(rest[0] || "").join("\n")}\n`);
192
+ return;
193
+ }
194
+ if (command === "doctor") {
195
+ const { findChrome } = require("../src/chrome");
196
+ const { available } = require("../src/ffmpeg");
197
+ const chrome = findChrome();
198
+ const ffmpeg = available();
199
+ const node = Number(process.versions.node.split(".")[0]);
200
+ process.stdout.write(`node ${process.versions.node}${node >= 22 ? "" : " (22 or newer is needed)"}\nchrome ${chrome || "not found: install Chrome or set LAUNCH_FILM_CHROME"}\nffmpeg ${ffmpeg || "not found: install ffmpeg or set LAUNCH_FILM_FFMPEG"}\n`);
201
+ if (!chrome || !ffmpeg || node < 22) process.exitCode = 1;
202
+ return;
203
+ }
204
+ if (command === "render") {
205
+ if (!rest[0]) fail("give the film.json to render");
206
+ await render(path.resolve(rest[0]), flags);
207
+ return;
208
+ }
209
+ if (command === "frames") {
210
+ if (!rest[0]) fail("give the film's MP4");
211
+ await frames(path.resolve(rest[0]), flags);
212
+ return;
213
+ }
214
+ const isPlan = command === "plan";
215
+ const url = normaliseUrl(isPlan ? rest[0] : command);
216
+ if (!url) fail(isPlan ? "give the site's address, e.g. launch-film plan example.com" : `"${command}" is not a command or an address. Run launch-film --help.`);
217
+ const { filmFile, out } = await makePlan(url, flags);
218
+ if (isPlan) return;
219
+ const result = await render(filmFile, flags);
220
+ await frames(result.output, { out: path.join(out, "frames") });
221
+ }
222
+
223
+ main().catch((err) => fail(err && err.message ? err.message : String(err)));
package/package.json CHANGED
@@ -1,6 +1,42 @@
1
1
  {
2
2
  "name": "launch-film",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1",
4
+ "description": "A launch film from a website or an App Store page: its real logo, colors, fonts and screens, rendered locally with Chrome and ffmpeg.",
5
+ "license": "MIT",
6
+ "author": "Emin Budak",
7
+ "bin": {
8
+ "launch-film": "bin/launch-film.js"
9
+ },
10
+ "files": [
11
+ "bin/",
12
+ "src/",
13
+ "assets/",
14
+ "skills/",
15
+ "THIRD_PARTY.md"
16
+ ],
17
+ "engines": {
18
+ "node": ">=22"
19
+ },
20
+ "scripts": {
21
+ "test": "node --test \"test/*.test.js\""
22
+ },
23
+ "keywords": [
24
+ "video",
25
+ "launch",
26
+ "motion-design",
27
+ "agent-skill",
28
+ "claude-code",
29
+ "codex",
30
+ "cursor",
31
+ "ffmpeg",
32
+ "chrome"
33
+ ],
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "git+https://github.com/EminBudak/launch-film.git"
37
+ },
38
+ "homepage": "https://github.com/EminBudak/launch-film#readme",
39
+ "bugs": {
40
+ "url": "https://github.com/EminBudak/launch-film/issues"
41
+ }
42
+ }
@@ -0,0 +1,112 @@
1
+ ---
2
+ name: launch-film
3
+ description: Make a 20 to 40 second launch film (an MP4 at 1920x1080 with music and sound effects) for a product from its website or App Store page, using its real logo, colors, fonts and screens. Use it when the user asks for a launch video, product video, promo, teaser or announcement clip for a site or an app and gives its address. Everything renders locally with Chrome and ffmpeg; no account or API key.
4
+ ---
5
+
6
+ # launch-film
7
+
8
+ A launch film made from the product itself: its logo cut from its own page, its colors and typefaces, its real screens in a browser window or a phone, and the words its site already uses. You plan the film as a short JSON file, render it, look at the frames, and hand over the MP4.
9
+
10
+ The tool is the `launch-film` npm package. It needs Node 22 or newer, Chrome or Chromium, and ffmpeg. Check them first:
11
+
12
+ ```bash
13
+ npx -y launch-film doctor
14
+ ```
15
+
16
+ If ffmpeg is missing, tell the user how to install it (`brew install ffmpeg` on a Mac, `sudo apt install ffmpeg` on Debian or Ubuntu) and stop.
17
+
18
+ ## 1. Get the brand and a first plan
19
+
20
+ ```bash
21
+ npx -y launch-film plan <url> --out film/<name>
22
+ ```
23
+
24
+ Give the product's website, or its App Store or Google Play listing (then the listing's icon, screenshots and rating are used, with the colors, fonts and logo of the site it names). Not a social profile: easybrandkit refuses those.
25
+
26
+ This takes 30 to 90 seconds. It runs easybrandkit (logos, colors, fonts, first screen, store screenshots) into `film/<name>/brand/`, reads the words on the page into `words.json`, and writes `film.json`: a first plan that needs no brief.
27
+
28
+ Then read, in this order:
29
+
30
+ - `film/<name>/brand/BRAND.md` and look at `brand/card.png`: is the logo right, are the colors the brand's?
31
+ - `film/<name>/words.json`: the page's title, description, headings and the line under each heading.
32
+ - `film/<name>/film.json`: the plan.
33
+
34
+ If the brand looks wrong (a cookie wall, a login page, no logo), tell the user what you got and ask for the logo file or the right page. Do not go on with a wrong brand. If the site answered easybrandkit with a bot check, there is no kit: ask the user for the logo file and the main colors instead of guessing.
35
+
36
+ If launch-film says easybrandkit could not be fetched, npx could not download it (no network, or a registry without it): tell the user they can install it with `npm install -g easybrandkit`, and use `--easybrandkit <path to easybrandkit's scripts/easybrandkit.js>` when they have a copy.
37
+
38
+ ## 2. Pick a look
39
+
40
+ ```bash
41
+ npx -y launch-film looks
42
+ ```
43
+
44
+ The plan already picked one from the brand: `launch` (dark stage, depth, one bright accent) for dark sites and developer tools, `aurora` (frosted glass over soft color) for vivid consumer and AI products, `gridline` (Swiss grid on paper) for light B2B sites, `pop` (full color fields, stickers) for consumer apps, `journal` (serif headlines on warm paper) for editorial brands. Change `"look"` in film.json if the user asked for a style or another one fits better.
45
+
46
+ ## 3. Write the scenes
47
+
48
+ film.json holds `look`, `aspect` (`16:9` or `9:16`) and `clips`, played in order. Each clip has a `kind` and a length in `bars` of the look's music (one bar is about 2 seconds; cuts land on the beat). You may give `seconds` instead.
49
+
50
+ | kind | what it shows | fields |
51
+ | --- | --- | --- |
52
+ | `scene` | type in motion: a title card, a headline, feature cards, a number | `scene`: a scene object |
53
+ | `screen` | a screenshot in a browser window coming in from depth | `image`, `mode` (`pan`, or `zoom` with `box` [x, y, w, h] in the picture's pixels), `side` |
54
+ | `shots` | two or three store screenshots side by side, as they are | `images` (a list) |
55
+ | `phone` | a phone's own screen capture in a drawn phone (not a store screenshot: many already show a phone) | `image` |
56
+ | `scroll` | a tall page scrolling in a window | `image` |
57
+ | `logo` | the logo close with the site's address | `logo` (an easybrandkit logo file) or `icon` (an app icon), `site` |
58
+
59
+ A scene object has a `type` and its words. List every type and its fields with `npx -y launch-film types`; icon names come from `npx -y launch-film icons <word>`. The ones a launch film uses most:
60
+
61
+ ```json
62
+ { "type": "opener", "title": "Acme Notes", "text": "Notes that think with you" }
63
+ { "type": "headline", "title": "Write once and find it *anywhere*" }
64
+ { "type": "features", "items": [
65
+ { "icon": "lightning", "title": "Instant search", "text": "Find any note in a blink" },
66
+ { "icon": "shield-check", "title": "Private by design", "text": "Encrypted end to end" },
67
+ { "icon": "users-three", "title": "Shared spaces", "text": "Plan launches with your team" } ] }
68
+ { "type": "number", "value": "12,000+", "text": "teams use it every day" }
69
+ ```
70
+
71
+ Words between asterisks are set in the accent color. Rules for the words:
72
+
73
+ - Every word on screen comes from the page (`words.json`, BRAND.md) or from the user. Never invent a number, a customer, a quote or a claim.
74
+ - You may shorten the page's sentences. Keep each scene readable in its time: about 15 letters a second plus a second and a half.
75
+ - Mark one or two words a scene, not more.
76
+ - No em dashes or en dashes on screen; use a comma or a period.
77
+ - Keep the film between 20 and 40 seconds: an opener first, the logo close last, never two screens in a row.
78
+
79
+ ## 4. Render
80
+
81
+ ```bash
82
+ npx -y launch-film render film/<name>/film.json
83
+ ```
84
+
85
+ Clips render two at a time; a 30 second film takes one to three minutes. The film is `film/<name>/film.mp4`. If a clip fails, the message names it: fix film.json and render again.
86
+
87
+ ## 5. Look at the frames before you hand it over
88
+
89
+ ```bash
90
+ npx -y launch-film frames film/<name>/film.mp4
91
+ ```
92
+
93
+ Open `film/<name>/frames/sheet.jpg` and the stills next to it, two for each clip. Check:
94
+
95
+ - every word is whole, inside the frame and spelled as written;
96
+ - no text lies on other text or runs out of its card;
97
+ - the logo is whole, sharp and the brand's own, on a ground it reads on;
98
+ - the screens are the product's and not a cookie banner or a login page;
99
+ - nothing is blank where something should show.
100
+
101
+ Fix what you find in film.json and render again. Then give the user the MP4's path, its length and look, and one line on each clip.
102
+
103
+ ## Without a plan step
104
+
105
+ `npx -y launch-film <url>` does all of the above in one go with the first plan, and saves the frames. Use it when the user wants a film quickly and has no wishes about the words.
106
+
107
+ ## Options
108
+
109
+ - `--look <name>`, `--seconds <20-40>`, `--aspect 9:16` on `plan` or the one-go command.
110
+ - `--brand <folder>` uses an easybrandkit folder you already have; `--words <file>` a words.json you already have.
111
+ - `--no-music`, `--no-sfx` on the one-go command; or set `"music": false` and `"sfx": false` in film.json.
112
+ - `--jobs 1` renders one clip at a time on a slow machine.