Layers, written as code.

A compositor that agents drive.

Laminolith is a headless VFX compositor built to be operated by AI agents. An agent writes a TypeScript comp file, lamino evaluates it and writes EXR sequences. People look at the result and say what to change.

Read the guideOpen the reference

import { comp, read } from "lamino";
import { glow, lightWrap, grain } from "lamino/fx";

export default comp("SHOW_010", { fps: [24000, 1001], res: [3840, 2160], frames: [1001, 1120] }, () => {
  // Live-action plate. DPX is log footage, so declare the input colour space
  const plate = read("$SHOTS/SHOW/010/plate/A001_C003.####.dpx", {
    colorspace: "ARRI LogC4",
    missing: "error",
  });

  // CG fireworks. The beauty layer of the EXR, premultiplied
  const fw = read("$SHOTS/SHOW/010/render/fireworks_v012.####.exr", {
    layer: "beauty",
    alpha: "premult",
  });

  // Glow: blur the scene-linear parts above 1.0 at several scales and add them back (radius is in width units)
  const lit = glow(fw, { threshold: 1.0, radius: 0.04 });
  // Move slightly right and scale up by 5% (x is in width units)
  const fx = lit.transform({ x: 0.02, scale: 1.05 });

  // Wrap the plate's light around the edges of the fireworks, then place them over the plate
  // bg.over(fg): the receiver is the background (B), the argument is the foreground (A)
  const out = plate
    .over(lightWrap(fx, plate, { size: 0.01, amount: 0.4 }))
    .grade({ lift: -0.01, gain: [1.0, 0.98, 1.02] });

  // Match the plate's grain. The seed is fixed, so the picture is the same every time
  return grain(out, { amount: 0.03, size: 1.2, seed: 7 });
});

A comp file: CG fireworks over a night plate. This is the template lamino schema --template shot.comp.ts prints.

How it is built

The code is the source of truth

A comp is a *.comp.ts file and nothing else. History, undo and branching are git's job. What Laminolith makes while it evaluates lives in .lamino/ and can be rebuilt from the code and the assets.

The agent writes, the engine runs, the human looks

Laminolith never writes a comp file. The agent edits the code, lamino evaluates it, and a person looks at the review window and decides.

Numbers first, images later

Every command answers with one JSON envelope: statistics, pixel samples, lints and errors with a code, what, why and fix. An agent settles most questions from numbers and looks at a picture only when they do not.

Width units and proxies

The image width is 1.0 and every spatial parameter uses that unit, so the same comp gives the same picture at full resolution and at a 1/2, 1/4 or 1/8 proxy. Agent loops run on proxies.

In this version

nodes
67
presets
24
commands
23
MCP tools
21
diagnostic codes
118

Laminolith is in development. There is no public release yet.