Terminal
Terminal/Skill
Makes a 1080x1080 video of a Strudel live-coding track, where the code lights up on each note it plays.
By HeyGen
Works with
npx skills add heygen-com/hyperframes-community-skills --skill prod-by-claudeTurn a Strudel track into a live-coding video. The music is rendered offline from the code, and the video is driven by Strudel's own note events, so every highlight lands on its note.
.strudel.js), or a brief to compose one. Compose with
references/composing.md. With no track, start from
assets/example/track.strudel.js (synth-only, no samples).hyperframes@0.8.70 (run through npx --yes).tools/package.json pins everything else: @strudel/web 1.3.0 (AGPL-3.0, installed from npm,
not bundled here), puppeteer-core 25.12.0, @puppeteer/browsers 3.2.3, and the OFL fonts
@fontsource/jetbrains-mono 5.3.0 and @fontsource/rubik-mono-one 5.3.0.CHROME=<path>.node <skill>/scripts/new-project.mjs <project-dir> [track.strudel.js]<project-dir>/video.json: bars, builds, drops, themes, storm parts, signoff
(references/video.md, references/themes.md).
The template already matches the example track, so skip this step when using it.<project-dir>/tools, install the pinned tools: npm install<project-dir>/tools, if CHROME is not set, fetch Chrome for Testing:
npx --yes @puppeteer/browsers@3.2.3 install chrome@149.0.7827.22 --path .chrome<project-dir>/tools, record: node record.mjs .. It takes about 5-7 minutes for 32
bars (give it a 10 minute timeout), prints levels per 4 bars and warns on clipping. Fix the
track and record again until the drops peak at or below -2 dBFS with no clipped samples.<project-dir>/tools, build the video data: node build-data.mjs .. It prints the
snapshot command for step 7.<project-dir>, run npx --yes hyperframes@0.8.70 check ., then the printed snapshot
command, and look at every frame (what to look for: references/video.md).<project-dir>, render locally when the user asks for the video:
npx --yes hyperframes@0.8.70 render . -o renders/video.mp4
HyperFrames cloud render (npx --yes hyperframes@0.8.70 cloud render .) spends credits on the
user's account: use it only after the user explicitly agrees.If the track changes, repeat steps 5-7. If video.json changes, repeat steps 6-7.
assets/bgm.wav (the mix), assets/stem-<part>.wav (the scope part), data/events.json
(every note with its code locations), data/events.js (what the composition reads).renders/video.mp4, 1080×1080, 30 fps, about pre + bars × 240 / bpm + 4.6 seconds with a
sign-off.<project-dir>. build-data.mjs rewrites the data-duration and
audio data-start attributes in index.html.npm install (npm registry), the Chrome for Testing download (about 150 MB from
Google's storage), and GSAP from cdn.jsdelivr.net when the composition loads. snapshot
uploads frames to a hosted captioning model unless given --describe false, so always pass it. Recording runs on
127.0.0.1 only and fetches nothing unless the track itself loads samples (then from the sample
URLs the track names).record.mjs exits 0, lists every part, and reports no clipping.check passes with 0 errors. canvas_overflow info notes for code lines below the frame are
expected.pre,
graffiti in each drop, the decode after each drop, the sign-off at the end.pre seconds, and the video ends in black.The music written in Strudel belongs to its author; Strudel's AGPL covers the software, not the tracks. Built-in synths need no clearance. Samples loaded by a track are other people's recordings: use only sounds the user owns or has cleared.