Clapper: Deterministic Video and Audio Production via React and TypeScript

LinkTool

Clapper is a programmatic video generation framework where every video frame and soundtrack cue is expressed purely in code. By eliminating reliance on wall clock time and unseeded randomness, video outputs are byte-identical across renders.

Key points

  1. Frames as pure functions: Scenes consume useFrame() rather than a wall clock, allowing bidirectional scrubbing and direct access to arbitrary frame numbers.
  2. Rendering pipeline: Vite builds the bundle, Playwright captures frames in headless Chromium as JPEG (q96), and FFmpeg compiles the final MP4 with mixed audio.
  3. Music as TypeScript: Scores are defined with tempo maps, meters, and CC0 instrument presets, mastered offline to a broadcast target of -18 LUFS.
  4. Automated linting: Built-in checks catch empty frames post-cut, text overlapping the safe area, wall clock timers, and loudness anomalies across cuts.
  5. Capture optimisation: Switching intermediate frame capture from PNG to JPEG (q96) reduced capture duration from roughly 250 ms to 40 ms per frame.

Why it matters

Code-driven video workflows often suffer from non-deterministic frame pacing and slow rendering. Clapper addresses this with strict deterministic constraints, seed-based execution, and automated linting, making automated video generation dependable for engineering teams and AI subagents.

Analysis

Clapper establishes a disciplined model for programmatic media synthesis: visual and acoustic elements are mapped directly to frame indices and musical time rather than wall clocks. This ensures exact reproducibility down to the byte. A key differentiator is the inclusion of music as code, where note events natively synchronize with cuts and choreography. The framework also incorporates review utilities, such as contact sheets and spectrograms, designed to facilitate review loops with creative directors or autonomous agents.

Found in

Summary generated by AI (Gemini 3.8 Flash, 27 September 2026). It may contain errors – the original source is authoritative.

Similar in content, found by the AI search.

  • Repository:calesthio/OpenMontage

    OpenMontage: Open-Source Agentic Video Production System

    OpenMontage is an open-source video production framework designed to turn AI coding assistants such as Cursor or Claude into automated video production studios. Built with Python, it provides 12 production pipelines, over 100 tools, and 700+ skill and knowledge files connecting speech, image, and video generation services with programmatic editing engines.

    56.2kstarsPython

    AI & LLMs· Tool

  • Repository:webprodigies-org/flute

    Flute: Cinematic 3D Scenes from Live React Components

    Flute is an open-source renderer by Web Prodigies that turns live React UIs into cinematic 3D scenes featuring camera motion, depth of field, and MP4 video export. It is tailored for workflows where coding agents choreograph visual animations and camera paths.

    139starsTypeScript

    Web development· Tool

  • Repository:RoXsaita/capcut-editor-cli

    capcutctl: Transactional CLI for Editing Native CapCut Projects

    capcutctl is an open-source command-line tool for macOS designed to edit native CapCut desktop projects programmatically without flattening them into rendered video. Cuts, layouts, audio tracks, and effects remain fully editable in CapCut.

    8starsJavaScript

    AI & LLMs· Tool

Let's talk about your project

Locations

  • Mattersburg
    Johann Nepomuk Bergerstraße 7/2/14
    7210 Mattersburg, Austria
  • Vienna
    Ungargasse 64-66/3/404
    1030 Wien, Austria

Parts of this content were created with the assistance of AI.