Who it is forA social media video editor or motion designer who needs short kinetic typography cut to music and does not want to keyframe by hand.
The problemMatching each text move to a beat in a desktop motion tool is slow, and small timing drift shows up in the final edit.
The outcomeA rendered MP4 in which text entrances and motion land on frame-accurate beat positions from the audio.
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
- Run
pnpm add framefields - Load an audio track and create a BeatGrid from it, using the Audio & Procedural SFX section of the Framefields.dev/docs guide.
- Create several Layer.text entries and give each a LayerAnimation with fromTo or fadeIn keyframes timed to beat positions.
- Add the composition to a Composition with a matching fps and durationFrames, then call renderVideo with an output path. (inferred, check the README)
- Play the output MP4 and check that each text move starts on a beat.
Prompt for your agent
In the framefields repo, build a composition that places text from <lyrics or headline list> on the beats of <audio file>, animating each entrance with LayerAnimation, and render it to output/<name>.mp4. Expected output: an MP4 whose text moves start on beat frames. Verify by checking the BeatGrid timestamps against the keyframe start frames.
Caveat. The README names BeatGrids but does not show their API, so read the audio section of Framefields.dev/docs before writing the timing code.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for gatewai-dev/framefields and "Build beat-synced motion graphics for a short video"
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