Who it is forA developer or marketer who needs a quick branded title or intro card and already works in a Node.js project.
The problemMaking a simple animated title card in a desktop editor takes manual timeline work for every version.
The outcomeAn MP4 file at output/hero.mp4 that you can regenerate by running the script again after editing text or colors.
What you need first
- Node.js 22 or newer
- pnpm, to run `pnpm add framefields`
- A GPU with WebGPU support (macOS Metal, Linux Vulkan, or Windows D3D12)
- A coding agent such as Claude Code, Cursor, or Codex, if you want the agent to write the composition
Steps
- Confirm Node.js 22 or newer is installed and that your machine has a WebGPU-capable GPU.
- Run
pnpm add framefields - Create a script that builds a Composition with width 1920, height 1080, fps 60, and a Layer.box with Layer.text children, following the README quickstart.
- Add a LayerAnimation with fadeIn and fromTo entries, then call comp.renderVideo with outputPath set to output/hero.mp4 and quality set to high.
- Run the saved script with Node.js, for example
node render-hero.mjs, then open output/hero.mp4 and check the text, colors, and entrance motion. (inferred, check the README)
Prompt for your agent
Using the framefields repo, write a TypeScript script that builds a 1920x1080, 60 fps composition with a title card reading <title text>, renders it with renderVideo to output/<file name>.mp4, and runs it. Expected output: an MP4 at that path. Verify the file exists and that the printed Rendered to path matches it.
Caveat. The README quickstart is the only confirmed code path, so test the render on a short composition first to confirm your GPU and Node.js setup works before building longer videos.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for gatewai-dev/framefields and "Render a title card to MP4 from TypeScript"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer