Projects / 09
onimite
Make videos by writing a script, or by asking your coding agent to. One small program turns the script into an MP4, plays it while you edit, and tells you what's wrong with it.
- Odin
- Lua 5.4
- MIT
- 24–29 MB installed
- GPU or --software
- macOS · Linux · Windows
Examples
All seven libraries
French touch in a ray-traced club
A generative poster
A 3D scene
Video in masks, text and shaders
3D physics and ragdolls, with sound
24 videos, each one Lua script, with its render time. See all 24 →
On a screen, for good
onimite preview board.lua --live keeps a script on a screen as signage, on the system clock. Replace a data file beside it and the board reloads in place, and track_changes tells each row what it was before, so only what changed moves.
Departures · 78 s
Production line · 62 s
Portrait · 78 s
Between a title and an end card, each film is one uncut, real-time take of preview --live: the board's window recorded alone, full screen on a screen of its own, while a script replaced its files with sed, jq and mv, or, for the production line, a stand-in for a PLC bridge rewrote line.json every 2 s. The camera closes in on each change. The typing and the bridge's log over the board are drawn by onimite from the run's own log, each command typed so it ends when it really ran; the stderr line is the board's own. The two departures films are separate takes, so their clocks read different times. The boards are examples/departures and examples/production_line as v0.0.77 released them, run by a build made just before its tag; the films and their music (composed with song{}, a split-flap kit as the drum machine) are onimite renders.
Install it in one step
In Claude Code
/plugin marketplace add defnotmid/onimite
/plugin install onimite@defnotmidThe skill and the MCP server in one step; the skill installs the binary the first time it needs it.
Anywhere else
curl -fsSL https://defnotmid.com/install.sh | sh
irm https://defnotmid.com/install.ps1 | iex # WindowsOne binary, checked against the release's SHA256SUMS.
Stay current: onimite update checks the latest release, runs it once and swaps it in.
No Node.js, no Chromium, no ffmpeg, no Python. What each platform needs besides:
- macOS 11+, Apple Silicon: nothing else: libcurl, zlib and the frameworks it uses come with macOS
- Windows, x86_64: nothing else: only system DLLs beside the two it ships
- Linux, x86_64: glibc 2.34+, libcurl and zlib from your distribution; Vulkan for the GPU, or --software without it; for H.264 or H.265 MP4, Vulkan Video or else the system's FFmpeg (libavcodec); AV1 needs neither
Downloaded on first use, only if a video asks: say()'s voices (ONNX Runtime, the speech model, the word aligner and a first voice: 835–866 MB; each other voice 4–8 MB more) and odawg's sample sets.
Why onimite
10–12 MBto download, nothing to set up
v0.0.69 for Linux is 11.8 MB as downloaded and 29.1 MB unpacked (macOS 10.5 and 24.2 MB, Windows 10.8 and 26.6 MB). Before the first frame, Remotion 4.0.539 puts 680 MB on disk (Node.js, 254 packages, Chrome Headless Shell) and fframes 1.3.0, 3.7 GB (the Rust toolchain, 309 crates, the first build), measured on Linux.
Where it loses: Remotion gives you React and the web platform, HTML, CSS and npm; onimite gives you Lua 5.4 and its own drawing API.
2.2×faster than fframes, on 19 of 21
The median of 21 renders of fframes' examples and their onimite ports (the same videos), up to 5.7× (conference). The tiktok example renders in 6.44 s against fframes' 30.8 s, with 1.68 s of CPU against 592 s, and the two-minute saga's 6852 frames at 1920×1080 render in 18.8 s.
Where it loses: fframes wins svg_in_3d (onimite takes 1.43× as long) and hello_world (1.24×). We haven't benchmarked Remotion's render speed.
0.19 sto see any frame
onimite frame shows any frame of the two-minute saga as a PNG in 0.19 s, and inspect checks a frame every quarter second and the first frames after each cue and scene start, 588 of its 6852, in 3.07 s (all of them with --all-frames in 7.53 s) for missing media, clipped or overlapping text, cue drift, sounds off the beat and physics problems, naming the script line behind each. One plugin install gives Claude Code the skill and every command as an MCP tool, with frames returned as images; every command speaks --json with stable error codes.
Where it loses: inspect takes seconds, not a fraction of one: it renders the song part by part beside the mix for odawg's balance checks, 5.08 s of CPU. The one-step plugin is Claude Code's; Codex and other agents install the skill on its own, and Claude Desktop's bundle isn't on Linux.
-14.0 LUFSmusic from data, measured
song{} composes on odawg: six CC0 sample sets, programmed synth voices, 808 and 909 drum machines modelled from their circuits, a 303-style acid bass, buses, returns and sidechains, automation lanes and true-peak mastering. Bring your own samples, SFZ instruments and styles. The skill has the agent choose each video's genre, key, tempo, meter and feel after a named reference track, and say why, instead of a default A-minor loop at 120–128 bpm. examples/disco, on four fetched CC0 libraries, mixes to -14.0 LUFS at -2.0 dBTP and renders its ray-traced club at 430 fps on an RX 9070 XT (1280×720, 4571 frames in 10.6 s), and audio analyze reports loudness, bands per bus and masking.
Where it loses: Your own samples are WAV or FLAC for now, a fetched library must be CC0 or CC-BY and pinned before it plays, and there's no WebM or alpha video output.
Speed, memory and sizes: onimite's bench/facts.json at 681900f8, which tools/bench.sh facts measures on each release's published binary, checked against its SHA256SUMS: onimite v0.0.69 for 13 re-measured figures, v0.0.68 for the rest, against fframes v1.3.0, 2026-10-28, on a Ryzen 9 9900X3D + RX 9070 XT under Linux, the median of 3 runs after a warm-up. Each run waited for an idle machine, and the 70 that overlapped other work were run again. The headline is the median of its 21 wall-time ratios. For 10 of fframes' examples the build compiles FFmpeg from source (FFMPEG_FORCE_BUILD=1, as its README says), the prebuilt one not linking against this machine's x264. Sizes: the v0.0.69 archives as downloaded and unpacked, and what Remotion and fframes install on Linux (tools/bench.sh setup); for fframes, installed in ubuntu:22.04 with the packages its README lists, whose x264 (0.163) its prebuilt FFmpeg links against; with a newer x264 (0.165 on Arch) the first build doesn't link and FFmpeg compiles from source, a bigger first build.
What it is
A video is a video.lua file: scenes, text, shapes, images, clips, shaders, music and voice, and how they move. onimite renders it to an MP4 on all your cores and the GPU, plays it in a window that reloads every time the file is saved, and checks it: frames and contact sheets as PNGs, loudness numbers, and a list of problems such as clipped text, missing fonts or sound off the beat.
That last part is why it works for coding agents. An agent can't watch a video, but it can read what onimite reports about one, so it can write a video, look at it, find what's wrong and fix it, the way it does with code.
Add to Claude Desktop
No terminal needed. Download the bundle for your computer and open it: Claude Desktop installs onimite as an extension, with its own copy of the program and the know-how to use it, so you can ask for a video in a plain chat.
macOS 11+ (Apple Silicon) ↓Windows (x86_64) ↓
There's no Linux bundle, since Claude Desktop isn't on Linux; use the install command and a coding agent there.
01 Install the Filesystem extension
Claude writes your video's script as a file, so Desktop needs its Filesystem extension (Settings → Extensions) with access to the folder you'll pick next.
02 Open the onimite bundle
It asks for a work folder (Documents/onimite unless you choose another); your videos go there. Give the Filesystem extension the same folder.
03 Ask for a video
Claude reads onimite's guide first, writes the script, checks it and renders the MP4 into your work folder.
Updates: the extension checks for a new release when Desktop starts, and Claude tells you when there is one. Ask Claude to update it, then quit and reopen Desktop. Installed v0.0.5 or older? Download the bundle again once; those can't update themselves.
The bundles aren't signed as extensions, so Desktop may call them unverified when you install. The macOS program inside is signed and notarized by Apple; the Windows one isn't code-signed.
Make videos with your agent
01 Install the skill
onimite-video is a skill that teaches an agent the script API, how to design motion and sound, and how to check its own work.
npx skills add https://defnotmid.com # or, in Claude Code /plugin marketplace add defnotmid/onimite /plugin install onimite@defnotmidnpx skillsinstalls it for Claude Code, Codex, Cursor, OpenCode and the other agents it knows. Any other agent that can run commands: ask it to install the skill at that link into its skills directory.02 Ask for a video
Say what you want in plain words, with any media you have in
media/:Make a 30-second launch video for my app: dark background, our logo from media/logo.svg, three feature cards on the beat, a synthesized soundtrack, and word captions for a voice-over that says the tagline.
03 It writes and checks the script
The agent writes
video.lua, renders frames and contact sheets to look at, runsonimite inspectandaudio analyze, and fixes what they flag before it hands anything over.04 Watch it, ask for changes
onimite preview video.luaplays it with sound and reloads as the agent edits. Say what to change; the finalonimite renderwrites the MP4.
The skill on GitHub ↗Script API reference ↗
Installing onimite yourself is one command (the install tab below; already installed? runonimite update), with prebuilt releases for macOS 11 or later on Apple Silicon (signed and notarized by Apple), Linux x86_64 (needs glibc 2.34+ and libcurl) and Windows x86_64 (not code-signed). Anything else builds from source, which needs the Odin compiler.
By the numbers
- faster than fframes
- 2.2×
- median of 21 renders, faster on 19; up to 5.7× (conference)
- of CPU for the same video
- 1.68 s
- tiktok example: fframes uses 592 s
- peak memory
- 120 MB
- marketing example: fframes peaks at 19 GB
- to install, all of it
- 24–29 MB
- v0.0.69 with SDL3 (macOS 24.2, Windows 26.6, Linux 29.1); fframes' toolchain, crates and first build: 3.7 GB
onimite's bench/facts.json, 2026-10-28: onimite's release binaries (v0.0.69 for 13 re-measured figures, v0.0.68 for the rest) against fframes v1.3.0, median of 3 runs after a warm-up, each waiting for an idle machine, on a Ryzen 9 9900X3D + RX 9070 XT. Install sizes: the v0.0.69 release unpacked, and fframes' and Remotion's as installed on Linux.
What's in it
01All your cores
Frame builders each load the script into their own Lua state and record frames in parallel; one thread draws them on the GPU in order, and songs render as one stream on a pool of their own. The output, sound included, doesn't depend on the thread count.
02Built for agents
frame, strip, onion and snapshot show exactly what's on screen; inspect flags missing media, clipped text, sync drift and script errors. Every command speaks --json with stable error codes, and a skill teaches Claude Code or Codex to use it.
03Voices with word timings
say() speaks a line through ottis in one of 27 built-in voices, or in a voice cloned from a 5 to 30 second recording in media/ (a phone voice memo works); clone only your own voice or a speaker's who agreed. Every word's start and stop comes back, so captions, cues and a mascot's mouth land on the word. A script's new lines are made together before anything plays, and cached on disk by content.
04Everything ovg draws
Paths, text, images, SVG and Lottie (merge paths included) with per-id overrides, masks, clip paths, blend modes and every SVG filter primitive, plus shaders through oksl: SkSL, Shadertoy or GLSL ES, in passes that can read their own last frame or a 3D layer's depth from the same render (haze, depth of field). Jumping to a frame draws it alone unless a pass reads its last frame (one disco frame: 2 min 16 s before, 0.45 s now, the same pixels); feedback passes still replay the frames before it. Every fill and stroke, text included, is drawn on the GPU from its curves with exact per-pixel area coverage and no tessellation, a run of opaque text in one draw. Text is shaped by oglyph, HarfBuzz's rules in native Odin, and takes a font's OpenType features as CSS font-feature-settings does (a slashed zero, stylistic sets, ligatures or kerning off, "1/2" drawn as ½), and an SVG's textPath runs along its path. Text, an SVG or path data becomes one outline that draws, morphs into another (letters into logos), collides as a physics body and extrudes into a solid. Outlines combine as a vector editor's pathfinder does, keeping their curves: union, subtract (text cut out of a card, holes punched), intersect, exclude, or divide into every region they make, each piece knowing which shapes it lies in; a card minus "SALE" minus a circle takes 0.065 ms a call.
053D in three.js terms
view3d{} draws cameras, lights, meshes, capsules and tubes through moving points among them, with standard, physical (glass that refracts what's behind it, clear coat, sheen), toon, shadow-catcher or your own GLSL shader materials (any of them additive, for glows and atmospheres; yours can read the shadows) and cartoon outlines, animated glTF models with skeletons, blend shapes and their clear-coat, sheen and glass layers, 3MF, OBJ and USD models (.usdz and binary .usdc) whose parts a script hides, moves or re-materials by name and attaches meshes, models and particles to, deterministic particles (fire, sparks, smoke, bursts, exhaust left behind by a moving physics body), 2D labels on 3D points that hide pixel by pixel behind nearer geometry, lens flares that fade as a planet covers the sun, textures projected onto models without uvs (triplanar), a colour per point on lines and points, outlines extruded into bevelled solids or drawn flat from their curves (transparent, each edge pixel takes the exact area covered: about 1/255 of error against 4× MSAA's 13–28), video clips as a mesh's texture (a TV screen, a cube's faces), with shadows from directional and spot lights, fog, tone mapping, bloom and environment maps (.hdr too, or a daylight sky baked from where the sun is), on the GPU or the CPU, composited like any other layer. Meshes, instances and models can sit between two points or face one, and a shader can style each instance of one mesh.
06Physics in 2D and 3D
physics{} (Box2D) and physics3d{} (Box3D) simulate rigid bodies once at load, and every frame samples them. Kicks change a body's speed at once; thrusts push it over time, at a point and in its own frame or the world's (an engine). In 2D, a body can be several shapes or an outline, so letters and logos collide by their own shape, holes and all. In 3D: boxes, spheres, capsules, cylinders, cones, convex hulls and meshes from your models, hinge, ball, slider, weld, rod, rope and spring joints, kicks and kinematic movers, drawn in view3d{} with many bodies of one shape in one instanced draw. Contacts come with times and speeds, for impact sounds.
07Music from data
song{} and sound{} are odawg, a music engine: sampled instruments from six CC0 sets (an upright piano, an FM electric piano, a soft grand, a jazz bass, a string ensemble and a jazz drum kit, downloaded on first use), TR-808 and TR-909 drum machines modelled from their circuits, a TB-303-style acid bass, eleven programmed synth voices (pad, pluck, lead, bass, reese, stab, brass, FM keys and bell, clav, organ) set to one reference level, so swapping one keeps a part's level, buses, shared returns and sidechains, and mastering with true-peak limiting, measured as EBU R128 says, all in Tone.js's vocabulary. A song is data: sections, styles, chords and parts, with markers that become cues; sound{} makes one-shot effects. Both play by name like any clip and read back on the video clock (score.time, score.hits, score.snap), so cuts land on the notes that are really there. Automation lanes move filters, fades, sends and the master over song time (linear, exp or step), and a scene reads a lane through the engine's own curve (score.automation), so light follows a filter sweep; a melody's repeats can vary (transposed, inverted, reversed, thinned, filled) and a pickup leads a phrase in. Instruments, drum machines and styles are rows of data: the skill's library/ holds the classic instruments, sound effects, the 303, the 808 and 909, seven styles and the synth voices as JSON to copy into media/ and change, with reference songs in eight genres (funk, a 3/4 jazz waltz, a 6/8 ballad, boom bap, D Dorian, drum & bass, synthwave, lo-fi), and onimite show instruments prints the built-in ones. A song can also bring its own instruments: sample sets from WAV or FLAC files in media/ (drum pads, or pitched zones with velocity layers, round robins and loops), SFZ files as instruments of their own, playing release triggers, keyswitches, groups, envelopes, filters, LFOs and velocity curves as the file defines them (any opcode it doesn't play is named with its use count and the file and line of its first use), style files, or someone else's CC0 or CC-BY library named by https URL, which plays once onimite audio pin has fetched it and pinned every file by SHA-256.
08Sound that's measured
Tracks with gain, pan, fades, effect chains written as a song part's are (a high-pass, a reverb), voice ducking and a master limiter; audio analyze reports LUFS, LRA, true peak, clipping and silence per scene, with crest, stereo width, correlation and 31 third-octave bands for the mix, each scene and each bus, and where buses crowd each other in a band; --waveform draws a spectrogram under the waveform. audio onsets finds the beat, and audio_energy() hands every frame its loudness and low, mid and high energy to animate to.
09Footage, cut and joined
scene{ clip = { "take.mp4", from, to } } is a cut of a file with its sound, and a list of them is an edit: clips of other sizes and frame rates letterbox, and a fade, slide or wipe crosses inside the cut while the sound crossfades. speed plays a clip in slow motion, fast or backwards, picture and sound together, the sound tape-style, and a clip played backwards or shown at several times at once costs about what playing it forwards does; the picture can fade while the sound runs on (an L-cut), the sound can start early (a J-cut) or keep a clock of its own. Footage also plays inside a mask or text, through a shader, or on a 3D mesh, and a video file works wherever a script does: preview, frame, strip, timeline and audio analyze take take.mp4.
10Written by oicut
H.264 or H.265 MP4 through the system's codecs: VideoToolbox on macOS (in hardware or Apple's software codecs), Vulkan Video on Linux and Windows, Media Foundation on Windows, else the system's FFmpeg (libavcodec), loaded at run time and never bundled; a release carries no H.264 or H.265 codec of its own. --codec av1 writes AV1 MP4 with oicut's own encoder in every build and on every machine: royalty-free, needing no system codec. --qp is on one scale for every codec (23 by default, 32 with --draft): at 23, on the first 6 s of suite and motion_poster, AV1 came out 0.6 and 1.3 dB under H.264 in files 21% smaller and 10% larger. The sound is oicut's own AAC. Clips in: H.264, H.265, VP9, AV1 and ProRes, with ProRes 4444 and VP9 alpha kept. Images and sound are decoded by oicut too: PNG, JPEG (baseline or progressive), BMP, GIF (its first frame), TGA, QOI and WebP; WAV, Ogg (Vorbis or Opus) and .opus, MP3, FLAC, AAC and Apple Lossless. An MP3 decode measures 124 dB against FFmpeg's, where the decoder before it measured 87.
11Data in, videos out
Feed props from JSON or --set, or render one video per row of a JSON or CSV batch, with {field} placeholders in the output names.
12Boards on a screen
preview --live shows a script full screen for good, as signage: it plays once and runs on past its end, f.now is the system clock, and the only key is Ctrl+Q. Whatever feeds it writes a new file beside the script and renames it over the old one, and the board reloads on the same clock; a file that fails to load keeps the last good board and says why on stderr. track_changes(name, rows, { key = field }) stamps each row of the new data with when it last changed and what it was before, so only what changed animates, and a reload mid-animation doesn't restart it (examples/departures, examples/production_line). Rendered, f.now is --now TIME, so render, frame and inspect stay reproducible.
13Live preview
A window with sound, scrubbing and a timeline of thumbnails and waveforms that hot reloads the script, its modules, shaders and media on save; a Watch view is a debugger's watch window over the video's tables (scenes, cues, problems, media and marks): a click on a row goes to its frame, its arrow unfolds it into its members (an image's row into the picture, a sound's into a player that plays the file alone), any row drags out as a tab of its own, and you can type expressions as rows (scenes.Race.start). Ctrl+F filters a Watch's rows, and Ctrl+P jumps to any scene, cue, problem or mark. [ and ] mark a range and P a moment, saved beside the clip or script (take.marks.json) for the agent to read with onimite show take.mp4 marks: people point, the agent edits. Sampled instruments load in the background, so the two-minute saga's preview opens in about 30 ms, and each song renders once on low-priority threads, the stretch at the playhead first, with its lanes and a spectrogram of its bands filling in as it lands; the sound and the picture never wait for it, and the preview doesn't freeze when the display sleeps. Playback that misses frames renders smaller, down to a quarter of the window's size, and steps back up once it keeps up; a paused frame renders at full size. With --bare --fullscreen it plays a script full screen like a screensaver: the video alone, no controls or timeline, once, then it closes (Escape sooner). With --present it plays one as a talk: each scene a slide that plays and then holds at its end until the presenter moves on (Right, Space, Page Down or a click; Left or Page Up goes back, B blacks the screen, P pauses), still moving while it waits unless the scene says otherwise, and the rendered video carries a chapter per slide (examples/talk). examples/otfx plays otfx's decrypt text effect that way; on the Omarchy logo, a 213×60 grid at 60 fps on a 5K screen, it uses about 5–7% of a CPU core, down from about 9.5% in v0.0.30, and 9–10% of the GPU with no dropped frames: still 2–3× the CPU of Alacritty running otfx (1.9%), with the GPU about level (8%).
14fframes-compatible
The same commands, outputs and exit codes as fframes' project CLI, the same range syntax (3.2s, 50%, Intro@end, a..b), and all 20 fframes examples ported, each rendering the same video.
Use it
video { width = 1920, height = 1080, fps = 30, background = "#ffffff" }
local vo = say("vo", "Hello there.", { voice = "alba" }) -- spoken by ottis, with word times
scene { "Intro", duration = 2, audio = { { "vo", start = 0.3 } }, render = function(f)
local y = animate(f, { { start = 0, stop = 0.4, from = 60, to = 0, easing = ease_out } })
group({ transform = translate(0, y), opacity = animate(f, { { start = 0, stop = 0.3, from = 0, to = 1 } }) }, function()
rect { x = 160, y = 240, w = 600, h = 120, rx = 24, fill = "#0ea5e9" }
text { "Hello", x = 200, y = 320, font = "DM Sans", size = 48, weight = 700, fill = "#ffffff" }
end)
end }
scene { "Outro", duration = 3, overlap = { previous = 0.5 }, render = function(f) ... end } -- crossfades with Intro# macOS 11+ (Apple Silicon; signed and notarized) and Linux (x86_64; needs
# glibc 2.34+ and libcurl): into ~/.local/bin
curl -fsSL https://defnotmid.com/install.sh | sh
# Windows (x86_64; the build isn't code-signed), in PowerShell: onto your user PATH
irm https://defnotmid.com/install.ps1 | iex
# already installed? update to the latest release
onimite updateonimite render video.lua [range] -o out.mp4 [--draft] # the video (+ AAC mix), or PNGs into a directory
onimite render video.lua --batch rows.json -o out/{name}.mp4 # one video per row (or rows.csv)
onimite frame video.lua Intro@1s,50%,end -o frames [--svg] # PNGs of single frames, with their problems
onimite strip video.lua [range] -n 12 --columns 4 --width 480 -o strip.png
onimite onion video.lua Intro@0..Intro@1s -n 6 -o onion.png # frames blended, later ones stronger
onimite snapshot video.lua 1s,Intro@end [--update]
onimite timeline video.lua [range] # scenes, audio tracks, cues
onimite inspect video.lua [range] [--every 0.25s] # missing media, clipped text, sync drift, ...
onimite audio analyze video.lua [range] [--waveform w.png] # loudness, peaks, bands per bus, masking
onimite audio pin video.lua # fetch and pin the libraries its songs name
onimite audio parts video.lua [--against parts.json] # each song part by part; exit 1 if one moved
onimite preview video.lua [at] [--bare] [--fullscreen] # play with sound, hot reload on save
onimite preview board.lua --live # a board on a screen, for good, on the system clockgit clone https://github.com/defnotmid/onimite
git clone https://github.com/defnotmid/ovg
git clone https://github.com/defnotmid/oglyph
git clone https://github.com/defnotmid/ocurves
git clone https://github.com/defnotmid/oksl
git clone https://github.com/defnotmid/oicut
git clone https://github.com/defnotmid/ottis
git clone https://github.com/defnotmid/o3d
git clone https://github.com/defnotmid/odawg
cd onimite
mkdir -p build
odin build . -collection:deps=.. -o:speed -out:build/onimite
build/onimite render examples/why_onimite/video.lua -o why_onimite.mp4The family
- ocurves
Curve geometry: exact pixel coverage, and booleans that keep their curves
- ovg
2D vector graphics: paths, SVG, Lottie, text, filters
- oglyph
Fonts and OpenType text shaping, checked against HarfBuzz
- oicut
Video, audio and image codecs with no FFmpeg
- oksl
SkSL and Shadertoy shaders to SPIR-V, MSL and CPU
- o3d
3D in three.js terms, on the GPU or the CPU
- ottis
Text to speech with a time for every word
- odawg
Music from songs as data: synths, sampled instruments, an 808, a 909 and a 303, mixed and mastered
- onimite
Videos from Lua scripts, written by you or your coding agent