Repository navigation
v0.3.0
reelscript check. Runs a script's whole timeline against the real app with nothing captured or encoded, in about a second for a browser demo, and fails with the script line of the first broken step. Made for pull requests: the demo breaks in CI when the UI changes under it.- Errors point at your script. Every failure from
renderorchecknow ends with the line that caused it, likeat demo/signup.ts:14:19 (cursor.moveTo). - Follow camera.
camera: "follow"zooms toward clicks and the typing caret on its own, starts moving before a click lands, keeps the cursor in view, and eases out when things go quiet.{ scale, holdMs }tunes it;zoom.to()still takes over when you want a specific shot. - MCP server for coding agents.
reelscript mcpgives Claude Code and other MCP clients the docs, page inspection with ready-made selectors,check, frame previews as images, and rendering, so an agent can write and iterate on a demo itself. demo.waitFor(selector, { window, timeout, settle })holds, off camera, until something appears, anddemo.call(fn)runs your own code at a point in the timeline, for changes the page can't cause itself.cursor.click({ duration: 0 })takes no video time, so a followingwaitForcuts straight to the result.zoom.to(target, { within: "window" })keeps a zoom inside the window, and a zoom that replaces another starts from wherever the first one got to.- Terminal:
terminal.run(cmd, { prompt: false })andterminal.print()for output that keeps coming, recordings made elsewhere as timed events, a fixedcolsandrows, andlineHeight. - Desktop:
addressrewrites what the browser's address pill shows (blank for local files, trimmed with an ellipsis when long), andmenubarsets the menu bar's app name and clock or removes it. - Pages get clipboard access; finished CSS animations stay finished under the frame-stepped clock.
Unreleased
-
demo.waitFor(selector). Holds the camera until the selector is visible while the page's clock keeps running, so a page that loads, fetches or animates gets the time without its loading being filmed. No video time passes. -
demo.call(fn),terminal.print(text)andterminal.run(cmd, { prompt: false }). A function run at a point of the timeline, for a change the page should see happen then, such as another client's edit; and terminal output split around it, with no prompt in between. -
Output recorded elsewhere.
terminal.runandterminal.printtakeevents, timed chunks of output with their escape codes, played like a recording;terminal.open({ cols, rows })fixes the terminal's size in characters, andlineHeightsets its line spacing (1 joins block characters, as in most terminal apps; the default stays 1.3). Together they play back a full-screen program (an agent's TUI, say) recorded at that size withscript -ror asciinema. Those events are written as they are, as a terminal writes a program's output: a bare line feed moves down a row and keeps the column. Other output still gets a carriage return before each line feed. -
cursor.click({ duration })andwaitFor(selector, { settle }). A click that takes no video time, followed by waitFor, cuts from the click straight to the page it led to;settleruns the page's clock a little longer, off camera, for what the page does once the target shows. -
zoom.to(target, { within: "window" }). Keeps the zoomed view inside the target's window, so the desktop behind it never shows at the window's edge. -
menubaroption.createDemo({ menubar: { app, clock } })sets what the macOS menu bar says;menubar: falseleaves it out and moves the window up into its place. -
Fixed: animations replayed. A CSS animation with a fill mode stays in
document.getAnimations()after it ends; the page clock took it for a new one every frame and started it over, so titles kept sliding in and anything with an enter animation flickered. -
addressoption.createDemo({ address: (url) => ... })rewrites what the address pill shows, so a dev server can appear as the public site. The pill now follows in-page navigation too, instead of the address the window was opened at. -
The page context is granted clipboard read and write, so Copy buttons in the page under demo work as they do in a real browser.
-
Address pill. Blank for
file://pages (title cards, fixtures), and a long path is cut at the end with an ellipsis instead of being clipped on both sides.