GenMotion
A desktop video studio you point at a coding agent. Describe a video; the agent
writes animated scenes as React/TSX, you preview them frame-accurately, arrange
them on a timeline, and export an MP4 — all on your own machine.
The agent is your Claude Code or Codex CLI, signed in with your own
credentials. There is no model subscription to buy here, and no prompt leaves
for a server we run.
Download for macOS · Apple silicon,
signed and notarized. Or from a terminal:
curl -fsSL https://genmotion.dev/install.sh | sh
That installs the app and, if Node 22+ is installed, the genmotion command
from npm: genmotion . opens the app with the current folder shared with the
agent, genmotion init starts a video from the terminal, and genmotion upgrade pulls the next release of both. The app's account menu installs the
same command. There is one genmotion, from the npm package @genmotion/cli; the app no longer
writes a launcher script of its own.
Or skip the app: the CLI
The same studio, renderer and agent tools run from any terminal, with any agent:
npx @genmotion/cli init my-video && cd my-video && npm install
npm run dev # live studio
npm run render # exports/my-video.mp4
A new project ships AGENTS.md, CLAUDE.md, .mcp.json and a skill, so
Claude Code, Codex or Cursor opened in the folder can build the video
straight away. See packages/cli for the commands and the MCP
tools. examples/three-starter is a ready-made
starter repo (it renders in CI), and
docs/research/hyperframes-remotion.md
compares the approach with HyperFrames and Remotion.
Architecture
apps/
desktop/ Electron studio: local project folders, your own agent,
a loopback API speaking the hosted routes → :4100
web/ Next.js marketing site + account & billing → :4000
api/ Hono API (auth, billing, desktop sign-in,
events, release downloads) → :4001
packages/
motion/ Frame-deterministic animation runtime (useCurrentFrame,
interpolate, spring, Sequence, TextAnimation, GSAP-via-seek)
player/ Composition player — the same React tree drives the editor
preview AND the headless render page
compiler/ TSX → component. esbuild-wasm in the browser, native esbuild
on the server (same pinned version), scoped require shim
project/ A project as a folder on disk: manifest, scaffold, scene
bundler, validation
ai/ The scene-authoring guide and text-effect catalog the agent
is given (`@genmotion/ai/prompt`)
db/ Drizzle schema + client (Postgres)
storage/ S3 wrapper (MinIO dev / R2 prod)
shared/ Types + timeline frame math
How a scene works. The agent writes a TSX module that default-exports a
React component. It may import only react, @genmotion/motion, gsap, and
lucide-react. Everything renders as a pure function of the current frame, so
the preview, scrubbing, and the export all agree pixel-for-pixel.
How export works. An offscreen BrowserWindow at the composition's exact
pixel size. Each frame drives window.__gm.setFrame(n) and waits on a
determinism barrier — React committed, fonts ready, every registered asset
loaded — then the JPEG capture is piped into a bundled ffmpeg. Timeline audio is
muxed by the same ffmpeg. No render queue, no upload, no quota.
Running the desktop app from source
Prereqs: Node ≥ 22, pnpm, and either the Claude Code
or Codex CLI installed and signed in.
pnpm install
pnpm --filter @genmotion/desktop dev
That is the whole loop — the desktop app needs no database, no object storage,
and no API key. It signs in against the hosted API by default; point it at a
local one with GM_CLOUD_API_URL / GM_CLOUD_WEB_URL.
To build a distributable .app:
pnpm --filter @genmotion/desktop package # unsigned, for this machine
pnpm --filter @genmotion/desktop release:mac # signed + notarized (needs certs)
Releases are cut by CI and versioned with Changesets:
- With a change worth shipping, run
pnpm changeset, pick @genmotion/desktop
(and any npm package the change touches), choose the bump, and describe it.
Commit the generated file with the change.
- On main,
.github/workflows/release.yml opens a "Version packages" PR that
bumps apps/desktop/package.json and writes apps/desktop/CHANGELOG.md.
- Merging that PR tags
desktop-v<version> and runs
.github/workflows/desktop-release.yml, which builds, signs, notarizes,
staples, verifies, and publishes the GitHub release with that version's
changelog as its notes, then mirrors it to R2.