CLI tool
xiejunjie524/handdraw-story-video avatar
xiejunjie524/handdraw-story-video

handdraw-story-video derives line art from one colour master per scene

Turn hand-drawn story illustrations into 35–45 second line-reveal and gradual-coloring videos with HyperFrames.

814 stars112 forksPythonMIT

At a glance

What is it?
handdraw-story-video turns seven to nine hand-drawn story images into a 35 to 45 second vertical video by revealing line art from left to right and then filling in colour along the same direction. Each scene needs one colour master and nothing else from an image generator. The pipeline spans four ecosystems, GSAP has to be copied into the project by hand, and the MIT grant covers code only.
Who is it for?
Adopt handdraw-story-video if you already have, or can get, seven to nine colour master images and you want a repeatable vertical video out of them, because the one-master-one-scene rule is what keeps generation calls to one per scene and makes the render reproducible. Check three things first.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 122 days ago.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • xiejunjie524/handdraw-story-video814 ★ · +49
Star history
Repository2026-09-172026-11-22
xiejunjie524/handdraw-story-video765814

49 Stars in the last 66 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

One colour master per scene becomes two perfectly aligned images

The whole pipeline rests on a single rule about how images enter it. Each scene uses one independent colour master image, and the black and white line art is extracted locally so that the two align exactly. The video reveals the line art from left to right first, then fills in low-saturation colour along the same direction. Nothing is redrawn in between. That is why the feature list says line art and colour both advance from left to right and the image generation model is not called repeatedly: the generator runs once per scene, and both passes are cut from the same master. The script that does the extraction takes two paths as arguments, the colour source and the line destination. For a seven to nine scene video that is seven to nine generation calls rather than two per scene, and the alignment of the two layers is a property of the file rather than something the renderer has to solve.

The quick start crosses four ecosystems in six commands

Setup moves across Python, npm, the filesystem, and a system binary before any code runs:

bash
git clone https://github.com/xiejunjie524/handdraw-story-video.git
cd handdraw-story-video
python -m venv .venv
# Windows: .venv\Scripts\activate
# macOS/Linux: source .venv/bin/activate
pip install -r requirements.txt
npm install gsap

requirements.txt holds three lower bounds and nothing else: numpy at 1.24 or newer, opencv-python at 4.8 or newer, and requests at 2.31 or newer. No upper bound appears on any of them, so a resolve a year from now lands wherever those libraries have moved to. FFmpeg is a stated requirement and is in none of these files, because it is a system binary rather than something pip installs. HyperFrames is named as an npm package, and the Node.js floor is 18. So the dependency picture is three Python libraries without ceilings, one npm library installed by hand later, one npm tool invoked through npx, and one binary you have to have already.

GSAP has to be copied into the project after npm installs it

GSAP arrives twice, in two separate steps, and the second one is manual. The npm install puts the library under node_modules. Then the project needs a copy in the directory HyperFrames reads, which is done with two commands:

bash
mkdir -p hyperframes/assets/vendor
cp node_modules/gsap/dist/gsap.min.js hyperframes/assets/vendor/gsap.min.js

Windows gets the same two operations written differently, as a `New-Item` for the directory and a `Copy-Item` for the file. So a tree that has only ever run npm install has no animation library where the renderer expects one, and there is no script that does the copy for you. The file that gets vendored is the minified distribution specifically, not the module build. The front page names GSAP 3 as installed through npm and subject to its licence terms, and the asset section later repeats GSAP alongside fonts and music as things the MIT grant does not cover.

The render step takes one worker and an output name you type

The last three commands are the build, a check, and a render:

bash
python scripts/build_story.py story.json hyperframes/index.html --check-assets
npx hyperframes check hyperframes/index.html --json
npx hyperframes render hyperframes/index.html --output renders/story-v1.mp4 --workers 1

The build takes the story file and the page it should produce, and the `--check-assets` flag makes it verify the referenced files before anything is rendered. The check then runs over the generated page with `--json`, so the result is machine readable rather than something you read on a terminal. Two things follow from the render line. The worker count is pinned to 1, so any parallelism is a parameter you pass rather than something the pipeline decides for you. And the output name carries a version suffix that is yours to change, which is why the page says not to overwrite an old render and to use a new output filename each time. That rule is housekeeping you have to keep by hand, since nothing in the pipeline renames the previous file.

Two example config files and a provider name on one of them

The front page links a single one-click video configuration at config.example.json. The repository root holds a second template, config.atlascloud.example.json, and the provider name in that filename appears nowhere in the visible text of the page. That sits next to a feature list entry saying the project is not bound to an image generation service, a music source, or a private API. The two statements are compatible in one reading and not in another: nothing here requires a provider, and something named after one ships as an example. A separate page in the docs directory is pointed at for connecting an image generation model, and requests sits in requirements.txt while the two scripts named on the page take file paths rather than URLs. Which template you edit is worth settling before you edit one, because the file you pick decides which image source the rest of the run expects.

The framing rules forbid the crop field the schema already carries

