DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to render a title card to MP4 from TypeScript with Framefields

Write one TypeScript file that builds a 1080p60 title card and renders it to a hardware-encoded MP4.

Short answer: Confirm Node.js 22 or newer is installed and that your machine has a WebGPU-capable GPU; then 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. All steps.

  • Top pick
  • Content
  • Intermediate
  • 30 minutes
  • From the README
  • Claude Code
  • Codex
  • Cursor

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

  1. Confirm Node.js 22 or newer is installed and that your machine has a WebGPU-capable GPU.
  2. Run pnpm add framefields
  3. 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.
  4. Add a LayerAnimation with fadeIn and fromTo entries, then call comp.renderVideo with outputPath set to output/hero.mp4 and quality set to high.
  5. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer