I just shipped markdown_video — write plain markdown, render real MP4 videos. Scenes, code, terminals, music, captions live in one readable text file: no timeline editor, no binary project file. The launch video on the site is itself a 2kb markdown file you can re-render from the repo.
It's fully built on Vercel, and the rendering architecture is the part I think this community will find interesting:
Fork-per-render in Vercel Sandbox.
Server-side rendering needs Chromium + ffmpeg + minutes of CPU — impossible in a function. So I provisioned a warm template sandbox (Node + exact Playwright Chromium + ffmpeg + the CLI bundle baked in).
Each render request forks the template with networking disabled, writes the markdown in, runs the CLI, reads back validated PNG/MP4 bytes, and the fork is destroyed. Warm forks mean no cold-start penalty — a full render completes in ~14 seconds end-to-end.
Untrusted input as a design constraint. The MCP endpoint renders documents written by strangers, so everything is defensive: networkPolicy deny-all, magic-bytes output validation, hard-capped durations, fail-closed rate limiting through Neon Postgres.
Two things production taught me that the docs couldn't: • The sandbox filesystem layout differs from what I expected — files land under /vercel (the user's home), not the paths I assumed. Probe the real thing before writing provisioning scripts. • The OIDC token isn't an env var at runtime — it arrives per-request through the request context (Symbol.for("/request-context")). Once I read it from there, zero manual wiring was needed.
The same document also renders in the browser editor (ffmpeg.wasm), or via npm CLI for CI. Everything is open source, MIT:
→ repo: https://github.com/Avik-creator/markdown_video
→ live editor: https://markdownvideo.avikmukherjee.com
→ sandbox rendering deep-dive: https://github.com/Avik-creator/markdown_video/blob/main/docs/sandbox-rendering.md
Happy to answer anything about the Sandbox setup — and genuinely curious if others are using Sandbox for CPU-heavy untrusted workloads.