elah
Write motion as code. It stays editable.
Open source. Renders in the browser. New in 1.0: the motion layer.

Website · Docs · Playgrounds · elah for Claude · Changelog · Discord

Program · a video Claude wrote, playing on the engine. Preview, then Edit: clips, keys and the properties panel. Export MP4 runs in the same browser tab. Watch the full clip.
elah 1.0 is out: the motion and programmatic layer. Read the changelog →
You write motion as code, or a model does, and elah converts it into ordinary clips and keyframes on a timeline. You can open it, change any key, and export an MP4 in the browser: no upload, no account, no key. Any aspect ratio.
| 01 · GitHub stars | 02 · npm downloads | 03 · Packages · Apache-2.0 | 04 · Release |
|---|
 |  | 5 |  |
All of them produce the same Project document, so a video an AI generates opens in the timeline with real keyframes and can be edited by hand.
SC 01 · WRITE · Write · Timeline · Export
Write it like a web page, edit it like a timeline, render it in the browser.
1 · write — the motion lives in a data-motion attribute:
<section id="tc" data-scene="title-card" data-at="0" data-duration="4">
<div id="bar" data-motion="in: slide-in-left 0.5s @0.1"></div>
<h1 id="title" data-motion="split: word 3f; each: y: 0.5 -> 0 0.5s quad-out; each: opacity: 0 -> 1 0.5s quad-out">Quarterly results</h1>
<p id="sub" data-motion="in: fade-in 0.6s @0.9">Revenue up 24 percent on the year</p>
</section>
2 · timeline — it lands as native clips and keyframes. Each key has an id, a frame, a value and an easing.
3 · export — MP4 export runs on your own machine in Chrome or Edge. No render server, and nothing is uploaded.
Two ways to write it, both landing as the same project:
HTML/CSS scenes (@elah/core/html) — author in ordinary HTML and CSS animation, convert to native clips and keys:
import { validateScene, sceneToClip } from '@elah/core/html'
validateScene({ html, css }) // refusals name the supported substitute
sceneToClip(measuredScene, { fps: 30 }) // → one compound clip of real keys
VideoSpec (@elah/core/spec) — seconds-based JSON aimed at models. Problems come back as path-addressed issues instead of throwing, so a generator can correct itself:
import { buildVideo } from '@elah/core/spec'
const { project, issues } = buildVideo({
version: 1,
format: { width: 1920, height: 1080, fps: 30 },
duration: 6,
design: { colors: [{ name: 'bg', value: '#0b1020' }, { name: 'ink', value: '#ffffff' }] },
background: '$bg',
elements: [
{ id: 'title', kind: 'text', at: 0, duration: 3, text: 'Ship it', font: '$sans', enter: 'blur-in' },
],
})
// issues: [{ path: 'elements[0].font', message: '…' }] — never a throw
It expands 17 motion components and 6 motion systems. Real inputs to read: artifact/samples/ (launch, data story, logo, title card, camera moves, sound cues).
layProject(project, engine) drops either onto a live editor as a single undo step. @elah/core/ops gives an agent 57 typed ops to edit an existing project instead.