📽️ Montage: one Remotion studio for 16 READMEs
Montage is the Remotion studio behind the icons, GIFs and explainers in every project README. One kit of device frames, motion blocks and seven templates gives all 16 projects the same rhythm and end card, and checks every render against the asset spec.
By Dennis Bruijn · · 9 min read · #projects #agent-tools #remotion #typescript #react #ffmpeg
![]()
Here's the job. Fifteen project READMEs, and each one wants an app icon, a hero image, screenshots in light and dark, a couple of demo GIFs, a 30-second explainer video, a poster for that video and a social card. That's a lot of files, and I know how it goes when you make them by hand: by the time you get to the last repo, the end cards don't match, one GIF is too big for the page and one video is in a different font.
So I didn't make them by hand. I wrote one studio that makes them all, from one config per project, and refuses to hand over a file that breaks the spec. It's called Montage, and it's also the 16th project in its own list: the icon above, the hero, the GIFs and the explainer below were all rendered by Montage, with the same templates every other project gets.
Rendered with Montage itself. The Remotion Studio, terminal and editor windows in this post are Montage mockups built from real data: composition ids and sizes from the registry, terminal lines from a real render run, and the code from a real project's brand config.

16 projects and 208 compositions, one folder each
A project in Montage is a folder: src/projects/<slug>/, holding a brand config, an icon, its screens and its scenes. There's no central list to edit. A build-time glob finds every folder, so a branch that adds one project never touches a file another project shares. That matters when 15 projects are each on their own project/<slug> branch at the same time.
Today that's 16 projects (the 15 repos plus Montage) and the internal _example smoke test, for 208 compositions in total. Homey and Jot are the busiest with 17 each; Crow gets by on 8.
Everything starts with brand.ts. Here's Montage's own, which is deliberately boring, because a tool that renders everyone else's media should keep its own look out of the way:
export const brand: Brand = {
slug: "montage",
repo: "0x1ad2/montage",
name: "Montage",
emoji: "📽️",
tagline: "Remotion studio that renders icons, GIFs and explainer videos for every 0x1ad2 project from one config.",
mode: "dark",
colors: {
bg: "#000000",
surface: "#0D0D10",
surface2: "#16161B",
border: "#26262E",
text: "#F4F4F6",
muted: "#8C8C99",
accent: "#8B6CFF",
accent2: "#C4B5FF",
gradient: ["#8B6CFF", "#5B3FE0"],
},
fonts: { display: spaceGrotesk(), body: inter(), mono: jetbrainsMono() },
platforms: ["Node 23.6+", "macOS", "Linux"],
};
Name, repo, tagline, mode, palette, fonts and platform chips. Every template reads it, so the icon, the stills, the GIFs and the explainer all share the same colors and type without anyone copying a hex value twice.

