← All articles

A one-minute film without a single video file

· Source: original

An AI agent made a one-minute film in a single HTML file with 1,700 lines of JS

A one-minute video with no video files, no images, and no samples. The entire film is a single HTML file: 1,700 lines of JavaScript, and they were written by an AI agent, not a human. 🎬

Inside, fire, an engraving, a 3D sphere, a pixel game, and music are synthesized. The scenes are drawn on Canvas using the "frame as a pure function draw(ctx, t)" pattern — each frame is computed from time t. The output is an MP4 render, and without a single stutter. 🎨

The agent checks the film itself by timecodes.

Counterexample: without defined rules, the same agent produces a dull linear intro — blue background, neon, everything crawls along linearly. With the rules — fire, an engraving, a 3D sphere, a pixel game, and music in a single one-minute video.

The video's code and implementation details — https://habr.com/ru/articles/1086766/

🎬 Work with video and multimedia?

Prompts for video and multimedia scenarios — right on topic:

🔗 The entire prompt library · "Video" category

A ready-made product on the topic: Short video pipeline on n8n: voiceover, editing, subtitles, and publishing to TikTok, Reels, and Shorts — grab it and apply it right away.

AIAutomation

🎁 Забери бесплатный набор AI-промптов

6 отобранных промптов для бизнеса, кода и контента + доступ к библиотеке 2000+. Без оплаты.

✈️ Get the kit on Telegram

Need ready-made automations for your business?

Browse products