livereel

https://github.com/user-attachments/assets/23e46e5f-8c42-454d-b66c-8a264813f884
Film your live web app as a directed short: a camera that travels in a window that leans, a light on the block
that matters, a cursor that moves like a hand, captions that come up word by word. The app is real — clicks,
typing and its server's answers happen in it — and every frame is shot on a clock of the film's own, so a slow
server costs the film nothing.
A film is a TypeScript file of steps. An agent writes it for you: livereel comes with a skill that teaches Claude
Code to direct one.
Why not a screen recording
- The film keeps its own time. A frame is a moment of the film, however long the browser took to draw it:
waits, slow answers and loading vanish, and the camera moves as smoothly at 60 frames a second, or the rate the
film names, as it was written. Where the camera or a title, code or the terminal moves fast, a frame is shot
several times along the way and blended, as a film camera's open shutter blurs what moves.
- The page is live. livereel films the app itself, in Chromium, not a copy of it: a click is a real click and
a reply is the server's.
- It is directed, not cut. The camera frames a block by its selector, the light follows what the caption
talks about, and the film is written in a director's words:
camera.onto, light.to, caption.show.
Quick start
It needs Node 22.20 or later and ffmpeg on the path. A film is an ES module: the project's package.json says
"type": "module", or the film's file is named .mts. livereel runs a film with its types stripped; it checks
what the film hands each of its functions, as the film is defined and its steps as it is served, and refuses a
value of the wrong kind where it stands (camera.onto's air is "80": it is a number). The editor or the project's
type checker finds more.
npm i -D livereel
npx livereel setup # the browser a film is shot in; checks ffmpeg
npx livereel shoot film.ts --out out --sheet # out/film-square.mp4, and a frame a second in out/film-square-sheet.png
On Linux the browser may lack system libraries it needs; npx playwright-core install-deps chromium installs
them, as livereel's CI does.
film.ts, a whole film of a page on the web:
import { camera, caption, defineFilm, hold, light, play } from 'livereel';
// The line that says what the page is for
const LINE = 'p[lang=en]';
export default defineFilm({
formats: { square: { frame: { width: 1080, height: 1080 }, screen: { width: 1440, height: 1080 } } },
address: 'https://example.com/',
ready: (context) => context.page.locator(LINE).waitFor(),
steps: () => [
play({ seconds: 1.2, moves: [camera.onto(LINE, { air: 120 }), light.on(LINE), caption.show('A page, filmed')] }),
hold({ seconds: 1.5 })
]
});
examples/example-com.ts is a longer film, in acts, square or wide; examples/livereel-promo.ts, the film at the
top of this page, serves an app of its own by its own command and clicks it for real;
examples/livereel-recipes.ts sets a block of that app apart in eighteen ways, an act each — lifted, grown, under
a lens, in layers, spun — each a few moves of pieces, outlines, a lens, groups and the window;
examples/livereel-flights.ts flies the eye low over it, a run toward its Refresh button and a dive along its row
of cards.
For agents
The reel skill, skills/reel/SKILL.md, teaches an agent to direct a film: the story
first, then a storyboard, then the steps, checked frame by frame on contact sheets and stills. Install it with
npx skills add vrppaul/livereel, or as a Claude Code plugin:
/plugin marketplace add vrppaul/livereel
/plugin install livereel@livereel-marketplace
The command line
| Command | |
|---|
livereel shoot FILM_FILE --out DIRECTORY | the film whole, as a video: film-square.mp4 |
livereel clip FILM_FILE --out DIRECTORY --from SECONDS --to SECONDS | a span of the film, silent, to see a few moments move: film-square-12-15s.mp4 |
livereel still FILM_FILE --out DIRECTORY --at SECONDS | one frame at a moment, without the video: film-square-1.5s.jpg |
livereel set FILM_FILE | the film's app shot once ahead of it, beside the film's file: film-square.set/ ("The set") |
livereel setup | installs the browser a film is shot in, and looks for ffmpeg |