Here's a small version you can try. The object at the bottom is a cut-down brand config, and three toy "templates" read it: an icon tile, a social card and a palette strip. Change the accent, rename the project or swap the tagline, and all three follow. It's a sketch in plain DOM, not Remotion, but it's the same deal: one object in, every output changes with it.
<style>
body { margin: 0; padding: 14px; background: #000; font: 13px/1.35 system-ui, sans-serif; }
.row { display: flex; gap: 12px; align-items: stretch; max-width: 560px; margin: 0 auto; }
.icon { flex: 0 0 96px; height: 96px; border-radius: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 12px; box-sizing: border-box; position: relative; }
.icon i { border-radius: 5px; }
.icon b { position: absolute; inset: 36px; border: 3px solid; border-radius: 6px; }
.social { flex: 1; aspect-ratio: 2 / 1; border-radius: 14px; padding: 14px 16px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid; }
.name { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.tag { font-size: 11.5px; margin-top: 4px; }
.meta { display: flex; justify-content: space-between; align-items: center; font: 11px ui-monospace, monospace; }
.chip { border: 1px solid; border-radius: 99px; padding: 1px 7px; margin-left: 4px; }
.strip { display: flex; max-width: 560px; margin: 12px auto 0; border-radius: 10px; overflow: hidden; height: 42px; }
.strip div { flex: 1; display: flex; align-items: flex-end; padding: 4px 6px; font: 10px ui-monospace, monospace; }
</style>
<div class="row"><div class="icon" id="icon"></div><div class="social" id="social"></div></div>
<div class="strip" id="strip"></div>
<script>
// Edit me: every "template" below reads this one object.
const brand = {
name: "Montage",
repo: "0x1ad2/montage",
tagline: "Remotion studio that renders icons, GIFs and explainer videos for every 0x1ad2 project from one config.",
platforms: ["Node 23.6+", "macOS", "Linux"],
colors: { bg: "#000000", surface: "#0D0D10", border: "#26262E", text: "#F4F4F6", muted: "#8C8C99", accent: "#8B6CFF", accent2: "#C4B5FF" },
};
const c = brand.colors;
const tiles = [c.accent, c.accent2, c.muted, c.border, c.accent, c.accent2, c.muted, c.border, c.accent];
const icon = document.getElementById("icon");
icon.style.background = c.surface;
icon.innerHTML = tiles.map((t) => `<i style="background:${t}"></i>`).join("") + `<b style="border-color:${c.accent};background:${c.bg}"></b>`;
const social = document.getElementById("social");
Object.assign(social.style, { background: `linear-gradient(135deg, ${c.surface}, ${c.bg})`, borderColor: c.border, color: c.text });
social.innerHTML = `
<div><div class="name">${brand.name}</div><div class="tag" style="color:${c.muted}">${brand.tagline}</div></div>
<div class="meta"><span style="color:${c.accent2}">${brand.repo}</span>
<span>${brand.platforms.map((p) => `<span class="chip" style="border-color:${c.border};color:${c.muted}">${p}</span>`).join("")}</span></div>`;
const swatches = [c.bg, c.surface, c.muted, c.accent, c.accent2];
document.getElementById("strip").innerHTML = swatches
.map((s, i) => `<div style="background:${s};color:${i < 2 ? c.muted : c.bg}">${s}</div>`)
.join("");
</script>
From that one folder, seven templates do the rendering:
| Template | What comes out |
|---|---|
| Icon | 1024 master, then a 512 PNG and an SVG |
| Hero | 2400×1200 |
| Screenshot | Light and dark twins |
| Demo GIF | 960×540 at 15 fps |
| Explainer | 1920×1080 at 30 fps |
| Poster | 1600×900 |
| Social card | 1280×640 |
The screens inside those templates sit in device and chrome frames: a macOS window with a menu bar, a menu bar popover, iPhone, iPad, Apple Watch, an Android phone, a browser and a terminal. They're all pure CSS and SVG, so they stay sharp at 2x and 3x. On top of that sits a motion kit (icon tile, title card, tagline reveal, feature callouts, captions, an animated cursor with click ripples, a typewriter, a counter, glow backdrops, a logo sting and the standard end card) and exactly three transitions: crossfade, wipe and push. The standard allows those three and nothing else. No star wipes. Sorry.
Run npm run studio and Remotion Studio opens with a folder per project. Each composition is named <Template>-<slug>[-item][-mode], with its output size beside the id, so you can find Social-halo without scrolling through everything else.

The same registry drives the GIFs. One pops every project icon in on its own brand color:
The other wipes in each project's palette as five bars, hex values and all:

Every render gets checked, and one bad file fails the run
This is the part I like most. When a render finishes, Montage doesn't take its own word for it. scripts/lib/checks.mjs probes every file with ffprobe and compares it with src/lib/spec.json: pixel size, byte cap, fps, duration, codec, pixel format, +faststart and icon transparency. Any violation fails the command with a list of what went wrong. The same rules back npm run check -- <dir>, so you can point it at any folder of media, not just Montage's own output.
The caps are decimal (1 MB is 1,000,000 bytes), and the templates read the same spec.json file as the checks, so the thing that draws a hero and the thing that judges it can't disagree about how big a hero is:
| File | Pixels | Cap |
|---|---|---|
icon.png | 512×512, transparent | 200 KB |
hero.png | 2400×1200 | 1.5 MB |
demo-<slug>.gif | 960×540 or 540×960, 15 fps, 4 to 8 s | 5 MB |
explainer.mp4 | 1920×1080, 30 fps, 60 s at most | 10,000,000 bytes |
explainer-poster.png | 1600×900 | 600 KB |
social.png | 1280×640 | 1 MB |
npm run render bundles once, renders every target the project declares, then runs the checks. This is the run that made Montage's own icon, hero, GIFs and social card:

Here's a toy checker in the same spirit. The first seven rows are the real sizes of the media in Montage's own docs/assets/. The last row is a render I made up to be bad. Delete it and the run goes green, or nudge a real file over its cap and watch it fail. (The real checker reads these numbers from ffprobe. This one trusts whatever you type, which is exactly why the real one doesn't.)
<style>
body { margin: 0; padding: 14px; background: #000; color: #d4d4d8; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.ok { color: #7fd17f; } .bad { color: #ff7b72; } .dim { color: #71717a; } .sum { margin-top: 8px; }
</style>
<pre id="out"></pre>
<script>
const SPEC = {
"icon.png": { size: [[512, 512]], cap: 200_000, alpha: true },
"hero.png": { size: [[2400, 1200]], cap: 1_500_000 },
"explainer-poster.png": { size: [[1600, 900]], cap: 600_000 },
"social.png": { size: [[1280, 640]], cap: 1_000_000 },
gif: { size: [[960, 540], [540, 960]], fps: 15, min: 4, max: 8, cap: 5_000_000 },
"explainer.mp4": { size: [[1920, 1080]], fps: 30, max: 60, cap: 10_000_000, codec: "h264", pix: "yuv420p", faststart: true },
};
const renders = [
{ file: "icon.png", w: 512, h: 512, bytes: 64874, alpha: true },
{ file: "hero.png", w: 2400, h: 1200, bytes: 926771 },
{ file: "demo-icons.gif", w: 960, h: 540, fps: 15, seconds: 6, bytes: 2582622 },
{ file: "demo-palettes.gif", w: 960, h: 540, fps: 15, seconds: 7.5, bytes: 631543 },
{ file: "explainer.mp4", w: 1920, h: 1080, fps: 30, seconds: 31.5, bytes: 2391084, codec: "h264", pix: "yuv420p", faststart: true },
{ file: "explainer-poster.png", w: 1600, h: 900, bytes: 478599 },
{ file: "social.png", w: 1280, h: 640, bytes: 372195 },
// A made-up bad render. Delete this line and the run passes.
{ file: "demo-oops.gif", w: 1280, h: 720, fps: 12, seconds: 9, bytes: 6_200_000 },
];
const mb = (b) => (b / 1e6).toFixed(2) + " MB";
function check(r) {
const s = SPEC[r.file] || (r.file.endsWith(".gif") ? SPEC.gif : null);
if (!s) return ["no spec for this file name"];
const p = [];
if (!s.size.some(([w, h]) => w === r.w && h === r.h)) p.push(`${r.w}×${r.h}, expected ${s.size.map((x) => x.join("×")).join(" or ")}`);
if (r.bytes > s.cap) p.push(`${mb(r.bytes)} is over the ${mb(s.cap)} cap`);
if (s.fps && r.fps !== s.fps) p.push(`${r.fps} fps, expected ${s.fps}`);
if (s.min && r.seconds < s.min) p.push(`${r.seconds} s is shorter than ${s.min} s`);
if (s.max && r.seconds > s.max) p.push(`${r.seconds} s is longer than ${s.max} s`);
if (s.codec && r.codec !== s.codec) p.push(`codec ${r.codec}, expected ${s.codec}`);
if (s.pix && r.pix !== s.pix) p.push(`pixel format ${r.pix}, expected ${s.pix}`);
if (s.faststart && !r.faststart) p.push("missing +faststart");
if (s.alpha && !r.alpha) p.push("icon has no transparency");
return p;
}
let failed = 0, html = '<span class="dim">$ npm run check -- docs/assets</span>\n';
for (const r of renders) {
const p = check(r);
if (p.length) { failed++; html += `<span class="bad">✗ ${r.file}</span>\n` + p.map((x) => `<span class="bad"> ${x}</span>`).join("\n") + "\n"; }
else html += `<span class="ok">ok</span> ${r.file.padEnd(22)}<span class="dim">${mb(r.bytes)}</span>\n`;
}
html += failed
? `<div class="sum bad">${renders.length} files checked, ${failed} failed. exit 1</div>`
: `<div class="sum ok">${renders.length} files checked, all within the spec. exit 0</div>`;
document.getElementById("out").innerHTML = html;
</script>
There's no unit test suite yet. The smoke test is _example: it uses every template, every frame family and every building block, and render exits 1 the moment any of its 11 files breaks the spec. The house rule before merging project branches: render one still per project (each Social-<slug>, say) to catch a missing synced file or a broken import early.
GIFs under 5 MB, explainers under 10 MB
Caps are easy to write down and annoying to hit, so Montage does the fitting itself.
GIFs. Demo scenes render as PNG frames, and ffmpeg turns them into a GIF with a two-pass palettegen/paletteuse. If a GIF lands over the 5 MB cap, Montage steps the palette down and tries again, and only then. A GIF that already fits keeps its full palette.
Explainers. H.264 at CRF 23 in yuv420p with +faststart, so the video starts playing before it has finished loading. If a cut runs over 10,000,000 bytes, Montage re-encodes it in two passes at a computed bitrate instead of giving up.
PNGs. Recompressed losslessly with oxipng -o 4 when it's installed (ImageMagick at zlib level 9 otherwise). pngquant --quality 80-95 only runs on a file that's still over its cap.
Explainer length is worked out, not eyeballed. src/lib/timeline.ts lays the scenes out at 30 fps, and every transition overlaps two scenes, so the length is the sum of the scenes, plus the 2-second end card, minus one transition per scene. Here's that sum with the seven scenes of Montage's own explainer, which comes out at the 31.5 seconds you'll find in its README. Make a scene longer, set one to "none", or add a scene and see where you land against the 30-second target and the 60-second ceiling.
<style>
body { margin: 0; padding: 14px; background: #000; color: #e4e4e7; font: 12px/1.4 system-ui, sans-serif; }
.track { position: relative; height: 34px; margin: 6px 0 10px; }
.seg { position: absolute; top: 0; height: 34px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font: 10px ui-monospace, monospace; color: #000; overflow: hidden; white-space: nowrap; opacity: .92; }
.lap { position: absolute; top: -4px; height: 42px; background: repeating-linear-gradient(45deg, #fff6, #fff6 3px, transparent 3px, transparent 6px); border-radius: 3px; }
.total { font: 600 15px ui-monospace, monospace; }
.ok { color: #7fd17f; } .warn { color: #f5c26b; } .bad { color: #ff7b72; } .dim { color: #8c8c99; }
</style>
<div class="total" id="total"></div>
<div class="track" id="track"></div>
<div class="dim">Hatched bars are transitions: two scenes on screen at once.</div>
<script>
const FPS = 30;
const TRANSITION_FRAMES = 15; // what Montage's own cut uses
const END_CARD_SECONDS = 2;
// Montage's own explainer. Edit the seconds, add a scene, or set transition: "none".
const scenes = [
{ id: "cold-open", seconds: 3 },
{ id: "config", seconds: 6 },
{ id: "icon", seconds: 4.5 },
{ id: "stills", seconds: 5 },
{ id: "motion", seconds: 5 },
{ id: "check", seconds: 4.5 },
{ id: "family", seconds: 5 },
];
let cursor = 0;
const laid = scenes.map((s) => {
const frames = Math.round(s.seconds * FPS);
const t = s.transition === "none" ? 0 : Math.min(TRANSITION_FRAMES, Math.floor(frames / 2));
const scene = { ...s, from: cursor, frames, t };
cursor += frames - t;
return scene;
});
const end = { id: "end card", from: cursor, frames: END_CARD_SECONDS * FPS, t: 0 };
const total = cursor + end.frames;
const sec = total / FPS;
const hues = ["#8B6CFF", "#C4B5FF", "#6CC4FF", "#7fd17f", "#f5c26b", "#ff9f7b", "#ff7bd1", "#a1a1aa"];
const pct = (f) => (f / total) * 100 + "%";
document.getElementById("track").innerHTML = [...laid, end]
.map((s, i) => `<div class="seg" style="left:${pct(s.from)};width:${pct(s.frames)};background:${hues[i % hues.length]}">${s.id}</div>`
+ (s.t ? `<div class="lap" style="left:${pct(s.from + s.frames - s.t)};width:${pct(s.t)}"></div>` : ""))
.join("");
const cls = sec > 60 ? "bad" : Math.abs(sec - 30) <= 5 ? "ok" : "warn";
const note = sec > 60 ? "over the 60 s ceiling: the check fails" : Math.abs(sec - 30) <= 5 ? "close to the 30 s target" : "within 60 s, but far from the 30 s target";
document.getElementById("total").innerHTML = `${total} frames = <span class="${cls}">${sec.toFixed(1)} s</span> <span class="dim">(${note})</span>`;
</script>
Across all 16 projects, the explainers land between 28.4 seconds (Tempo) and 33.5 seconds (Halo and Crow), all a few seconds either side of that 30-second target. Same rhythm, same end card, every time.
Under the hood
Montage is TypeScript on Remotion 4.0.542 and React 19.3.1, with TypeScript 5.9.3, all pinned exactly, and ffmpeg doing the encoding. It runs on macOS or Linux with Node 23.6 or later, because the scripts import montage.config.ts using Node's built-in type stripping. ffprobe comes along with ffmpeg; oxipng, pngquant and ImageMagick are optional extras.
The pipeline, start to finish:
src/projects/*/index.tsx brand, icon, screens, scenes
│
gen-registry.mjs generated registry
│
Root.tsx one composition per output
│
render.mjs stills, frames, H.264
│
ffmpeg + optimizers GIF palette, faststart, PNG
│
checks.mjs spec caps, report
- Discovery.
scripts/gen-registry.mjsglobssrc/projects/*/index.ts(x)and writes a gitignoredsrc/generated/registry.ts. It runs before every studio, render and still command. - Compositions.
src/lib/outputs.tsturns each project into compositions, each carrying its output file name and caps in its props. - Rendering.
scripts/render.mjsbundles once, renders stills withrenderStill, renders demos as PNG frames for the GIF step and renders the explainer withrenderMedia. - Icon SVG.
icon.tsxstays pure SVG, so esbuild bundles it andrenderToStaticMarkupwrites outicon.svg. - Manifest rows. Each render writes a
report.jsonand Markdown rows for the target repo'sdocs/assets/MANIFEST.md, which says how every file was made. - Fonts. Inter, JetBrains Mono and Space Grotesk, through
@remotion/google-fonts. Apple's SF fonts are never bundled; mockups ask the OS for its UI font instead. - No tokens. Montage reads the sibling project clones next to it, never the GitHub API, so rendering doesn't need a token.
Day to day, adding a project goes like this:
cp -R src/projects/_example src/projects/<slug> # then follow docs/AUTHORING.md
npm run sync -- <slug> # pull the repo's own icons and marks in
npm run studio # preview everything
npm run still -- <slug> <compositionId> out.png # iterate on one frame
npm run render -- <slug> --out ../<repo>/docs/assets # render, check, and commit in that repo's PR
--only icon,gifs renders just some targets, --all does every project, and --list prints every composition with its output file, size and frame count. The first render fetches Chrome Headless Shell into node_modules/.remotion/, and renders run two frames at a time.

What's not there yet
Montage is in development, and its README is upfront about the gaps:
- Mockups, not captures. Product screens in Montage are React rebuilds of each app's UI from its own tokens and component code. Each repo's
MANIFEST.mdlabels them as Montage renders, and so do the captions on this site. - Not every local file is in git. Synced files and raw captures in
public/projects/<slug>/are gitignored, and some projects (the KITE Interactive site captures, for one) use files that nosources.jsonlists yet. A fresh clone can't render those until the files are copied in. - No vertical explainer. The standard describes a 1080×1920
ExplainerVertical; it isn't built. - No
deliverstep. Renders go toout/<slug>/or--out, and updating a repo'sMANIFEST.mdis still manual, helped by the generatedMANIFEST.rows.md. - Fonts need the network. Google Fonts are fetched at render time.
- No unit tests. The
_examplesmoke test is the safety net for now.
Next up: the vertical explainer and a deliver command that copies renders into a repo and updates its manifest, listing every raw capture so each project renders from a fresh clone, reproducing the older per-repo Remotion explainers so those can retire, and a unit test for outputs.ts and timeline.ts. Those are the two files where one wrong number changes every repo at once, so they've earned it.
Montage has its own card on the projects page, with the demo loop, the explainer and the stack at a glance.
Curious about the source? It's private, but access can be granted to anyone interested in contributing. Get in touch.

