beatsheet 0.0.0-stage → 0.2.0
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 +21 -0
- package/README.md +63 -2
- package/bin/beatsheet.js +14 -0
- package/bin/register-fallback.mjs +23 -0
- package/bin/resolve-fallback.mjs +83 -0
- package/package.json +45 -4
- package/player/env.d.ts +5 -0
- package/player/gallery-audio.ts +147 -0
- package/player/gallery-css.ts +144 -0
- package/player/gallery-detail.ts +385 -0
- package/player/gallery-music.ts +257 -0
- package/player/gallery-pick-state.ts +167 -0
- package/player/gallery-pick.ts +749 -0
- package/player/gallery-sounds.ts +137 -0
- package/player/gallery-state.ts +457 -0
- package/player/gallery.ts +612 -0
- package/player/index.html +49 -0
- package/player/main.ts +83 -0
- package/skill/SKILL.md +658 -0
- package/skill/examples/library/assets/tour/avatar-mk.svg +1 -0
- package/skill/examples/library/assets/tour/dashboard-insights.svg +1 -0
- package/skill/examples/library/assets/tour/dashboard.svg +1 -0
- package/skill/examples/library/assets/tour/settings.svg +1 -0
- package/skill/examples/library/library-tour.plan.md +32 -0
- package/skill/examples/library/library-tour.video.json +268 -0
- package/skill/reference/scene-techniques.md +306 -0
- package/skill/scripts/beats.ts +34 -0
- package/skill/scripts/catalogue.ts +120 -0
- package/skill/scripts/frames.ts +105 -0
- package/src/args.ts +344 -0
- package/src/cli.ts +95 -0
- package/src/commands.ts +812 -0
- package/src/default-project.config.ts +9 -0
- package/src/index.ts +47 -0
- package/src/packages.ts +17 -0
- package/src/paths.ts +32 -0
- package/src/project.ts +200 -0
- package/src/render/browser.ts +185 -0
- package/src/render/capture.ts +320 -0
- package/src/render/ffmpeg.ts +229 -0
- package/src/render/gif-info.ts +61 -0
- package/src/render/render.ts +220 -0
- package/src/samples.ts +557 -0
- package/src/server/api.ts +494 -0
- package/src/server/jobs.ts +210 -0
- package/src/server/security.ts +47 -0
- package/src/server/server.ts +191 -0
- package/src/server/sse.ts +76 -0
- package/src/server/static.ts +127 -0
- package/src/server/vite.ts +100 -0
- package/src/skill.ts +111 -0
- package/src/snap.ts +212 -0
- package/src/speech.ts +689 -0
- package/src/svg-text.ts +136 -0
- package/src/voicefx.ts +311 -0
- package/studio/3rdpartylicenses.txt +287 -0
- package/studio/favicon.ico +0 -0
- package/studio/icons/apple-touch-icon.png +0 -0
- package/studio/icons/icon-192.png +0 -0
- package/studio/icons/icon-512.png +0 -0
- package/studio/icons/icon.svg +1 -0
- package/studio/icons/maskable-512.png +0 -0
- package/studio/index.html +18 -0
- package/studio/main-KMYDBWZH.js +15 -0
- package/studio/manifest.webmanifest +17 -0
- package/studio/offline.html +92 -0
- package/studio/styles-NJ2CULOW.css +1 -0
- package/studio/sw.js +71 -0
package/skill/SKILL.md
ADDED
|
@@ -0,0 +1,658 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: beatsheet
|
|
3
|
+
description: Use when making a launch, release or feature video with beatsheet - the user says "/beatsheet" or asks for a video in a folder that has a beatsheet.config.ts or *.video.json files, or asks for a launch, release or feature video of a project that uses beatsheet. Also when /brag or /brag-slim hands over a beatsheet project.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# beatsheet
|
|
7
|
+
|
|
8
|
+
You draft the video; the user fine-tunes it. In beatsheet a video is data: a `*.video.json` of scenes with texts,
|
|
9
|
+
durations and timing gaps. Code lives only in scene types and themes. Your job is the first draft (research, story,
|
|
10
|
+
scenes), checked stills and two rendered MP4s (16:9 and 4:5), landed as a file the user edits in `beatsheet studio`
|
|
11
|
+
without you. Its direction (goal, tone, message, voice) is the user's: ask it before you plan (2. Direction).
|
|
12
|
+
|
|
13
|
+
## Where things are
|
|
14
|
+
|
|
15
|
+
A project is the folder the user runs beatsheet in: its `videos/*.video.json`, their images in `assets/`, and
|
|
16
|
+
`beatsheet.config.ts` (theme + scene types) when it has one. Without a config it uses the default theme and the
|
|
17
|
+
built-in scenes; run every command from that folder. Every command is `npx -y beatsheet …`: nothing to install,
|
|
18
|
+
and a project that has beatsheet in its own `node_modules` runs that copy instead. Before anything else, run once:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npx -y beatsheet paths
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
If `paths` is an unknown command, the project's own beatsheet is older than this skill: suggest
|
|
25
|
+
`npm install -D beatsheet@latest @beatsheet/core@latest @beatsheet/scenes@latest`, then run `paths` again.
|
|
26
|
+
|
|
27
|
+
It prints the version, then `core` (that path is `<core>` below), `scenes` (`<scenes>`), `skill` and `examples` (the
|
|
28
|
+
library tour: `library-tour.video.json`, its `*.plan.md` and its images in `assets/`; in a checkout
|
|
29
|
+
`examples/library/videos`, the images in `examples/library/assets`). No project yet: section 4, New project.
|
|
30
|
+
|
|
31
|
+
**A beatsheet checkout** (the repo, for work on beatsheet itself; it has `packages/` and `skills/beatsheet`):
|
|
32
|
+
`paths` prints `packages/core/src` and `packages/scenes/src`. Projects are `projects/<name>/`, each its own git
|
|
33
|
+
repo cloned there (`projects/` is git-ignored; a project needs no install, it uses the checkout's root
|
|
34
|
+
`node_modules`); `examples/` holds beatsheet's own projects, `library` and `beatsheet-promo`. Read the checkout's
|
|
35
|
+
`README.md` once.
|
|
36
|
+
|
|
37
|
+
| What | Where |
|
|
38
|
+
|---|---|
|
|
39
|
+
| Project notes | the project's `AGENTS.md` and `README.md`, when it has them: read them first. They say which videos belong there, its music, where its releases are and how to check a version is live |
|
|
40
|
+
| Scene props | `<scenes>/<category>/<type>.ts`: the zod schema at the top is the prop reference; its `samples` are ready-made props |
|
|
41
|
+
| Authoring kit | `@beatsheet/scenes/kit` (`<scenes>/kit.ts`): what a scene type of your own imports besides `@beatsheet/core` |
|
|
42
|
+
| Scene techniques | `reference/scene-techniques.md` next to this file: SVG, masks, CSS 3D, canvas, shaders, three.js, GSAP, each seeked, with costs |
|
|
43
|
+
| Catalogue | `npx -y beatsheet catalogue [--props]` from a project: every scene type by category with props, beat ids and samples, the theme's sounds and music (each track's tempo and beat length), generated from the code |
|
|
44
|
+
| Gallery | `npx -y beatsheet studio`, top bar → Gallery (or `/player/?mode=gallery`): every sample of every type playing, in any format; sound board; music browser |
|
|
45
|
+
| Contract | `<core>/types.ts` (`VideoDoc`, `SceneType`, `Theme`) |
|
|
46
|
+
| Finished examples | the project's own `videos/*.video.json`; the `examples` folder `paths` prints (the library tour: built-in types only; its images in `assets/` there); in a checkout `examples/*/videos/` instead (`beatsheet-promo`: some scenes use that project's own `timeline-hero` type) and `projects/*/videos/`; each with its `*.plan.md` |
|
|
47
|
+
| Beat times | `npx -y beatsheet beats videos/<name>.video.json`: every scene's beats with gap, time in the scene and in the video, and the time left after the last beat |
|
|
48
|
+
|
|
49
|
+
CLI: `npx -y beatsheet <check|stills|render|studio> …` from the project folder; `npx -y beatsheet --help` for flags.
|
|
50
|
+
To see what a scene type looks like before using it: `npx -y beatsheet stills --samples --type <id> --format 16:9,4:5 --sheet`
|
|
51
|
+
and Read the sheets (`out/stills/samples-<id>-*-sheet*.png`).
|
|
52
|
+
|
|
53
|
+
## 1. Inspect
|
|
54
|
+
|
|
55
|
+
Decide the source: a release note, changelog entry or PR; a project folder; a website. For a release or feature
|
|
56
|
+
video the material is the change itself: read the release note, then its commit, tests and code, until you can show
|
|
57
|
+
the feature with real input and real output (the exact command, error text, JSON). Run it when you can; if the
|
|
58
|
+
repo's build output is older than the change and you may not build there, run the source with `npx tsx`. The
|
|
59
|
+
test's expected string is the next best source. If the user names one release or feature, that is the whole video.
|
|
60
|
+
|
|
61
|
+
Don't read build output, lock files, `.git/`, `.env*`, keys, credential files, or anything `.gitignore` excludes
|
|
62
|
+
for those reasons.
|
|
63
|
+
|
|
64
|
+
Answer before the direction questions: What is it, in one sentence? Who hits the problem, and what changes for
|
|
65
|
+
them (before → after)? Which 2–3 angles could lead the video, each with its hook? Which real command, UI or output
|
|
66
|
+
shows it? On which surface and from which version is it true, and is that live on the day the video is posted?
|
|
67
|
+
Which tone does the material suggest (the brand's own voice: its site, its copy, its visuals)? The one-line share
|
|
68
|
+
caption?
|
|
69
|
+
|
|
70
|
+
Everything gathered can end up in a public video. Never carry secrets, API keys, tokens, internal hostnames or
|
|
71
|
+
URLs, customer or user names, emails or other personal data into the plan, the video or the share copy. Use
|
|
72
|
+
plausible fictional data (products, SKUs, ids) and say so in the plan. Customer logos: only the project's public
|
|
73
|
+
ones, only in the project folder, never in a published package.
|
|
74
|
+
|
|
75
|
+
## 2. Direction
|
|
76
|
+
|
|
77
|
+
The direction is the user's call, not yours: goal, tone, message and voice decide every later choice (pace,
|
|
78
|
+
scene types, music, copy), and the material alone does not settle them. A calm brand site can still want a bold
|
|
79
|
+
video. Ask before planning, with the **AskUserQuestion** tool, in one call:
|
|
80
|
+
|
|
81
|
+
| Header | Question | Options (2–4, your recommendation first, marked "(Recommended)") |
|
|
82
|
+
|---|---|---|
|
|
83
|
+
| Goal | Where will the video run, and what should a viewer do after it? | the realistic channels for this source, e.g. LinkedIn post · pitch / sales opener · website header · release announcement · recruiting. The description says what follows: length, formats, the outro's call to action |
|
|
84
|
+
| Tone | Which tone should it have? | 3–4 tones from the table below that fit the brand, the one the material suggests first. The description names its music and pace; the `preview` shows its hook line and a 3-line pace sketch |
|
|
85
|
+
| Message | Which message should lead? | your 2–3 angles from 1. Inspect, each labelled in 2–5 words. The description gives its proof; the `preview` shows its hook → middle → punchline |
|
|
86
|
+
| Voice | Voice-over? | No voice · `af_heart` (warm, US) · `af_bella` (brighter, US) · `bf_emma` (British). Ask only when the user wants or might want narration; otherwise ask Length (15 s · 20 s · 25 s) |
|
|
87
|
+
|
|
88
|
+
- Skip a question the user already answered in the request ("a bold one", "with voice"); never ask what you were
|
|
89
|
+
told. With everything answered, skip the call and say which answers you took from the request.
|
|
90
|
+
- Several videos at once: ask Goal and Voice once for all of them, Tone and Message per video (up to four
|
|
91
|
+
questions per call; more videos, more calls).
|
|
92
|
+
- The user can pick "Other" and write their own direction ("like a 2016 Series A launch"); take it literally and map
|
|
93
|
+
it onto the table's levers.
|
|
94
|
+
- No AskUserQuestion (a subagent, a scheduled run): take your recommendations, write "assumed" next to each in the
|
|
95
|
+
plan, and name them in the report so the user can redirect.
|
|
96
|
+
- A second video in the same project keeps the project's earlier answers for Goal and Voice when the user says so;
|
|
97
|
+
Tone and Message are asked again.
|
|
98
|
+
|
|
99
|
+
**Tones.** Each tone sets the levers below; freeform direction refines them. The project's `rules` win where they
|
|
100
|
+
set a track, scene types or the transition.
|
|
101
|
+
|
|
102
|
+
| Tone | Feel | Hook | Scenes · holds | Transitions | Music | Voice | Copy |
|
|
103
|
+
|---|---|---|---|---|---|---|---|
|
|
104
|
+
| `bold` | confident, loud, certain | `kinetic-type` (stack or replace) or `counter`, dark | 5–7 scenes, 2–4 s each, short holds | `cut` on downbeats, one `wipe` into the reveal or a dark-to-light change, a `dip` only into the outro | `pulse-plus` (full mix), `upbeat-pulse`, or `cinematic-build` for weight | `af_bella`, speed 1.05; short sentences, no questions | short declaratives, numbers first, no hedging ("We build…", not "We help you…") |
|
|
105
|
+
| `polished` | calm, elegant, restrained | `statement` or `question`, light | 4–5 scenes, 4–6 s, long holds | `dip`, a `slide` between steps that continue | `light-corporate`, `soft-keys` | `af_heart`, speed 1 | full sentences, understated, the brand's own phrases |
|
|
106
|
+
| `playful` | punchy, friendly, a wink | `question` with a twist answer | 4–6 scenes, 3–4 s | `slide` between highlights, a `cut` on the joke | `upbeat-pulse`, `lofi` | `af_bella`, speed 1.05; conversational | plain words, one joke at most, still true |
|
|
107
|
+
| `cinematic` | trailer-scale, a build and a hit | `kinetic-type` (replace), dark, a `riser` into the reveal | 4–5 scenes: build, hit, hold | `zoom` or `dip` while building, `cut` on the hit, one `iris` onto the logo | `cinematic-build` | `af_heart`, speed 0.95, pauses | few words, big claims that are true |
|
|
108
|
+
| `deadpan` | dry, calm, nothing is a joke | `statement`, dark, lots of space | 3–4 scenes, long holds | slow `dip` (0.6 s), nothing else | `minimal-tech` or `calm-ambient`, low | `bf_emma`, speed 0.95; flat, literal | literal, short, no adjectives |
|
|
109
|
+
|
|
110
|
+
Each tone also sets the video's **look** (5. Write the video, Look): `bold` → `"motion": { "entrance": "punch" }`,
|
|
111
|
+
a heavier display weight in `"tokens"` (`"bs-weight-display": "700"`), an `accent` scene or two (the hook, the
|
|
112
|
+
outro), `push` 0.03–0.04; `polished` → `"entrance": "reveal"` (`blur` for a soft, premium brand), `push` 0.02 at
|
|
113
|
+
most; `cinematic` → `blur` or `reveal`, `push` 0.04, a little `grain` (0.02–0.03) for texture; `playful` → `words`
|
|
114
|
+
when its headlines are short, else the default; `deadpan` keeps the default `fade`. Any narrated video for a feed
|
|
115
|
+
(LinkedIn, social) → `"captions": true`.
|
|
116
|
+
|
|
117
|
+
Choose the transitions and the entrance style from the direction; a video where every scene dips and every text
|
|
118
|
+
fades reads as a template. One entrance style per video. For transitions, one kind carries most scenes and one or
|
|
119
|
+
two others mark the moments the direction names (the reveal, the hit, the outro). What each looks like and when to
|
|
120
|
+
use it: the two tables in 5. Write the video.
|
|
121
|
+
|
|
122
|
+
brag-slim's other tones map onto these: `default` ≈ `playful`, `app-store` ≈ `polished`; `yc-parody` and `chaotic`
|
|
123
|
+
only when asked for.
|
|
124
|
+
|
|
125
|
+
Record the answers at the top of the plan as a **Direction** block (goal and channel, tone, message, voice, music,
|
|
126
|
+
each "asked", "from the request" or "assumed"). Plan, build and review against it: a reviewer checks the video
|
|
127
|
+
against the direction, not only against the draft.
|
|
128
|
+
|
|
129
|
+
## 3. Plan
|
|
130
|
+
|
|
131
|
+
Write `videos/<name>.plan.md` next to the video: the Direction block, angle, hook, before → after, highlights,
|
|
132
|
+
punchline, where the claim is true, privacy note, share caption, and a storyboard table `# · scene id · type ·
|
|
133
|
+
duration · transition in · on screen · sound` (plus `narration` with a voice). Durations sum to the target. Shape:
|
|
134
|
+
hook (an opener) → reveal (brand, release) or problem (demo) → 1–3 highlights (demo, feature, proof) → outro. The
|
|
135
|
+
hook makes its point within ~2 s; the hook scene itself runs 4–6 s (`bold` kinetic type: 3–4 s), since a typed
|
|
136
|
+
line plus a 2–3 line statement needs that to be read.
|
|
137
|
+
|
|
138
|
+
**Creative laws** (from brag-slim):
|
|
139
|
+
|
|
140
|
+
- **Short.** 15–25 s; a single feature 15–20 s.
|
|
141
|
+
- **Clear to a stranger.** After one viewing they know what it does, who it's for and how to get it.
|
|
142
|
+
- **The hook is everything.** The first 2 seconds decide whether anyone keeps watching. Plan it first.
|
|
143
|
+
- **Show the thing.** Real commands, real output, real copy. Invented claims, numbers or testimonials are out;
|
|
144
|
+
small illustrative data (a filename, a product) is fine.
|
|
145
|
+
- **Specific.** Its own words and claims; no generic SaaS language ("streamline your workflow" is banned).
|
|
146
|
+
- **Readable.** Any line meant to be read stays settled ~0.3 s per word, counted from when all of it is on screen
|
|
147
|
+
until it leaves (the scene's exit, or earlier when it is replaced or scrolls out); all of a scene's words fit
|
|
148
|
+
between its first readable text and its exit.
|
|
149
|
+
`beatsheet check` measures both and warns per scene with the seconds missing.
|
|
150
|
+
- **Alive.** Typing, outputs appearing one by one, a highlight drawing in beat static slides.
|
|
151
|
+
- **Every frame postable.**
|
|
152
|
+
- **One hero moment.** One scene is the frame people remember: the product's own picture, not a stock layout.
|
|
153
|
+
Name it in the storyboard: a hero type (`diagram`, `type-reveal`, `product-shot`, `shader-title`) or, when none
|
|
154
|
+
can draw it, a scene type of its own (6. A scene type of your own).
|
|
155
|
+
- **Varied.** Neighbouring scenes do not share a composition. `diagram`, `terminal`, `product-shot` and `cta` draw
|
|
156
|
+
a left-aligned heading with the content under it by default: set `align: "center"` (as on `shader-title`) on one
|
|
157
|
+
of two that follow each other, and on a short hero statement; keep `left` for dense content (five nodes, a long
|
|
158
|
+
panel, a two-line heading).
|
|
159
|
+
|
|
160
|
+
Tone is a planning word from 2. Direction, not a field: its row in the tones table sets the number of scenes, the
|
|
161
|
+
holds, the transitions, the track, the voice and the copy. Plan each scene's transition in the storyboard (six
|
|
162
|
+
kinds, 5. Write the video, Transitions) instead of leaving every scene on the theme's default dip. Sound comes
|
|
163
|
+
from the theme; never write audio code for one video.
|
|
164
|
+
|
|
165
|
+
## 4. Project and theme
|
|
166
|
+
|
|
167
|
+
- **A project exists** (the folder the user is in, or the one its notes name): use it and its theme unchanged. A
|
|
168
|
+
theme is shared by every video of the project; change it only when the user asks. Its videos are committed in
|
|
169
|
+
the project's own repo. In a checkout every project is its own git repo, cloned into `projects/`, which
|
|
170
|
+
beatsheet git-ignores: never commit a project's videos in beatsheet. When the user names a project that is not
|
|
171
|
+
there, ask where it is (in a checkout: to clone its repo into `projects/`). Do not recreate a project that
|
|
172
|
+
exists elsewhere, and do not put one under `examples/`.
|
|
173
|
+
- **Brand rules:** read `rules` in `beatsheet.config.ts` before planning. Use only the scene types in
|
|
174
|
+
`rules.scenes`, the variants in `rules.variants`, a track from `rules.music.allowed` (the `default` unless the
|
|
175
|
+
user wants another; set one when `required`), the `rules.transition` kind, a `poster` when `rules.poster`, and
|
|
176
|
+
end on a type from `rules.outro`. `check` reports each broken rule as an error at its field.
|
|
177
|
+
`rules.ignoreWarnings` lists warning ids the project has switched off for all its videos (`check` counts them
|
|
178
|
+
as silenced); leave the list as it is unless the user asks (section 7).
|
|
179
|
+
- **New project:** in the folder the user picks (`git init` only when it is not in a repo yet; a remote only when
|
|
180
|
+
the user asks). It needs no install and no config: write `videos/<name>.video.json` (its images in `assets/`)
|
|
181
|
+
and a `.gitignore` with `out/`, `scratch/` and `node_modules/`. A studio already open on the empty folder shows
|
|
182
|
+
the first video as soon as it is saved. Chromium downloads itself on the first `check`, `stills` or `render`
|
|
183
|
+
(about 100 MB, once per machine); `BEATSHEET_CHROMIUM` points at a Chromium of your own, and
|
|
184
|
+
`BEATSHEET_NO_DOWNLOAD=1` turns the download off.
|
|
185
|
+
- **`beatsheet.config.ts`:** write one only for a brand theme (Theme, below) or a scene type of the project's own
|
|
186
|
+
(6. A scene type of your own):
|
|
187
|
+
|
|
188
|
+
```ts
|
|
189
|
+
import { defineProject } from '@beatsheet/core';
|
|
190
|
+
import { builtinScenes, defaultTheme } from '@beatsheet/scenes';
|
|
191
|
+
|
|
192
|
+
export default defineProject({ name: '<name>', theme: defaultTheme, scenes: builtinScenes });
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
Then tell the user to restart the studio (`npx -y beatsheet studio`): a studio that started without a config
|
|
196
|
+
keeps the default theme and the built-in scenes until then. The imports resolve without an install (to
|
|
197
|
+
beatsheet's own copies). The project's `.ts` files load as ES modules when its `package.json` declares no
|
|
198
|
+
`"type"`: `import` and `export` only, no `require`, `__dirname` or `module.exports`.
|
|
199
|
+
- **npm install:** `npm init -y` and `npm install -D beatsheet @beatsheet/core @beatsheet/scenes` only for a scene
|
|
200
|
+
type that needs npm packages of its own (gsap, three.js: they go into the same `package.json`) or to pin
|
|
201
|
+
versions; the local install then wins over npx's. A project with tests also gets `"type": "module"`,
|
|
202
|
+
`typescript` and `vitest` as dev dependencies, and a `tsconfig.json` with `"module": "ESNext"`,
|
|
203
|
+
`"moduleResolution": "bundler"`, `"lib": ["ES2023", "DOM"]`, `"strict": true`, `"noEmit": true`.
|
|
204
|
+
- **New project (checkout):** create `projects/<name>/` as a git repo of its own (`git init`; a remote only when the user
|
|
205
|
+
asks). For a brand theme or a scene type of its own it needs `beatsheet.config.ts`: copy
|
|
206
|
+
`examples/beatsheet-promo/beatsheet.config.ts`, set `name` and remove the `timelineHero` import and entry (that
|
|
207
|
+
scene type belongs to beatsheet-promo). No install and no
|
|
208
|
+
workspace entry: `@beatsheet/core`, `@beatsheet/scenes` and the `beatsheet` CLI resolve from the checkout's root
|
|
209
|
+
`node_modules`. Add a `.gitignore` with `out/`, `scratch/` and `node_modules/`. Only a project with tests or a
|
|
210
|
+
scene type of its own also needs `package.json` and `tsconfig.json`: copy them from `examples/beatsheet-promo`,
|
|
211
|
+
rename the package and delete its dependencies (in a checkout `@beatsheet/*` and `beatsheet` resolve from the
|
|
212
|
+
workspace; `gsap` is beatsheet-promo's own); `"extends": "../../tsconfig.base.json"` resolves from
|
|
213
|
+
`projects/<name>/` as it does from `examples/`.
|
|
214
|
+
- **Theme:** beatsheet-promo has none of its own, it uses
|
|
215
|
+
`defaultTheme` from `@beatsheet/scenes`. For a brand, write `theme.ts` next to the config: `defaultTheme` with
|
|
216
|
+
the project's own colours and fonts in `tokens` and its logo in `assets.logo` (token keys: `Theme.tokens` in
|
|
217
|
+
`types.ts`), imported in the config in place of `defaultTheme`. A theme with its own music: model it on
|
|
218
|
+
`<scenes>/theme.ts`. The type scale,
|
|
219
|
+
weights, tracking, spacing and motion have defaults (`<core>/tokens.ts`); set them only when the
|
|
220
|
+
brand differs (e.g. `'bs-weight-display': '700'`).
|
|
221
|
+
|
|
222
|
+
## 5. Write the video
|
|
223
|
+
|
|
224
|
+
Copy the closest existing `*.video.json` to `videos/<name>.video.json` (kebab-case; the file name is the output
|
|
225
|
+
name) and change the data. Set `title`, `formats: ["16:9", "4:5"]`, `music` (the project's own track when its theme or rules have one;
|
|
226
|
+
else one of the library's nine tracks: `soft-pad`, `calm-ambient`, `soft-keys`, `upbeat-pulse`, `pulse-plus`,
|
|
227
|
+
`minimal-tech`, `light-corporate`, `cinematic-build`, `lofi`; the catalogue lists each one's mood, tempo and parts),
|
|
228
|
+
`poster` (`{ "scene", "beat", "offset" }` on the strongest settled frame: the hook statement, unless the hook shows
|
|
229
|
+
the broken "before" state, which out of context reads as a bug; then the reveal).
|
|
230
|
+
|
|
231
|
+
**Look** (optional, top level, over the theme's, for this video only; the tone sets it, see 2. Direction):
|
|
232
|
+
|
|
233
|
+
- `"tokens"`: any token the theme knows (`check` errors on an unknown key), e.g. `{ "bs-weight-display": "700" }`.
|
|
234
|
+
- `"motion"`: `entrance`, how text and items enter in every scene (`"motion": { "entrance": "words" }`; the table
|
|
235
|
+
below); `push` 0–0.1, a slow camera push over every scene. A scene's own `"push"` wins: `"push": 0` on dense code
|
|
236
|
+
or a screenshot.
|
|
237
|
+
- `"grain"` 0–0.5 (0.02–0.04 reads as film): noise in every frame, about 1 MB more MP4 per second. GIFs skip it.
|
|
238
|
+
- `"backdrop": { "kind": "dots" }` or `{ "kind": "aurora", "strength": 0.35 }`: a slow animation behind the scenes
|
|
239
|
+
that runs through cuts and transitions. It shows only behind scenes that paint no background of their own: a
|
|
240
|
+
`dark` or `accent` variant covers it, and so do `type-reveal` and `shader-title`. That is intended: dark and accent
|
|
241
|
+
scenes stay flat and read as punctuation between backdrop scenes, so a video made mostly of them shows little of
|
|
242
|
+
the backdrop. When the deliverable is a GIF, prefer `grid` or `dots`: `aurora` makes GIFs far larger (6 s at
|
|
243
|
+
800 px: 8.9 MB, against 2.1 MB with `grid`, 1.2 MB with `dots` and 0.13 MB without; the MP4 only goes from 0.25
|
|
244
|
+
to 1 MB).
|
|
245
|
+
|
|
246
|
+
| kind | looks like | use it when | mind |
|
|
247
|
+
|---|---|---|---|
|
|
248
|
+
| `aurora` | large soft glows in the accent colour, drifting slowly | a warm, branded feel on light, text-led videos | the most visible; 0.3 for dense scenes; a GIF grows about 80 times |
|
|
249
|
+
| `grid` | fine line grid drifting diagonally, fading at the edges | technical or product videos (code, data, dashboards) | lines run behind text: 0.5 or below |
|
|
250
|
+
| `dots` | dot grid drifting diagonally, fading at the edges | the quietest texture, safe on any light video | barely visible below 0.3 |
|
|
251
|
+
- `"variant": "accent"` on statement, kinetic-type, question, title, logo-sting or cta: a full-frame field in the
|
|
252
|
+
brand colour. On it `[accent]` and `[highlight]` become a box in the text colour with accent-coloured words.
|
|
253
|
+
|
|
254
|
+
| Entrance | Looks like | Use it for |
|
|
255
|
+
|---|---|---|
|
|
256
|
+
| `fade` | each scene type's own entrance: a fade with a small rise (default) | neutral, fastest to read |
|
|
257
|
+
| `reveal` | lines and items rise out of a clip, fast start and long settle | editorial, calm confidence |
|
|
258
|
+
| `punch` | scales from 1.15 down to 1, dips just under and settles | bold, energetic claims |
|
|
259
|
+
| `blur` | fades in while a 14 px blur clears; no movement | soft, premium, atmospheric |
|
|
260
|
+
| `words` | words rise out of their own masks one after another; cards, list items, logos, counters and typed commands enter as in `reveal` | headline-led videos with short texts; allow about 0.5 s more read time per long text (it is readable once its last word is in) |
|
|
261
|
+
|
|
262
|
+
**Transitions.** A scene after the first enters with the theme's default (a 0.5 s `dip` unless the theme sets
|
|
263
|
+
another) or with its own, in the scene entry: `"transitionIn": { "kind": "wipe", "duration": 0.6, "direction": "up" }`.
|
|
264
|
+
`direction` is `left` (default), `right`, `up` or `down`, for `slide` and `wipe` only. A `wipe` uncovers the incoming
|
|
265
|
+
scene from the side opposite its `direction` (`down`: top first, `up`: bottom first, `right`: left first, `left`:
|
|
266
|
+
right first), so pick the direction that uncovers that scene's first content first (heading at the top: `down`;
|
|
267
|
+
content on the left: `right`) and check it in the `--transitions` sheet. A transition never moves a
|
|
268
|
+
scene's start; it borrows its time (d = `duration`) from the scenes around it:
|
|
269
|
+
|
|
270
|
+
| Kind | What you see | Time it takes | Use it for |
|
|
271
|
+
|---|---|---|---|
|
|
272
|
+
| `cut` | hard cut | none | fast sequences, cuts on the beat, same-layout scenes |
|
|
273
|
+
| `dip` | fade to the background, then fade in | d/2 before and d/2 after the start | the neutral default; a change of topic |
|
|
274
|
+
| `slide` | the outgoing scene moves 10 % of the frame towards `direction` and is gone, the new one arrives from the other side with its opening content in place; each fades only next to the swap | d/2 + d/2 | steps that continue: next item, next chapter |
|
|
275
|
+
| `zoom` | a dip where the old scene pushes in and the new one settles from 0.92, its opening content in place | d/2 + d/2 | going deeper into something; a reveal with energy |
|
|
276
|
+
| `wipe` | a hard edge sweeps towards `direction`, the old scene held behind it | d after the start, nothing before | before/after, a dark-to-light change, a clear break |
|
|
277
|
+
| `iris` | a circle opens from the centre, the old scene held around it | d after the start, nothing before | one big moment: logo, result, outro (use sparingly) |
|
|
278
|
+
|
|
279
|
+
- Durations: 0.4–0.6 s for `dip`, `slide` and `zoom`; 0.5–0.8 s for `wipe` and `iris`.
|
|
280
|
+
- A scene's text is not readable while its layer fades (`dip`, `slide`, `zoom`) or while it is still being revealed
|
|
281
|
+
(`wipe`, `iris`): its read time counts from the reveal's end. A reveal shows only where the two scenes differ, so
|
|
282
|
+
use one between different backgrounds (light to `dark` or `accent`), or let the incoming scene's first beat start
|
|
283
|
+
inside the reveal so the edge uncovers content. Don't move the first beat past the reveal: an empty scene behind
|
|
284
|
+
the edge shows nothing.
|
|
285
|
+
- Between a `dark` or `accent` scene and a light one, use a `wipe`, an `iris` or a `cut`. A `dip`, `slide` or
|
|
286
|
+
`zoom` fades through grey there: the dark layer fades over the light page.
|
|
287
|
+
- `slide` and `zoom` carry the incoming scene's opening content: everything whose entrance would start in the
|
|
288
|
+
scene's first d seconds (a beat at or before d, the transition's whole duration: with the default beats the
|
|
289
|
+
heading and usually the first element) is in place while the layer moves in and skips its own entrance, whatever
|
|
290
|
+
the entrance style. Later beats enter as written. No beat, sound or narration time moves, so don't set beats to 0
|
|
291
|
+
to fill the transition.
|
|
292
|
+
A scene whose first beat starts after d has nothing to carry and arrives as an empty page: `check` warns
|
|
293
|
+
(`transition-empty`); start a beat within the transition's duration, or use a `dip` or a `cut` there.
|
|
294
|
+
Two things follow: a first beat after d lands an empty page (keep it at or before d), and an element whose
|
|
295
|
+
own entrance you want to see (a `product-shot` window swinging in) needs its beat after d, or a `dip` or `cut`
|
|
296
|
+
into that scene. Typed text (a `terminal` command, a typed `statement` line) is not an entrance: it types at
|
|
297
|
+
its beat. `cut`, `dip`, `wipe` and `iris` carry nothing: the scene plays its entrances.
|
|
298
|
+
- Only before a `dip` does a scene fade its content out. Before the other kinds it stays fully visible to its last
|
|
299
|
+
frame, so the outgoing scene's last frame has to be one you would post.
|
|
300
|
+
- `check` warns when the transitions around a scene take more time than the scene has.
|
|
301
|
+
|
|
302
|
+
**Cuts on the beat: write rough durations, then `snap`.** The track keeps one tempo for the whole video, a beat
|
|
303
|
+
grid from 0 s, and each scene's music switches in on the first beat at or after its cut (a cut off the beat lets the
|
|
304
|
+
previous scene's music run on to the next beat, and `check` warns). Never add up beat times yourself. Write each
|
|
305
|
+
scene `duration` roughly, in seconds (`4.7`), then run `npx -y beatsheet snap videos/<name>.video.json`: it rewrites
|
|
306
|
+
every duration to the nearest length that ends on the beat, prints each change (`hook 4.7 s → 4.655 s`) and
|
|
307
|
+
leaves the rest of the file as it is. Run it again after every edit that changes a duration or the track; a second
|
|
308
|
+
run changes nothing. It never cuts a scene below its last beat, its transitions or its spoken narration. It cannot
|
|
309
|
+
measure read time: when it lists scenes as `shorter now`, `check` says whether one became too short to read
|
|
310
|
+
(`snap --up` takes the next beat instead and never shortens; `--dry-run` prints without writing). For a feel of
|
|
311
|
+
the lengths:
|
|
312
|
+
|
|
313
|
+
| Track | Tempo | One beat | 4 · 6 · 8 beats |
|
|
314
|
+
|---|---|---|---|
|
|
315
|
+
| `soft-pad` | 60 bpm | 1 s | 4 · 6 · 8 s |
|
|
316
|
+
| `calm-ambient` | 70 bpm | 0.857 s | 3.429 · 5.143 · 6.857 s |
|
|
317
|
+
| `soft-keys` | 90 bpm | 0.667 s | 2.667 · 4 · 5.333 s |
|
|
318
|
+
| `upbeat-pulse`, `pulse-plus` | 120 bpm | 0.5 s | 2 · 3 · 4 s |
|
|
319
|
+
| `minimal-tech` | 116 bpm | 0.517 s | 2.069 · 3.103 · 4.138 s |
|
|
320
|
+
| `light-corporate` | 104 bpm | 0.577 s | 2.308 · 3.462 · 4.615 s |
|
|
321
|
+
| `cinematic-build` | 84 bpm | 0.714 s | 2.857 · 4.286 · 5.714 s |
|
|
322
|
+
| `lofi` | 80 bpm | 0.75 s | 3 · 4.5 · 6 s |
|
|
323
|
+
|
|
324
|
+
A project track or a music file shows its tempo in the catalogue (`–`: a file without a `bpm`, no grid, durations
|
|
325
|
+
are free, and `snap` stops with an error and changes nothing). The table is for planning only: `snap` does the
|
|
326
|
+
arithmetic, to the millisecond, and `check` names any end more than 5 ms off the grid.
|
|
327
|
+
|
|
328
|
+
Scene types by category (props: the schema; `-N` beats repeat per item, from 1):
|
|
329
|
+
|
|
330
|
+
| Category | Type | For | Main props | Beat ids |
|
|
331
|
+
|---|---|---|---|---|
|
|
332
|
+
| Opener | `statement` | hook: lines that type or appear, then a big 1–3 line statement | `variant` dark/light, `lines[] {label, text, mode: type\|show}`, `statement[]` | `line-N`, `statement-N` |
|
|
333
|
+
| Opener | `counter` | hook: one big number counts to its value and lands | `from`, `to`, `prefix`, `suffix`, `decimals`, `label`, `context`, `eyebrow` | `eyebrow`, `count`, `label`, `land`, `context` |
|
|
334
|
+
| Opener | `kinetic-type` | hook: big words one at a time, building lines (`stack`) or replacing (`replace`) | `mode`, `text` (rich text, `[accent]` words pop), `wordsPerSecond` | `word-N` |
|
|
335
|
+
| Opener | `question` | hook: a question, a pause, an answer | `eyebrow`, `question`, `reveal` type\|rise, `answer`, `pause` | `eyebrow`, `question`, `answer` |
|
|
336
|
+
| Opener | `type-reveal` | hero hook: huge type as a window onto a picture, which then opens to the full frame | `headline[]` (1–3 lines), `kicker`, `subline`, `image`, `field` accent\|dark (dark: the colour glows in the letters and the opened frame is dark), `open` iris\|wipe\|none | `type`, `open`, `subline` |
|
|
337
|
+
| Demo | `terminal` | the workhorse: heading, subheading, a panel of steps, centred in the frame; a short panel (up to 6 rows of up to 74 characters) is set larger in 16:9 | `heading`, `subheading`, `subheadingAfter`, `panelTitle`, `badge`, `steps[] {kind: command\|output\|message\|note, label, text, typed, typeDuration, lineDelay}`, `align` left\|center (heading centred; in 16:9 a panel of short lines narrows to them and sits in the middle) | `heading`, `panel`, `step-N`, `step-N-highlight`, `subheading` |
|
|
338
|
+
| Demo | `code-editor` | code typing into an editor, syntax colours, line highlights | `file`, `tabs`, `language`, `code`, `reveal` type\|lines, `highlights[] {from, to}`, `heading`, `layout` | `heading`, `caption`, `editor`, `code`, `highlight-N` |
|
|
339
|
+
| Demo | `chat` | an agent conversation: bubbles, typing dots, streamed replies, tool chips | `agentName`, `messages[] {from: user\|agent\|tool, text, typed, thinking}`, `composer`, `heading` | `panel`, `msg-N`, `msg-N-send`, `msg-N-typing` |
|
|
340
|
+
| Demo | `before-after` | split: before, then a wipe to after | `content` image\|text\|code, `beforeLabel`, `afterLabel`, `beforeImage`/`afterImage` or `beforeText`/`afterText` or `beforeCode`/`afterCode` | `heading`, `before`, `wipe` |
|
|
341
|
+
| Demo | `app-frame` | a screenshot in a browser/window/phone frame, cursor moves and clicks, zoom | `frame`, `url`, `src`, `points[] {x, y, click, label, pause}` (% of the image), `zoom {x, y, w, h, after, outAfter}` | `frame`, `point-N`, `zoom-in`, `zoom-out`, `caption` |
|
|
342
|
+
| Demo | `callouts` | an image with numbered markers and label cards, one by one | `src`, `callouts[] {x, y, w, h, title, text}`, `spotlight` | `heading`, `image`, `callout-N` |
|
|
343
|
+
| Demo | `product-shot` | hero: a screenshot in a window tilted in 3D, the camera settles, callouts float above it | `variant`, `heading`, `image`, `title`, `frame` browser\|plain, `tilt` left\|right, `callouts[] {text, x, y, side?}` (% of the image; a label picks a free side by itself, `side` left\|right\|above\|below forces one), `align` left\|center (the heading) | `heading`, `shot`, `callout-N` |
|
|
344
|
+
| Feature | `feature-list` | up to 8 features with icons, one by one | `heading`, `features[] {icon, title, text}` | `heading`, `feature-N` |
|
|
345
|
+
| Feature | `card-grid` | 2–6 cards, one lit with the accent | `heading`, `cards[] {icon or value, title, text, tag, highlight}` | `heading`, `card-N`, `highlight` |
|
|
346
|
+
| Feature | `steps` | how it works in 2–5 numbered steps | `heading`, `steps[] {title, text}` | `heading`, `step-N` |
|
|
347
|
+
| Feature | `comparison` | table: 2–4 columns by rows, one column lit | `columns[] {label, highlight}`, `rows[] {feature, cells[]: yes\|no\|partial\|text}` | `heading`, `header`, `row-N`, `highlight` |
|
|
348
|
+
| Feature | `diagram` | hero: how it works as 2–5 nodes, the lines between them draw, a pulse travels; in 16:9 the row grows to use the frame, most with one-word labels and details of one short line | `variant`, `heading`, `nodes[] {label, detail, icon}`, `highlight` (node number, from 1), `pulse`, `align` left\|center (heading, row and node contents; narrow: the heading) | `heading`, `node-N` |
|
|
349
|
+
| Proof | `logo-wall` | headline, rule, logos one by one | `headline`, `logos[] {src, height, alt}`, `grayscale` | `headline`, `rule`, `logo-N` |
|
|
350
|
+
| Proof | `quote` | a testimonial | `quote`, `name`, `role`, `company`, `avatar`, `logo` | `mark`, `line-N`, `attribution` |
|
|
351
|
+
| Proof | `stats` | 2–4 numbers counting up | `heading`, `stats[] {value, from, prefix, suffix, decimals, label, highlight}`, `footnote` | `heading`, `stat-N`, `footnote` |
|
|
352
|
+
| Proof | `chart` | bars or a line growing in, one value highlighted | `title`, `kind` bars\|horizontal-bars\|line, `data[] {label, value, highlight}`, `unit`, `baseline` | `title`, `axis`, `grow`, `highlight`, `baseline` |
|
|
353
|
+
| Release | `version-reveal` | "2.0": product, huge version, tagline, pill, install chip | `product`, `version`, `tagline`, `pill`, `install`, `variant` | `product`, `version`, `tagline`, `pill`, `install` |
|
|
354
|
+
| Release | `changelog` | release notes with new/improved/fixed/breaking chips | `version`, `date`, `entries[] {tag, text}` | `header`, `entry-N` |
|
|
355
|
+
| Brand | `title` | reveal: logo, eyebrow, headline with a `[highlight]` box | `showLogo`, `brand`, `eyebrow`, `headline` | `logo`, `eyebrow`, `headline`, `highlight` |
|
|
356
|
+
| Brand | `logo-sting` | a short logo or wordmark sting | `variant`, `wordmark`, `tagline`, `reveal` scale\|rise\|wipe | `logo`, `tagline` |
|
|
357
|
+
| Brand | `shader-title` | hero: a title on a flowing colour field in the theme's colours (WebGL; costs render time) | `palette` dark\|accent\|light, `flow` liquid\|silk, `speed`, `showLogo`, `brand`, `kicker`, `title`, `subtitle`, `align` left\|center | `logo`, `kicker`, `title`, `subtitle` |
|
|
358
|
+
| Outro | `cta` | logo, headline, a command box that types, subline, url | `variant`, `showLogo`, `brand`, `headline`, `command`, `button`, `subline`, `url`, `align` left\|center (everything on the centre line) | `logo`, `headline`, `box`, `command`, `subline`, `url` |
|
|
359
|
+
| Outro | `link-card` | headline and a link preview card | `headline`, `title`, `description`, `domain`, `site`, `image`, `button` | `headline`, `card`, `button` |
|
|
360
|
+
|
|
361
|
+
Nested prop names above are a guide; the schema is the reference (`catalogue.ts --props` prints every field, nested
|
|
362
|
+
ones as `nodes[].icon`, and the values of every enum).
|
|
363
|
+
Icon names (`icon` in `feature-list`, `card-grid` and `diagram`): `bolt`, `shield`, `lock`, `key`, `chart`, `gauge`,
|
|
364
|
+
`code`, `terminal`, `cpu`, `cloud`, `database`, `layers`, `search`, `filter`, `refresh`, `plug`, `globe`, `users`,
|
|
365
|
+
`bell`, `file`, `clock`, `check`, `sparkle`, `rocket`.
|
|
366
|
+
Headings come in two sizes by role, so a headline keeps its size from scene to scene: demo scenes (`terminal`,
|
|
367
|
+
`code-editor` in both layouts, `product-shot`, `app-frame`, `callouts`, `before-after`) 72 px in 16:9, feature scenes
|
|
368
|
+
(`diagram`, `feature-list`, `card-grid`, `comparison`) 88 px. A theme evens them out with `bs-text-heading` and
|
|
369
|
+
`bs-text-display-m`.
|
|
370
|
+
Start from a sample: the gallery's large view copies a ready scene entry (`{id, type, duration, props}`).
|
|
371
|
+
|
|
372
|
+
Props that need care:
|
|
373
|
+
|
|
374
|
+
- `terminal` `command` steps and the `cta` `command` box type after a `$ ` prompt: shell commands only. Show an
|
|
375
|
+
API, MCP or tool call as a `message` (label `agent`, `typed: true`; body font) or as an `output` (monospace,
|
|
376
|
+
appears at once).
|
|
377
|
+
- `[accent]` and `[highlight]` draw an accent-coloured box behind the words (only on a dark `statement` is
|
|
378
|
+
`[accent]` a text colour; on an `accent` variant the box is in the text colour, the words in the accent). Headline lines sit tight, so a box on line 2 can cover line 1's descenders: put the
|
|
379
|
+
boxed phrase on the first line or alone.
|
|
380
|
+
- `cta` `command` is optional. Without it there is no box; for a hosted feature, put the version or surface in
|
|
381
|
+
`subline` as the "how to get it".
|
|
382
|
+
|
|
383
|
+
Timing:
|
|
384
|
+
|
|
385
|
+
- All timing is relative. A scene's `duration` sets its length; its beats come with default gaps from the content
|
|
386
|
+
(typing time from text length). Override one gap only where the default is wrong:
|
|
387
|
+
`"beats": { "step-3": 1.6 }` = 1.6 s after the beat before it in the scene's beat order, which includes
|
|
388
|
+
`step-N-highlight` and `subheading` (`beats.ts` lists the order). Never compute absolute times.
|
|
389
|
+
- `duration` ≥ the last beat + reading time of what's on screen + the exit: before a `dip` the content's fade
|
|
390
|
+
(0.25 s; a dark `statement` starts fading 0.5 s before its end), before a `slide` or `zoom` half its duration,
|
|
391
|
+
before a `cut`, `wipe` or `iris` nothing. Round up to whole beats of the track (see above). Draft to the
|
|
392
|
+
read-time rule: 0.3 s per word from when a text is readable until it leaves (the exit, or the next text replacing
|
|
393
|
+
it), and all of the scene's words from its first text; `check` gives the exact seconds (`text gone at …` means a
|
|
394
|
+
longer scene won't help: slow the pace).
|
|
395
|
+
- Typing: `typeDuration` per step or line, `typingSpeed` per scene; a long command types in ≤ 1.5 s.
|
|
396
|
+
- The scene types add their sounds (typing ticks, a thud on `[error]` output, a ping on `[ok]`/`[accent]`, a
|
|
397
|
+
click on a cursor click...). Add an `sfx` cue (`{ "sound", "at", "offset", "gain" }`; `at` is a beat id of the
|
|
398
|
+
scene, `"end"` for the scene's end, or seconds from its start; `offset` is seconds added to it) only for a
|
|
399
|
+
moment they miss. Ids: the standard `tick thud ping pluck chime` (every theme), and the library `whoosh
|
|
400
|
+
swoosh-up swoosh-down pop click riser soft-impact glitch notification success error-buzz shutter` (the default
|
|
401
|
+
theme and themes built on it; for another theme add `"fallback": "<standard id>"`). A `riser` rises for 1.2 s from its time:
|
|
402
|
+
`{ "sound": "riser", "at": "end", "offset": -1.2 }` lands it on the cut into the next scene, whatever the scene's
|
|
403
|
+
duration (never work a cue's time out from the scene length), and `"at": "<beat id>", "offset": -1.2` lands it on
|
|
404
|
+
a beat; a `whoosh` peaks 0.3 s in.
|
|
405
|
+
- Rich text: `[accent] [warn] [error] [ok] [dim] [strong] [highlight]`, `\n` for a new line.
|
|
406
|
+
|
|
407
|
+
4:5 is 1080×1350, so lines wrap sooner: keep headings to ~40 characters per line and commands short, or break a
|
|
408
|
+
command with a trailing ` \` and a new line as a shell would (`\\\n` inside the JSON string). Split long output at
|
|
409
|
+
its own commas and semicolons with `\n`, and keep a `[highlight]` phrase short enough not to wrap.
|
|
410
|
+
|
|
411
|
+
## 6. A scene type of your own (the hero moment)
|
|
412
|
+
|
|
413
|
+
Most scenes are data: a built-in type with the right props, which the user edits in the studio. But a video made
|
|
414
|
+
only of stock scenes looks like every other one. Write a scene type when the video has **one moment that carries
|
|
415
|
+
the idea and no built-in can draw it**: the product's own picture (its pipeline, its timeline, its map), a brand
|
|
416
|
+
motion, a diagram of this very thing. Decide it in the plan, name the moment there, and keep it to one or two
|
|
417
|
+
scenes per video. Not for what a built-in shows with other props: look first (catalogue, gallery), also at the
|
|
418
|
+
hero types that already use these techniques: `diagram` (SVG lines that draw), `type-reveal` (a picture through
|
|
419
|
+
type), `product-shot` (a screenshot in 3D), `shader-title` (a flowing colour field).
|
|
420
|
+
|
|
421
|
+
The scene type is still data on the outside: texts, items and options are props with a schema, so the user edits
|
|
422
|
+
them in the studio; only the picture is code.
|
|
423
|
+
|
|
424
|
+
**Where.** In the project: `scenes/<id>.ts`, registered in `beatsheet.config.ts`
|
|
425
|
+
(`scenes: [...builtinScenes, myScene]`), importing `@beatsheet/core` and the authoring kit `@beatsheet/scenes/kit`
|
|
426
|
+
(never copy library code; a config that is new needs a studio restart, section 4). A type that imports only those needs no install;
|
|
427
|
+
one with npm packages of its own (GSAP, three.js) gets the install in 4. Project and theme. The worked
|
|
428
|
+
example, with its test (in a checkout): `examples/beatsheet-promo/scenes/timeline-hero.ts` (GSAP), used in
|
|
429
|
+
`videos/beatsheet-craft.video.json`. When a type is generic and the user wants it in the library (a checkout only):
|
|
430
|
+
`packages/scenes/src/<category>/<id>.ts`, registered in that category's `index.ts`. Start from a similar type
|
|
431
|
+
(`outro/cta.ts` is the shortest complete one).
|
|
432
|
+
|
|
433
|
+
**Techniques.** Anything that can be set to a time works: SVG attributes, masks and clip paths, CSS 3D, a canvas
|
|
434
|
+
redrawn per frame, a fragment shader with a time uniform, three.js rendered in `update()`, a paused GSAP timeline
|
|
435
|
+
seeked to `t`. Nothing may play by itself. Read **`reference/scene-techniques.md`** (next to this file) before
|
|
436
|
+
writing: a recipe per technique, what each costs per frame, and the rules that keep frames identical (GSAP's
|
|
437
|
+
defaults, for one, do not).
|
|
438
|
+
|
|
439
|
+
The contract:
|
|
440
|
+
|
|
441
|
+
- `category` (opener, demo, feature, proof, release, brand, outro), `title`, one-line `description`.
|
|
442
|
+
- A zod `schema` with `.describe()` on every field and `.meta({ richText: true })` on every rich-text string (the
|
|
443
|
+
editor builds its form from both), `.max()` on arrays so content fits; `defaultProps`, `defaultDuration`.
|
|
444
|
+
- `samples`: at least two besides the default, one `stress: true` (longest texts, most items, every optional) and
|
|
445
|
+
one minimal (optionals empty). Images: `SAMPLE_IMAGES` from the kit.
|
|
446
|
+
- `beats(props)` with labelled default gaps from the content (`toBeats(plan)`); `sounds()` on beats with standard
|
|
447
|
+
ids, or library ids with a standard `fallback`.
|
|
448
|
+
- A `model(props)` step that gives every field a safe value (`str`, `arr`, `pos` from the kit): the editor mounts
|
|
449
|
+
half-filled props while the user types.
|
|
450
|
+
- `update(frame)` a pure function of the frame (no timers, CSS animations or `Math.random`), times from the beats
|
|
451
|
+
(`beatTime(frame, defaults, id)`), a state that switches (active, played) as a class toggled in `update()`,
|
|
452
|
+
motion from the theme: `const mo = sceneMotion(ctx.theme)` in `mount()`,
|
|
453
|
+
entrances `mo.in(t, beat)` (k x enter: `mo.in(t, b, 0.8)`), `rise(el, p, mo.rise)`, content faded out before a
|
|
454
|
+
dip with `mo.out(t, duration, frame.next)`. Text and list items enter with
|
|
455
|
+
`mo.appear(el, t, beat, { fade: (p) => …, o })`: `fade` is the type's own entrance (drawn with the default
|
|
456
|
+
style), and `reveal` / `punch` / `blur` / `words` apply when the theme or video sets them.
|
|
457
|
+
- A text scene may offer `variant: 'accent'`: `toneClass(tone(props.variant, 'light'))` on its root gives
|
|
458
|
+
`bs-dark`, `bs-light` or `bs-accent-field`.
|
|
459
|
+
- A scene type that paints the whole frame gives its full-frame element (the root, or one of the two levels below
|
|
460
|
+
it) an opaque `background-color`, also under a gradient, an image or a canvas: while a `slide` or `zoom` moves the
|
|
461
|
+
layer, the player paints that colour beyond the frame edges, so the page never shows there.
|
|
462
|
+
- Where that full-frame background is more than one flat colour (a gradient, a photograph, a canvas, a shader),
|
|
463
|
+
mark the element that paints it: `markGround(el)` from the kit (it sets `data-bs-ground`). The player then holds
|
|
464
|
+
it still while a `slide` or `zoom` moves the scene, the content moves over it, and no band in one colour shows
|
|
465
|
+
along the frame edges. Mark only the ground, an element that covers the whole frame and is opaque: what is inside
|
|
466
|
+
it stays still with it, so text and other content sit beside it, not in it. A ground that covers the frame only
|
|
467
|
+
part of the scene is marked for that part: `markGround(el, covers)` in `update()`. While it is held the scene
|
|
468
|
+
root does not clip, so hide what waits outside the frame (`visibility` or opacity) instead of relying on the
|
|
469
|
+
root's `overflow: hidden`. A flat `bs-dark` or `bs-accent-field` needs no mark.
|
|
470
|
+
- CSS starts with `baseCss(ID)`, scoped under `[data-scene-type="<id>"]`, rules for the narrow formats
|
|
471
|
+
(`narrow(S)` covers 4:5, 1:1, 9:16), design tokens only: font sizes from a type role
|
|
472
|
+
(`var(--bs-text-heading)`; off the scale `calc(var(--bs-text-heading) * 60 / 64)`; roles in
|
|
473
|
+
`<core>/tokens.ts`, most differ per format), weights `var(--bs-weight-*)`, colours `var(--bs-*)`,
|
|
474
|
+
spacing `${sp(28)}`, side margin `var(--bs-frame-x)`. A colour for a canvas or a shader: `tokenRgb(ctx, 'bs-accent')`.
|
|
475
|
+
- Words stay DOM text, also over a canvas: `check` measures layout and read time on elements. Read-time marks:
|
|
476
|
+
`...READ_SKIP` (`data-bs-read="skip"`) on texture (window and tab titles, prompts, labels of a diagram's
|
|
477
|
+
decoration, buttons, chips; `aria-hidden="true"` is skipped too), `...readWeight(CODE_READ_WEIGHT)` on code and
|
|
478
|
+
command output; the nearest ancestor's mark applies.
|
|
479
|
+
- `destroy()` releases what the scene holds (a GSAP timeline, a WebGL context): all scenes are mounted at once.
|
|
480
|
+
|
|
481
|
+
Dev loop, from the project: keep the gallery open (`npx -y beatsheet studio` → Gallery; it reloads on save and lists
|
|
482
|
+
project types like built-in ones), then
|
|
483
|
+
`npx -y beatsheet check --samples --type <id>` (0 layout issues in all four formats),
|
|
484
|
+
`npx -y beatsheet stills --samples --type <id> --format 16:9,4:5 --sheet` (Read the sheets; judge them as a designer:
|
|
485
|
+
is this the frame someone would screenshot?), and for anything beyond plain DOM
|
|
486
|
+
`npx -y beatsheet frames videos/<name>.video.json --scene <id> --backwards` (two
|
|
487
|
+
renders and a pass from the last frame to the first, compared frame by frame, with the ms per frame). `check --samples` does not measure read time: use the type in the video
|
|
488
|
+
and run `check videos/<name>.video.json` too (about 3 words per second over all text that is not marked as
|
|
489
|
+
texture). Tests: a project writes a `test/<id>.spec.ts` (vitest with `jsdom`; in a checkout copy
|
|
490
|
+
`examples/beatsheet-promo/test/timeline-hero.spec.ts`): one line runs the whole
|
|
491
|
+
contract in jsdom (`expect(sceneContractIssues(scene)).toEqual([])` from `@beatsheet/scenes/testing`: samples,
|
|
492
|
+
labels, scoped token-only CSS, beats, sounds, the same DOM for the same `t` in all four formats, no `Math.random`),
|
|
493
|
+
the rest is the type's own behaviour. In a checkout's `packages/scenes`, `test/library.spec.ts` checks every registered type the
|
|
494
|
+
same way, and the type's own behaviour goes into a `test/<id>.spec.ts`. The catalogue lists a project type
|
|
495
|
+
with the built-in ones. Say in the plan and the report that the video has a scene type of its own, and where.
|
|
496
|
+
|
|
497
|
+
### The music mix
|
|
498
|
+
|
|
499
|
+
A generated track has named parts (the catalogue's Parts column; e.g. `upbeat-pulse`: `pad`, `plucks`, `bass`,
|
|
500
|
+
`drums`). `music.mix` sets their levels, 0 (muted) to 1.5, 1 as designed, and every part left out plays at 1:
|
|
501
|
+
`"music": { "track": "upbeat-pulse", "mix": { "pad": 0.3, "plucks": 0 } }`. Use it when a part crowds the
|
|
502
|
+
scenes (a busy pad under dense text: `pad` 0.3) or to thin a track out (`pad` and `plucks` at 0 leave drums and
|
|
503
|
+
bass). Levels only: there is no tone or filter per part. `check` reports a part the track does not
|
|
504
|
+
have and any mix on a file track; when you change the track, drop or rename the mix. Leave `mix` out unless the
|
|
505
|
+
user asks for a different balance.
|
|
506
|
+
|
|
507
|
+
### Sounds and music files
|
|
508
|
+
|
|
509
|
+
Never write audio code for one video. A theme can add a sound file (`sounds: { "<id>": { title, url } }`) or a
|
|
510
|
+
music file as a track:
|
|
511
|
+
`music: { "<id>": { title, category, description, url: new URL('./music/x.mp3', import.meta.url).href, loop, offset, bpm, fadeIn, fadeOut, gain } }`
|
|
512
|
+
— it plays from `offset`, loops by default, is cut at the video end and fades out before it (default 2 s). Set
|
|
513
|
+
`bpm` when the file's tempo is known and a beat falls at `offset`: then its scenes snap to it and `check` warns
|
|
514
|
+
about cuts off it; without it nothing snaps. Only
|
|
515
|
+
use files the user owns or licensed; say so in the plan. Generated tracks and synth sounds for the library belong in
|
|
516
|
+
`packages/scenes/src/audio/` of a checkout (its README: Extending the library); a project's own go into its theme.
|
|
517
|
+
|
|
518
|
+
### Narration (voice-over)
|
|
519
|
+
|
|
520
|
+
Only when the user asks for a voice-over. Set one voice for the video, `"voice": "kokoro:af_bella"` (engine:voice;
|
|
521
|
+
`af_heart`, `af_bella` read best; `bf_emma` is British; the male voices grade lower), or leave it out when
|
|
522
|
+
`beatsheet.config.ts` has a `voice`. Then a line per scene that needs one:
|
|
523
|
+
`"narration": { "text": "Here's the opening scene, as plain data.", "offset": 0.3 }` (`offset` default 0.3 s,
|
|
524
|
+
`speed` default 1).
|
|
525
|
+
|
|
526
|
+
Write for the ear, not the eye:
|
|
527
|
+
- Short spoken sentences, one idea per scene. The line adds to the screen; it does not read the screen out.
|
|
528
|
+
- No symbols or digits a voice would read wrongly: "sixteen by nine" not "16:9", "twenty-eight scene types",
|
|
529
|
+
"version two". Contractions are fine ("here's"). Listen to the clips: a name read wrongly gets respelled.
|
|
530
|
+
- Budget about **2.5 words per second** at speed 1 (Kokoro reads 2.7-3.0), after the 0.3 s offset and before a
|
|
531
|
+
0.3 s tail: words <= 2.5 x (duration - 0.6). A 4.5 s scene holds about 9 words, a 6 s scene 13. The last
|
|
532
|
+
scene keeps 0.8 s after its line (the video fades out): words <= 2.5 x (duration - 1.1).
|
|
533
|
+
- A line that does not fit: lengthen the scene to the next beat, or cut words. Do not speed up past 1.1.
|
|
534
|
+
- Some scenes stay silent (a logo sting, a dense code frame): no `narration`.
|
|
535
|
+
|
|
536
|
+
`"voiceFx"` sets the processing: `"raw"` (default, the engine's voice trimmed) or `"studio"` (high-pass,
|
|
537
|
+
de-esser, light compression, a short room: the voice sits in a busy track). It is part of the clip key: change it,
|
|
538
|
+
then `speak` again.
|
|
539
|
+
|
|
540
|
+
Captions: `"captions": true` (or `{ "style": "bar" | "plain", "position": "bottom" | "top" }`) burns the lines in;
|
|
541
|
+
set it on every narrated video meant for a feed (muted autoplay). `"narration": { "text": "…", "caption": "…" }`
|
|
542
|
+
is the written form when the spoken text is respelled ("sixteen by nine" spoken, "16:9" shown); `"captions": false`
|
|
543
|
+
on a scene hides its caption (a scene whose own text says the same).
|
|
544
|
+
|
|
545
|
+
Then `npx -y beatsheet speak videos/<name>.video.json` (first run loads the model for ~15 s; each line takes about a
|
|
546
|
+
quarter of its length) and commit `videos/speech/` with the video. Needs `@beatsheet/voice-kokoro` installed in the
|
|
547
|
+
project; it is not on npm yet and comes with a beatsheet checkout. If `speak` says it is missing, tell the user
|
|
548
|
+
(it is GPL-3.0 licensed, see the README) instead of installing it yourself. Speech never changes durations: `check` tells you what does not fit.
|
|
549
|
+
|
|
550
|
+
## 7. Verify
|
|
551
|
+
|
|
552
|
+
Loop until all three are clean:
|
|
553
|
+
|
|
554
|
+
1. `npx -y beatsheet check videos/<name>.video.json` ends with `ok: 0 errors, 0 warnings`. Layout issues name the
|
|
555
|
+
scene, element, format and time. An off-beat end reads
|
|
556
|
+
`scene "live" ends 0.2 s off the beat (upbeat-pulse, 120 bpm): 4.5 s lands on it`: run
|
|
557
|
+
`npx -y beatsheet snap videos/<name>.video.json`, which puts every scene on the beat at once, and check again.
|
|
558
|
+
`image "<file>.svg" has live text …` names an SVG image whose text can render a few pixels differently
|
|
559
|
+
depending on the frames sought before: add `text-rendering="geometricPrecision"` to its `<svg>` element, or
|
|
560
|
+
convert the text to outlines (ask before changing a logo someone else supplied).
|
|
561
|
+
`the label "…" and the label "…" overlap` (`layout-overlap`) names two `product-shot` callouts that cover each
|
|
562
|
+
other: move one point, shorten a label, or give one a `side`.
|
|
563
|
+
`code lines wrap in 4:5 (4 of 12 lines; the longest has 57 characters, 40 fit)` (`code-wrap`) names a
|
|
564
|
+
`code-editor` or `terminal` scene whose lines break in that format: split or shorten them until they fit
|
|
565
|
+
(the message says how many characters do), keeping the code correct.
|
|
566
|
+
**Silencing a warning.** Every warning ends with its id in brackets (`… [svg-text]`, `[read-time]`,
|
|
567
|
+
`[off-beat]`). Cure the cause first: change the duration, the text or the asset. Only when the user has
|
|
568
|
+
decided to keep what the warning names (a supplied logo that must stay as it is, a scene that is short on
|
|
569
|
+
purpose) add the id to `"ignoreWarnings": ["svg-text"]` in the video, or, when it holds for every video of
|
|
570
|
+
the project, to `rules.ignoreWarnings` in `beatsheet.config.ts`. Say which id you silenced and why in your
|
|
571
|
+
report, and never silence one to reach a clean check. The run then ends with
|
|
572
|
+
`ok: 0 errors, 0 warnings, 1 silenced (svg-text)`: that is clean. Errors and layout issues cannot be
|
|
573
|
+
silenced, and an id that names no warning is itself an error.
|
|
574
|
+
2. `npx -y beatsheet stills videos/<name>.video.json --format 16:9,4:5 --transitions --sheet`, then **open both
|
|
575
|
+
sheets with the Read tool** (`out/stills/<name>-16x9-sheet-transitions.png`, `…-4x5-sheet-transitions.png`).
|
|
576
|
+
Tiles run in time order, 4 per row: each scene's settled still (0.4 s before its end) and the stills of every
|
|
577
|
+
transition that is not a cut. `dip`: one, the outgoing scene half faded. `slide`, `zoom`: two, the outgoing
|
|
578
|
+
scene on its way out (start − d/4) and the incoming one on its way in (start + d/4), with the content it carries:
|
|
579
|
+
a zoom's layer half faded and smaller, a slide's opaque and offset by 2.5 % of the frame; an empty incoming still means the scene's first beat is after d. `wipe`, `iris`: one,
|
|
580
|
+
the edge half way. The run prints which still is which (`t24.44.png zoom into "studio": the scene arriving`).
|
|
581
|
+
Single stills are `out/stills/<name>-<16x9|4x5>/t<seconds>.png`; open them for anything small, and take exact
|
|
582
|
+
moments with `stills --at 3.9,7.2`. A run keeps the stills and sheets of earlier runs (a still at the same time
|
|
583
|
+
is replaced), and each kind of run has its own sheet: `-sheet.png` (one per scene), `-sheet-at.png`,
|
|
584
|
+
`-sheet-beats.png`, `-sheet-transitions.png`. Stills of an older version of the video stay in the folder until
|
|
585
|
+
a run with `--clean`, which first deletes what earlier runs of the same kind wrote (their stills and their
|
|
586
|
+
sheet) and leaves the other kinds alone: use it after scenes moved in time, on each kind of run you repeat. A
|
|
587
|
+
default run's `--clean` keeps an `--at` run's stills and sheet; a still two kinds wrote stays until both are cleaned.
|
|
588
|
+
Look for text cut off or colliding, low contrast, text still moving in a settled still,
|
|
589
|
+
two layouts visible in a dip, slide or zoom (a wipe or iris shows both, split by a hard edge), a cramped 4:5
|
|
590
|
+
frame, a frame you would not post. A grey-looking dark `statement` still is its exit fade: check it with `--at`
|
|
591
|
+
before its last 0.5 s.
|
|
592
|
+
3. Read times: every `read time` warning from step 1 names the scene, the format and the seconds missing
|
|
593
|
+
(`scene "features" (feature-list) needs 12.6 s, has 3 s: +9.6 s`); raise that scene's `duration` by them,
|
|
594
|
+
rounded up to whole beats of the track, and check again. Where a scene would get too long, cut words instead.
|
|
595
|
+
`beats.ts` stays the tool for looking at beat times.
|
|
596
|
+
4. Narration: `check` warns per scene when a line runs past the scene's end
|
|
597
|
+
(`scene "draft": narration runs to 7.1 s, the scene ends at 6.5 s: 7.5 s fits (on the beat)`: set that
|
|
598
|
+
duration, or cut words and `speak` again), when two lines overlap, and when a line has no speech yet (run
|
|
599
|
+
`speak`). After changing a line's text, voice, speed or `voiceFx`, run `speak` again; `speak --prune` removes
|
|
600
|
+
clips no video uses. With captions, `check` also warns when a chunk shows too briefly to read (shorten
|
|
601
|
+
`narration.caption` or slow the line) and when a caption covers a scene's text (`"position": "top"`, or
|
|
602
|
+
`"captions": false` on that scene).
|
|
603
|
+
|
|
604
|
+
A clean `check` is not a finished video: it cannot see a weak frame.
|
|
605
|
+
|
|
606
|
+
## 8. Render and deliver
|
|
607
|
+
|
|
608
|
+
`npx -y beatsheet render videos/<name>.video.json --format 16:9,4:5` (about a minute per format; run it in the
|
|
609
|
+
background) writes `out/<name>-16x9.mp4`, `out/<name>-4x5.mp4` and the posters `out/<name>-16x9.jpg`,
|
|
610
|
+
`out/<name>-4x5.jpg`; the poster is baked in as frame 0. For a silent GIF per format add `--gif` (or `--gif-only`):
|
|
611
|
+
small by default (12 fps, 800 px wide, ~0.5-0.8 MB for 20 s), `--gif-preset medium|large`, `--gif-scene <id>` or
|
|
612
|
+
`--gif-from/--gif-to <s>` for a part, `--gif-loop once`; the studio's last-used GIF settings in `export.gif` are the
|
|
613
|
+
defaults. GIFs leave out the film grain (noise would make them huge); the MP4 keeps it.
|
|
614
|
+
|
|
615
|
+
Write `videos/<name>.share.txt`: 1–3 sentences, postable as-is, specific; no "excited to share".
|
|
616
|
+
|
|
617
|
+
Tell the user: the MP4 and poster paths, the video, plan and share files, one sentence on the angle, what must be
|
|
618
|
+
true on the posting day (version, surface), and how to fine-tune it themselves:
|
|
619
|
+
|
|
620
|
+
```bash
|
|
621
|
+
cd <project folder> && npx -y beatsheet studio --open
|
|
622
|
+
```
|
|
623
|
+
|
|
624
|
+
(In a checkout, build the studio first, in the repo root, once and after studio changes:
|
|
625
|
+
`npm run build -w @beatsheet/studio`.)
|
|
626
|
+
|
|
627
|
+
In the studio: pick the video, drag a scene's right edge to change its length (the end snaps to the music's beat;
|
|
628
|
+
Alt for no snap; video settings → *Snap all scenes to the beat*), drag beat markers to retime, edit texts in the
|
|
629
|
+
inspector, render both formats with the Render button. Video settings → *Look* changes the display weight,
|
|
630
|
+
entrance style, accent colour, camera push, film grain and any other token for this video (*Theme default* undoes
|
|
631
|
+
one); *Captions* turns captions on and sets their style and position; *Voice processing* picks raw or studio (then
|
|
632
|
+
*Generate speech* again). The scene inspector sets a scene's transition (kind, direction, seconds) and camera push,
|
|
633
|
+
hides its caption and edits the narration's written form.
|
|
634
|
+
|
|
635
|
+
## Common mistakes
|
|
636
|
+
|
|
637
|
+
| Mistake | Fix |
|
|
638
|
+
|---|---|
|
|
639
|
+
| Tone, message or music inferred from the brand's site and built without asking | 2. Direction: one AskUserQuestion call before the plan; a calm site can still want a bold video |
|
|
640
|
+
| Absolute times converted into many gap overrides | Durations plus default beats; override single gaps |
|
|
641
|
+
| Every scene on the default `dip`, every text on the default `fade` | Pick both from the direction: the tone's row, then the two tables in 5. Write the video || Scene durations off the music's beat (3.4 s under `upbeat-pulse`) | Rough durations, then `npx -y beatsheet snap <file>` (no beat arithmetic): 5. Write the video |
|
|
642
|
+
| Narration that reads the screen out, or "16:9" in a spoken line | A line that adds to the screen; numbers and symbols spelled as spoken ("sixteen by nine") |
|
|
643
|
+
| A narrated video for a feed without captions | `"captions": true`: feeds autoplay muted |
|
|
644
|
+
| Rendered a narrated video without `speak` | `render` stops on a missing clip: run `npx -y beatsheet speak <file>` first, commit `speech/` |
|
|
645
|
+
| Output text invented ("✓ Success!") | Copy the real string from the code, a test or a run |
|
|
646
|
+
| Rendered because `check` passed | Look at both sheets first |
|
|
647
|
+
| Only 16:9 looked at | 4:5 overflows first; check and look at it too |
|
|
648
|
+
| New scene type for what `terminal` or `statement` can show | Built-ins first (28 types: check the catalogue and the gallery); code is what the user can't edit in the studio |
|
|
649
|
+
| Every scene a stock one, though the video has a moment no built-in can draw | One scene type of its own for that moment (6. A scene type of your own): props stay editable, the picture is code |
|
|
650
|
+
| A scene that plays by itself (GSAP defaults, `requestAnimationFrame`, a CSS animation) | Seek it: a paused timeline set to `t`, redraw in `update()`; `reference/scene-techniques.md`, then `frames.ts` |
|
|
651
|
+
| A scene type picked by its name only | Look at its samples first: `stills --samples --type <id> --sheet` or the gallery |
|
|
652
|
+
| A library sound in a theme without it | Add `"fallback": "<standard id>"` to the cue |
|
|
653
|
+
| Theme changed for one video | The theme is shared; change the video |
|
|
654
|
+
| A scene type, variant or track the project's `rules` don't allow | Read `rules` in `beatsheet.config.ts` first; `check` lists each broken rule |
|
|
655
|
+
| `font-size:64px` or `font-weight:600` in a new scene type | A type role and a weight token (`var(--bs-text-heading)`, `var(--bs-weight-display)`) |
|
|
656
|
+
| A claim that is true only on a beta or an undeployed surface | Name it in the plan and the report; the project README says how to check |
|
|
657
|
+
| A shell `$` prompt in front of an API or MCP call | `message` or `output` step instead of `command` |
|
|
658
|
+
| `check`/`stills` can't start a browser | The error names why Chromium's download failed (often no network): run the command again once that is fixed (it tries the download again), or set `BEATSHEET_CHROMIUM` to a Chromium binary |
|