Make scroll-stopping vertical promo videos for your app with HTML, a little JavaScript and code-generated music. No video editor, no After Effects, no stock music, no subscriptions. 4K60 output from a laptop or a 1 GB cloud sandbox.
Written for humans and for AI coding agents (Claude Code, Codex, Cursor, Copilot, Gemini CLI…).
Left/right: real TikTok/Reels videos for estuda+, a free study app (on-screen text in Portuguese). Center: the English starter template in this repo.
I'm an indie dev from Brazil. I built a free study app and needed videos for TikTok and Instagram. Editors were slow and the results looked generic. So I asked: what if a video were just a web page that knows what to draw at any instant t?
That turned into a tiny pipeline. With it I made five promo videos in two weeks, each one better than the last. This repo packages the pipeline, the storytelling rules I learned (some the hard way), and instructions an AI agent can follow to make a video for your app from scratch.
scene.html ──seek(t)──▶ Playwright screenshots every frame ──▶ ffmpeg ──▶ video.mp4 (1080p or 4K60)
soundtrack.py ──numpy──▶ lo-fi music + whooshes/pops synced to the same timeline ──▶ muxed in
- A scene is one HTML file (1080×1920) with
const DURATIONand a pure functionseek(t)that positions everything for instantt. There are no timers and no CSS animations. Because every frame is deterministic, each one can be rendered and reviewed individually. kit/render.pyopens it in headless Chromium, callsseek(i/fps)for every frame, screenshots, and pipes to ffmpeg.kit/sound.pysynthesizes the music and sound effects from math, so there's zero copyright risk. You place each sound at the same second the animation happens.--stillsrenders single frames in seconds, so you (or your agent) can look at the video before spending minutes on a full render.
git clone https://github.com/matheusvibecoder-vibecodas/framezero && cd framezero
pip install -r requirements.txt && python3 -m playwright install chromium # add --with-deps on fresh Linux
# 1) look at a few frames (2 seconds)
python3 kit/render.py templates/starter.html out/shot --stills 0,3.5,6.6,10.9
# 2) make the soundtrack and the full video (1080p30, ~2 min)
python3 templates/soundtrack.py out/soundtrack.wav
python3 kit/render.py templates/starter.html out/starter.mp4 --audio out/soundtrack.wav
# 3) final quality: 4K60, low-RAM chunked mode
python3 kit/render.py templates/starter.html out/starter-4K.mp4 --scale 2 --fps 60 --crf 16 \
--audio out/soundtrack.wav --frames-dir /tmp/framesThen copy templates/ and make it yours: change the CONFIG block, redraw appUI() (or drop in screenshots), and keep the soundtrack's times in sync.
Point your agent at the repo and say something like:
"Read AGENTS.md. Make a 15–25 s vertical promo for my app (screenshots in
./shots). The hook should be a POV. Lo-fi music. Show me stills before rendering."
AGENTS.mdis the operating manual: the workflow, the hard rules, the QA loop and the known pitfalls. Claude Code, Codex, Cursor, Gemini CLI and Copilot all pick it up.skills/framezero/SKILL.mdis the same knowledge as an installable Agent Skill. Copy the folder to~/.claude/skills/or to your agent's skills dir.llms.txtis a map of the repo for LLMs.
The workflow is designed around what agents are good at (writing deterministic code) and what they're bad at (judging motion they can't see). The answer is contact sheets of stills: agents can look at those and judge them. One rule matters most: "vision points, the DOM decides." Use the screenshot to spot a problem, then confirm it by measuring the element.
| Rule | Why |
|---|---|
Frame 0 is the thumbnail and the hook. All hook text is fully visible at t=0. No fade-in and no black intro. |
People decide in under a second, and the first frame is what shows in the grid. |
| Context by second 3 ("5 things it does"), then a pattern interrupt every 2–4 s. | Use a new color, a zoom, a label or a sound to reset attention. |
| Show the real product. Use real screens in a phone, plus camera moves and labels. | Viewers trust UI more than adjectives. |
| Save the best for last and say so ("the last one is the best"). | An open loop keeps people watching. |
| Text-only, big, inside the safe zone (x 80–940, y 220–1480 at 1080×1920). | Most people watch muted, and the TikTok/Reels UI covers the edges. |
| Every visual event has a sound. Whoosh before cuts, impact on slams, pop on labels, coin on rewards. | Sound makes motion feel physical, even at low volume. |
| Seamless loop. The last 0.4 s wipes back into frame 0. | Rewatches count. |
| End with a CTA that matches your stage. Before launch, "coming soon · follow to know when it launches". | A "link in bio" to nothing loses trust. |
Full guide: docs/.
All of these were made with this kit, and every one has sound and a 4K60 master.
#4 App tour (39 s), "POV: I found the app that studies with me". It shows 5 features on real screens, with a Stories-style progress bar and a lo-fi track. → examples/estuda-tour
#3 Daily challenge quiz (33.5 s), "Bet you can't get all 3". It's built to get comments.
#2 AI tutor (25 s), "Stuck on homework at 11:47 pm?"
What we learned along the way, including the flops, is in docs/08-case-study-estuda.md.
Open a Show your video issue. The best ones get featured here. New to the code? Try a good first issue or read CONTRIBUTING.md.
Want to see a video about framezero? It's in examples/framezero-promo, and the MP4 is attached to the v0.1.0 release.
kit/ the engine — render.py, assemble.sh (4K in 1 GB RAM), motion.js (helpers), sound.py (synth), base.css (Inter), icons.svg
templates/ starter.html + soundtrack.py — a complete 12.6 s English promo to copy
examples/ estuda-tour/ — the real 39 s tour video (scene + screenshots + soundtrack)
docs/ 01 method · 02 story & hooks · 03 animation · 04 phone & camera · 05 sound · 06 rendering · 07 publishing · 08 case study · 09 QA checklist
skills/ framezero/SKILL.md — Agent Skill
AGENTS.md operating manual for AI agents
Why not Remotion / After Effects / CapCut? Remotion is great but needs React and a bundler. After Effects and CapCut are manual and hard for an agent to drive. framezero is plain HTML + JS + Python with nothing to configure, and your agent already knows all three.
Do I need a GPU? No. Rendering is CPU-only. A 39 s 4K60 video takes about 23 minutes on a tiny 1-vCPU sandbox, and much less on a laptop.
Can I use trending TikTok sounds instead? Yes. Render with the code-generated track as a safe default, then pick a trending sound in the app when posting and lower the original audio.
Is the music really copyright-free? Yes. It's generated by kit/sound.py from sine waves and noise, and nothing is sampled.
Code and docs: MIT. The bundled Inter font is under the SIL Open Font License. The estuda+ name, logo and app screenshots in examples/ and media/ are © Matheus Patricio Pessoa Santana. They are included as a reference and are not covered by the MIT license, so don't reuse them in your own videos. See NOTICE.md.