The scene schema is short enough to print in full:

json
{
  "id": "scene-1",
  "duration": 5,
  "caption_lines": ["凌晨四点,", "他总会经过那家早餐店。"],
  "line_image": "assets/images/scene-01-line.png",
  "color_image": "assets/images/scene-01-color.png",
  "crop": {"scale": 1, "x": 0, "y": 0}
}

Six fields, one of which is a crop object with scale, x, and y. The framing rules then say eight scenes at about five seconds each, with every scene a different composition, and cropping and scaling explicitly not allowed to make up the length. So the crop field exists and the prose declines to use it that way. The rest of the rules are drawing instructions the generator has to obey: the subject usually in the lower 45% to 55% of the frame to keep a large area of paper white, at most two or three people per frame, two key background anchors, and no crowds, dense architecture, or large blocks of black line. Subtitles cap at three lines of roughly eighteen Chinese characters, and music is chosen per story rather than fixed into the template.

The repository root is itself the installable Codex Skill

There are two entry points into the same pipeline, and the second one is unusual. The front page states that the repository root already conforms to the Codex Skill structure, and the tree carries SKILL.md at the root next to README.md and LICENSE. To use it that way you copy or link the repository into `$CODEX_HOME/skills/handdraw-good-deed-story`, then trigger it with a request in the shape of making a 40 second line-art gradually-colouring warm story. So the unit you install is the whole tree rather than a package, and the command line path with its two scripts and three npx commands is the other one. The runnable example lives at examples/soy-milk-at-4am/story.json, and the caption lines in the schema are Chinese. A `tests/` directory, an `agents/` directory, and a `scripts/` directory sit alongside it, and the docs directory holds usage, image generation, prompt, and story specification pages.

MIT covers the code and nothing else in the tree

The licence section separates code from content, and it is unusually explicit. The code is released under MIT. Generated images, fonts, GSAP, music, and other third-party assets do not automatically come under MIT, and the user is told to follow the terms of each provider and each asset source. So a rendered video you produce is yours to distribute but not something the repository's licence speaks for, and the fonts and the animation library are the two places that is easiest to forget. The same section states what the repository does not contain: no API keys, no browser sessions, no reference videos, no downloaded music, and no complete render history. That last item connects to the render command, since finished videos are expected to accumulate in your own working copy rather than being tracked here, which is consistent with the instruction to write a new output filename each time.

Editorial conclusion

Adopt handdraw-story-video if you already have, or can get, seven to nine colour master images and you want a repeatable vertical video out of them, because the one-master-one-scene rule is what keeps generation calls to one per scene and makes the render reproducible. Check three things first. The MIT grant covers the code and nothing else in the tree, so images, fonts, GSAP, and music carry their own terms and you are the one who has to honour them. The scene schema carries a crop object even though the framing rules say cropping and scaling cannot be used to pad duration, so treat crop as framing rather than as a way to hit a length. And the front page here is the Chinese edition, with usage, image generation, prompt, and story specification pages in the docs directory carrying the detail the summary does not. If you need anything other than a fixed 40 second vertical format, or if you want the generator to invent the illustrations rather than illustrate ones you supply, this is the wrong tool.

Frequently asked questions

How many images does handdraw-story-video need for one video?

One colour master image per scene, for seven to nine scenes, and nothing from an image generator after that. The black and white line art is extracted locally from each master so the two layers align, which is why the page says the generation model is not called repeatedly.

What are the default output settings in handdraw-story-video?

The defaults are 40 seconds, 720 by 960, and 30 fps, described as suited to vertical platforms. The stated output range is 35 to 45 second portrait short videos, with both the line art and the colour advancing from left to right.

What does handdraw-story-video need installed before it runs?

Python 3.10 or newer, Node.js 18 or newer, FFmpeg, the HyperFrames npm package, and GSAP 3 installed through npm. requirements.txt carries only three lower bounds: numpy at 1.24 or newer, opencv-python at 4.8 or newer, and requests at 2.31 or newer. FFmpeg is a system binary and is not in that file.

How does handdraw-story-video validate a story before rendering?

The build step runs with a --check-assets flag, and the page also names automatic checks on duration, repeated assets, subtitle line count, and font size range. A separate npx hyperframes check then runs over the generated page with --json. The render itself is invoked with --workers 1 and a new output filename each time.

Can I use handdraw-story-video output commercially?

The licence section says the code is MIT but that generated images, fonts, GSAP, music, and other third-party assets do not automatically come under MIT, and that you must follow each provider's terms and the terms of the asset source. The repository states it contains no API keys, browser sessions, reference videos, downloaded music, or complete render history.

Official sources

  1. Issues
  2. License: MIT
  3. README
  4. xiejunjie524/handdraw-story-video on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/xiejunjie524-handdraw-story-video.svg)](https://hysenlabs.com/projects/xiejunjie524-handdraw-story-video)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/xiejunjie524-handdraw-story-video.svg)](https://hysenlabs.com/projects/xiejunjie524-handdraw-story-video)

Was this useful?