Every animated short I see now looks the same.

Stock footage, AI generated faces that change every three seconds, and a voiceover that sounds like it was recorded in a hurry. It gets views, but it does not feel made. It feels assembled.

So I built a kit that draws everything in code. Every character, every background, every transition, every caption, the music, the sound effects. All of it, in code.

Repo: https://github.com/farhanhabibfaraz/code-drawn-animated-shorts

Voiceover in, short out

The idea is simple. You give it a voiceover and a script. You get back a captioned, scored, fully code-drawn 2D animated 9:16 short, 1080x1920, 30fps.

No stock images. No AI image or video generator. No After Effects.

Two episodes are already in the repo, EP01 and EP02, so you can see a finished short before you touch any code.

The pipeline, in five steps

  1. Transcribe. faster-whisper large-v3 transcribes phrase by phrase, with timing for every phrase. Long Bangla files make Whisper drop whole lines, this way it does not.
  2. Cut. numpy and ffmpeg cut false starts and repeats, tighten every pause to 0.2s, then high-pass, compression, and loudness.
  3. Audio. The music is synthesised in numpy, Rhodes chords, bass, drums, vinyl crackle, with auto-ducking when the voice comes in. Whoosh, pop, slam, ding, and shimmer sound effects, mixed to minus 14 LUFS.
  4. Preview. Playwright renders stills and a contact sheet at any time, so you check the look before you render.
  5. Render. Chromium, Canvas 2D, and ffmpeg render frame by frame, with parallel workers based on your CPU cores.

Output is a master MP4 and a lighter share MP4, plus the clean voice and the final mix.

Why code, and not AI video

AI video is fast, but it is not consistent. A character changes face, a hand bends the wrong way, a background shifts between shots.

Code is the opposite. Once you draw a character in lib.js, that character stays the same in every scene, every episode, every time. The style guide is a risograph paper-cut look, with a fixed palette and a fixed character sheet, so the whole channel looks like one channel.

It also runs on CPU. No GPU needed. On a 4-core machine, a 1.5 minute short takes about 4 minutes to transcribe and about 7 minutes to render.

A small part of the prompt

This is part of the Claude prompt from docs/CLAUDE_PROMPTS.md, not the whole thing:

Role: You are the episode builder for a code-drawn Bangla animated short.
Task: Take the voiceover, the script, and the timing file, and build one episode.
Constraints: Draw every scene in scenes.js using only the lib.js drawing functions. No stock images, no AI images, no external video. Keep captions in sync with the voice, and keep the 9:16 safe zone clear.
Output Contract: A finished episode folder with captions, scenes, sound cues, and a render that passes the preview check.

The full prompts, the engine API, the workflow doc, and the style guide are in the repo. If you want the full prompt pack for your own episode, lets connect, my contacts are at the end of this post.

Make your first short in six steps

  1. Install the dependencies once: ffmpeg, Python requirements, npm install, and Playwright Chromium.
  2. Copy episodes/_template to episodes/ep03-my-story.
  3. Put your voiceover in as vo_raw.wav.
  4. Run transcribe, then cut.
  5. Write captions.py, scenes.js, and sfx_cues.py, then run audio and preview.
  6. Run render. Your master and share MP4s land in episodes/ep03-my-story/out/.

A quick test render is five seconds, so you can check the look before you commit to a full render.

What I would love to know from you

Would you trust a fully code-drawn short more than an AI video short, or does the audience even notice the difference?

Try the kit, make one episode, and tell me in the comments what broke, or what looked wrong. That is how the next version gets better.

Mohammad Farhan Habib Faraz, Senior Prompt Engineer & Prompt team lead.
PowerinAI
Email: fh.faraz@gmail.com
Whatsapp: 01670309328