launch-film 0.2.0 → 0.2.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/README.md +1 -1
- package/THIRD_PARTY.md +1 -1
- package/package.json +1 -1
- package/skills/launch-film/SKILL.md +9 -9
- package/src/brand.js +4 -3
package/README.md
CHANGED
|
@@ -205,7 +205,7 @@ Words between asterisks are set in the brand's accent color. A bar is one bar of
|
|
|
205
205
|
- Node 22 or newer
|
|
206
206
|
- Google Chrome or Chromium (set `LAUNCH_FILM_CHROME` to use another build)
|
|
207
207
|
- ffmpeg (set `LAUNCH_FILM_FFMPEG` and `LAUNCH_FILM_FFPROBE` to use another build)
|
|
208
|
-
- [easybrandkit](https://github.com/EminBudak/easybrandkit): install it with `npm install -g easybrandkit`, or launch-film runs it with `npx -y easybrandkit@
|
|
208
|
+
- [easybrandkit](https://github.com/EminBudak/easybrandkit): install it with `npm install -g easybrandkit`, or launch-film runs it with `npx -y easybrandkit@0.4.0` (set `LAUNCH_FILM_EASYBRANDKIT` to use a copy of your own)
|
|
209
209
|
|
|
210
210
|
Run `npx launch-film@latest doctor` to check. It has been tested on macOS with Chrome 156 and ffmpeg 7.1, and on Linux with Chrome 155 and ffmpeg 8.0.
|
|
211
211
|
|
package/THIRD_PARTY.md
CHANGED
|
@@ -43,7 +43,7 @@ They are embedded in the pages that are rendered, and reach the film only as pix
|
|
|
43
43
|
|
|
44
44
|
### easybrandkit
|
|
45
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.
|
|
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@0.4.0`, and `npx -y github:EminBudak/easybrandkit#v0.4.0` when npm cannot give it. `LAUNCH_FILM_EASYBRANDKIT` names another command.
|
|
47
47
|
|
|
48
48
|
## Used from your machine, not shipped
|
|
49
49
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "launch-film",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
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
5
|
"license": "MIT",
|
|
6
6
|
"author": "Emin Budak",
|
|
@@ -10,7 +10,7 @@ A launch film made from the product itself: its logo cut from its own page, its
|
|
|
10
10
|
The tool is the `launch-film` npm package. It needs Node 22 or newer, Chrome or Chromium, and ffmpeg. Check them first:
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
npx -y launch-film@
|
|
13
|
+
npx -y launch-film@0.2.1 doctor
|
|
14
14
|
```
|
|
15
15
|
|
|
16
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.
|
|
@@ -18,7 +18,7 @@ If ffmpeg is missing, tell the user how to install it (`brew install ffmpeg` on
|
|
|
18
18
|
## 1. Get the brand and a first plan
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
npx -y launch-film@
|
|
21
|
+
npx -y launch-film@0.2.1 plan <url> --out film/<name>
|
|
22
22
|
```
|
|
23
23
|
|
|
24
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.
|
|
@@ -38,7 +38,7 @@ If launch-film says easybrandkit could not be fetched, npx could not download it
|
|
|
38
38
|
## 2. Pick a look
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
npx -y launch-film@
|
|
41
|
+
npx -y launch-film@0.2.1 looks
|
|
42
42
|
```
|
|
43
43
|
|
|
44
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.
|
|
@@ -56,7 +56,7 @@ film.json holds `look`, `aspect` (`16:9` or `9:16`) and `clips`, played in order
|
|
|
56
56
|
| `scroll` | a tall page scrolling in a window | `image` |
|
|
57
57
|
| `logo` | the logo close with the site's address | `logo` (an easybrandkit logo file) or `icon` (an app icon), `site` |
|
|
58
58
|
|
|
59
|
-
A scene object has a `type` and its words. List every type and its fields with `npx -y launch-film@
|
|
59
|
+
A scene object has a `type` and its words. List every type and its fields with `npx -y launch-film@0.2.1 types`; icon names come from `npx -y launch-film@0.2.1 icons <word>`. The ones a launch film uses most:
|
|
60
60
|
|
|
61
61
|
```json
|
|
62
62
|
{ "type": "opener", "title": "Acme Notes", "text": "Notes that think with you" }
|
|
@@ -79,7 +79,7 @@ Words between asterisks are set in the accent color. Rules for the words:
|
|
|
79
79
|
## 4. Render
|
|
80
80
|
|
|
81
81
|
```bash
|
|
82
|
-
npx -y launch-film@
|
|
82
|
+
npx -y launch-film@0.2.1 render film/<name>/film.json
|
|
83
83
|
```
|
|
84
84
|
|
|
85
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.
|
|
@@ -89,14 +89,14 @@ Clips render two at a time; a 30 second film takes one to three minutes. The fil
|
|
|
89
89
|
You can't watch the film or hear it, so measure it:
|
|
90
90
|
|
|
91
91
|
```bash
|
|
92
|
-
npx -y launch-film@
|
|
92
|
+
npx -y launch-film@0.2.1 check film/<name>/film.mp4 --expect 1920x1080@25 --seconds 20-40 --lufs -14
|
|
93
93
|
```
|
|
94
94
|
|
|
95
95
|
launch-film renders at 25 fps, 1920x1080 (1080x1920 for 9:16). `--seconds 20-40` is the range a launch film keeps to; when the user asked for a length, give that instead (`--seconds 30` allows half a second either way). Clips last whole bars, so a film planned for 30 seconds can come out two seconds short: to hit a length exactly, give the last clip `seconds` in place of `bars` and render again. `--lufs -14` is the loudness YouTube, X and most social apps play at. If the user has music cues from another tool, add `--cues cues.json` to see whether the cuts land on the beat.
|
|
96
96
|
|
|
97
97
|
Read `film/<name>/check/CHECK.md` first. It says PASS or FAIL and why, for each check: size, frame rate, length, black, still and silent stretches, loudness, true peak, clipping and cuts on the beat. A warning is something to look at, not always a fault: a title that rests or an end card is a hold, and you can pass the stretches you meant with `--allow 27-30`.
|
|
98
98
|
|
|
99
|
-
Then look, because a measurement can't read words. Open `check/sheet.png` (a frame from each shot) and `check/wave.png` (the sound over time, with the cuts). For two stills a clip, run `npx -y launch-film@
|
|
99
|
+
Then look, because a measurement can't read words. Open `check/sheet.png` (a frame from each shot) and `check/wave.png` (the sound over time, with the cuts). For two stills a clip, run `npx -y launch-film@0.2.1 frames film/<name>/film.mp4` and open `frames/sheet.jpg`. Check:
|
|
100
100
|
|
|
101
101
|
- every word is whole, inside the frame and spelled as written;
|
|
102
102
|
- no text lies on other text or runs out of its card;
|
|
@@ -109,7 +109,7 @@ Fix what you find in film.json and render again. If the loudness or the peaks fa
|
|
|
109
109
|
## 6. Launch pictures, when the user wants them
|
|
110
110
|
|
|
111
111
|
```bash
|
|
112
|
-
npx -y launch-film@
|
|
112
|
+
npx -y launch-film@0.2.1 stills film/<name>/film.json --for ph,og,x,play,chrome
|
|
113
113
|
```
|
|
114
114
|
|
|
115
115
|
This makes the pictures a launch needs from the same plan, at the exact size each place asks for, in `film/<name>/stills/`: the Product Hunt gallery (`ph-1.png` to `ph-6.png`, 1270x760) and thumbnail (240x240), `og.png` (1200x630) for link previews, `x.png` (1600x900) for a post on X, `play-feature.png` (1024x500) for Google Play, and the Chrome Web Store tiles (`chrome-small.png` 440x280 and `chrome-marquee.png` 1400x560). Ask for only the ones the user needs with `--for`; a site's address in place of film.json plans the film first.
|
|
@@ -118,7 +118,7 @@ Read `stills/STILLS.md` and look at every picture with the same list as the fram
|
|
|
118
118
|
|
|
119
119
|
## Without a plan step
|
|
120
120
|
|
|
121
|
-
`npx -y launch-film@
|
|
121
|
+
`npx -y launch-film@0.2.1 <url>` does steps 1 to 4 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, and check the MP4 as in step 5 before you hand it over.
|
|
122
122
|
|
|
123
123
|
## Options
|
|
124
124
|
|
package/src/brand.js
CHANGED
|
@@ -37,8 +37,9 @@ const normHex = (v) => {
|
|
|
37
37
|
// The commands that may run easybrandkit, in the order they are tried: the
|
|
38
38
|
// one given (a command, or the path of easybrandkit's script), else
|
|
39
39
|
// LAUNCH_FILM_EASYBRANDKIT, else an easybrandkit installed on PATH, else
|
|
40
|
-
// easybrandkit from npm through npx, then
|
|
41
|
-
// npm cannot give it.
|
|
40
|
+
// easybrandkit 0.4.0 from npm through npx, then the same release from its
|
|
41
|
+
// GitHub repository when npm cannot give it. The version is pinned, so a run
|
|
42
|
+
// never picks up a newer easybrandkit on its own.
|
|
42
43
|
function easybrandkitCommands(given = "") {
|
|
43
44
|
const raw = String(given || process.env.LAUNCH_FILM_EASYBRANDKIT || "").trim();
|
|
44
45
|
if (raw) {
|
|
@@ -48,7 +49,7 @@ function easybrandkitCommands(given = "") {
|
|
|
48
49
|
const installed = onPath(process.platform === "win32" ? "easybrandkit.cmd" : "easybrandkit");
|
|
49
50
|
if (installed) return [[installed]];
|
|
50
51
|
const npx = process.platform === "win32" ? "npx.cmd" : "npx";
|
|
51
|
-
return [[npx, "-y", "easybrandkit@
|
|
52
|
+
return [[npx, "-y", "easybrandkit@0.4.0"], [npx, "-y", "github:EminBudak/easybrandkit#v0.4.0"]];
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
const HOW = "Install easybrandkit (npm install -g easybrandkit), or point LAUNCH_FILM_EASYBRANDKIT (or --easybrandkit) at its scripts/easybrandkit.js, or give a kit you already have with --brand.";
|