Skip to content
Projekte

Über uns

A whole multimedia pipeline written as code: one TSX file is the video, played in the browser, edited on a timeline, exported to MP4, WebM, ProRes, audio or stills through native codecs.

Design und Medien

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
0
in 7 days
+2
in 15 days
Verlauf wird gesammelt
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

UberScene

UberScene

Editing, animation and compositing as code, so AI can drive them natively.

CI npm Docs CodeQL MIT License Node 22.19 or later

Documentation · Changes Blog · Guide · Reference


[!WARNING] Work in progress. UberScene is early. The API is still being shaped and changes between releases, often in breaking ways, and will keep changing until 1.0. Each release's changelog says how to move a file, and uberscene lint --fix moves most of it for you.

UberScene is a React library for making videos and building editors around them. One TSX file is the video: clips, captions, audio, transitions, effects, masks and keyframes, and any React, Motion or three.js on top. Play it in the browser, adjust it on a timeline, export it to MP4.

The coffee film: an espresso pours under FAST SHOT, a Warm LUT badge comes in as the grade warms, then three glasses under EVERY GLASS, A LINE OF CODE
The coffee film, four stock shots cut in one TSX file. Watch it with sound →

A short of espresso into a red paper cup; an agent is asked to change red cup color to green and writes one line, a recolor effect; the same short plays with the cup green
One prompt, one line. "change red cup color to green" adds a recolor effect to the file, and the same short plays green. The file →

An interview edit: WOULDN'T IT BE AMAZING in giant caps beside a black and white cut-out of the speaker, IF WE COULD SEND A MESSAGE INTO THE STARS on a blue card with a spacecraft, then tall caps stacking beside him as he talks, and SOMEONE, SAT DOWN as flash cards
An interview, cut to its words. 38 seconds of a NASA talk in kinetic type, every title anchored to a word he says. The file →

Why

  • A video is a file. Diff it, review it in a pull request, generate a hundred variants.
  • Models write code, not math. Cuts name a transcript word or a camera shot (in="word:12"), not seconds, and UberScene works out every frame.
  • One file, every editor. Your agent edits the text, you edit on a timeline; both change the same file, with undo.
  • No FFmpeg. The export draws and encodes in headless Chrome, with nothing else to install.
  • MIT. No paid tier, no watermark.

Native codecs (experimental)

UberScene can also decode footage and encode the export with its own codecs, written in Rust on FilmCraft's craft-video, craft-media and craft-audio. They decode H.264, HEVC, VP8, VP9, AV1, ProRes and DNxHR, and encode H.264, ProRes and the soundtrack, still with no FFmpeg and no C libraries. They are off unless UBERSCENE_CODECS turns them on, download on the first native export (npx uberscene codecs install fetches them ahead), and Chrome stays the default. Native codecs has the details.

Aim

Agents work better with code than with ffmpeg flags or a mouse, so the video, its graphics and its 3D scenes all live in one file.

flowchart LR
  F["video.tsx"] --> E["The edit<br/>clips · captions · effects"]
  F --> S["3D scene<br/>three.js + camera path"]
  E --> MP4["MP4"]
  S --> G["Guidance passes<br/>preview · depth · masks · pose · camera"]
  S --> B["glTF → Blender"]
  G --> M["Generative video models"]

A rough 3D render is one of the most precise ways to pin down camera and layout for video models. So the same file that cuts your video should also render what those models take, frame for frame on the same timeline.

Roadmap
✅ Editing as code: tracks, captions, audio, transitions, effects, masks, keyframes, React, Motion and three.js layers
✅ One file, every editor: agent edits and timeline edits, keys and on-canvas moves included, write back to the same source
🚧 3D scenes with a camera path on the video's clock
🔜 Guidance passes: shaded preview, depth, masks, pose skeletons, per-frame camera
🔜 glTF export, so the scene opens in Blender

Install

npm install uberscene @uberscene/kit react zod

Then give your agent the skill that lets it make and edit videos. In Claude Code:

/plugin marketplace add prefix-tree/uberscene
/plugin install uberscene@prefix-tree

For any other agent: npx uberscene skills install. Then brief it like an editor: "Cut a 30 second vertical clip from talk.mp4, open on the sentence about Fridays, add karaoke captions, render to video.mp4."

Guide, reference and examples: uberscene.prefixtree.xyz.

Example

export default function Video({ product, founder, accent }) {
  return (
    <Composition fps={30} width={960} height={540}>
      <Track id="main">
        <Clip id="talk" src="asset:founder" in="word:0" out="word:11.end" fit="cover" />
        <Transition id="x1" type="crossfade" duration={0.4} />
        <Clip id="broll" src="asset:product" in={0} out={1.6} fit="cover" />
        <Transition id="x2" type="crossfade" duration={0.4} />
        <Clip id="close" src="asset:founder" in="word:12" out="word:25.end" fit="cover" />
      </Track>
      <Track id="device" layout="free">
        <Three id="phone" anchor="talk" at="word:1" duration={12} setup={phoneScene} />
      </Track>
      <Track id="text" layout="free">
        <Motion id="sandbox" anchor="close" at="word:17" duration={2.4}
          sequence={[[".pill", { opacity: [0, 1], x: [-40, 0] }]]}>
          <div className="pill">Every app in a sandbox</div>
        </Motion>
      </Track>
    </Composition>
  );
}

Trim talk and every callout moves with its word. Full file: examples/showcase/launch.tsx.

Editor

The UberScene editor: layers on the left, the title A video is a file in the preview, its fields in the inspector, and the titles as bars on a timeline

A video editor built from shadcn/ui components, copied into your app as source you own:

npx shadcn add https://uberscene.prefixtree.xyz/r/editor.json

Drag a bar to move it, drag its end to trim it, or type in the inspector. Every edit can be undone, and each one lands in the file as the one value it changed.

  • Keys on the timeline. Under the selected bar, a lane per keyed value, its masks' included, with a diamond per key. Drag a key to move it, press + to add one at the playhead, pick one to change its value and easing, Delete to remove it.
  • On the picture. Move, scale and turn the selected overlay where it is drawn. With Auto-key on (K), a drag writes a key at the playhead.
  • Footage on the bars. Video and image bars show a filmstrip of what they play, and bars with sound a waveform, both following trims, speed and freezes.

Try it or read the shadcn editor.

License

MIT. Feedback and ideas welcome in issues.

Ähnliche Projekte entdecken

Wird geladen…