Case Study
Ritween
Code-First WebGPU Video Framework
Visit Ritween
- Year
- 2026
- Role
- Product Design & Engineering
- Platform
- WebGPU Studio & CLI
Part of the Nexifle product ecosystem and developed directly by Nexifle Labs, Ritween turns source code into video. You define a composition in a manifest, author scenes in TypeScript or JavaScript, and use the browser studio or CLI to preview, seek, and export MP4 files powered by WebGPU and WebCodecs.
The problem
Programmatic video pipelines often depend on heavy server render farms, system FFmpeg setups, or brittle DOM capture tricks. That overhead slows down iteration and makes it hard for developers and AI coding agents to version, inspect, and automate motion graphics cleanly.
Our approach
We built one shared engine to drive the browser studio, CLI, and programmatic SDK. Visuals render on the GPU through WebGPU and WGSL shaders, while MP4 export encodes H.264 video and AAC audio through native WebCodecs and a custom muxer. Every scene evaluates deterministically from timeline time, so live preview seeking and exported frames stay in exact sync.
Gallery
Tap a frame to inspect it — zoom up to 400%.
Key features
- Code-first compositions using a project manifest to define scene timing, resolution, and audio tracks right in version control
- GPU rendering with WebGPU and WGSL shaders, paired with a declarative foundation for text, 2D shapes, layouts, and camera motion
- Native H.264 MP4 and AAC audio export via WebCodecs and a custom muxer without FFmpeg or a backend render service
- Interactive browser studio with hot updates that preserve the playhead, frame-accurate scrubbing, and local image or video clip support
- CLI automation for rendering individual PNG frames or full MP4 exports with machine-readable JSON output for scripts
- Dedicated AI coding skill enabling coding agents to author storyboards, WebGPU scene code, preview checks, and video exports
Technologies & concepts
- TypeScript
- WebGPU
- WGSL
- WebCodecs
- React
- CLI
Outcome
Ritween makes video production part of the regular codebase. Developers and AI coding agents can iterate on scenes with instant browser feedback and ship deterministic MP4 renders from the same source files.




