Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)

Shrey-55/3b1b-explainer

Media & DesignVideo making

A local Manim pipeline that turns technical papers into animated explainer videos with narration and subtitles.

112
12
Python
MIT
new today
+112 stars in 19h

What it is

This is a small local pipeline for producing 3Blue1Brown-style animated explainer videos about technical papers and concepts. It combines Manim CE for animation, an automatic layout auditor, and local Kokoro-82M text-to-speech for voiceover, plus generated .srt subtitles. Three worked examples ship with it: Muon, Shampoo, and LoRA, each in its own folder under videos/ with a script, narration, and scene definitions. The reusable engine lives in explainer/, while docs/teaching_principles.md records the pedagogical rules every script is checked against.

Setup

Install Python 3.12 or newer, ffmpeg, and a LaTeX installation; the README notes MacTeX or BasicTeX plus dvisvgm for Manim's MathTex. Then create a virtual environment and install dependencies (see the setup instructions):

python3 -m venv .venv
.venv/bin/pip install -r requirements.txt

Kokoro voiceover is optional. Without it, builds run with --tts silent. To enable narration, download kokoro-v1.0.onnx and voices-v1.0.bin from the kokoro-onnx model-files-v1.0 release into voiceover/models/:

mkdir -p voiceover/models
curl -L -o voiceover/models/kokoro-v1.0.onnx \
  https://github.com/thewh1teagle/kokoro-onnx/releases/download/model-files-v1.0/kokoro-v1.0.onnx
curl -L -o voiceover/models/voices-v1.0.bin \
  https://github.com/thewh1teagle/kokoro-onnx/releases/download/model-files-v1.0/voices-v1.0.bin

Build a video

From the repository root, run the build module with a video name as the argument (see the build commands):

.venv/bin/python -m explainer.build lora
.venv/bin/python -m explainer.build lora -q h
.venv/bin/python -m explainer.build lora -q l --tts silent
.venv/bin/python -m explainer.build lora --only S4_Bottleneck

The default is 720p30 with Kokoro voice; -q h gives 1080p60, and -q l --tts silent gives a fast 480p pass for checking visuals and layout. --only renders a single named scene for iteration. Swap lora for muon or shampoo to build the other examples. Outputs land in videos/<name>/output/ as an .mp4 plus an .srt. Set EXPLAINER_VOICE=bm_george to choose a different voice; the default is am_michael, and samples are in voiceover/samples/.

How a video is made

The README describes a seven-step workflow: research the primary sources into script.md; lay out the beat arc following the teaching principles; write one narration chunk per beat in narration.py; plan visuals and a colour ledger in script.md; write Manim scenes using the explainer/ components, with each beat wrapped in self.narrate(...); render at low quality and run the layout audit plus a review of frame contact sheets; and finally build Kokoro narration, concatenate silence-padded audio to avoid A/V drift, and merge subtitles. The README positions an existing AI coding-agent subscription as the planner/coder for the authoring steps, so no separate API key is required.

Constraints

This is a content-authoring pipeline, not a one-click topic-to-video generator. New topics require writing scripts and Manim scene code yourself, and the documented workflow assumes LaTeX and ffmpeg are available locally. Kokoro synthesis runs on CPU at roughly 2× real time, with audio cached by content hash. The included videos occupy several minutes each and are the reference material for the pipeline's output style.

HotRepo's take

On its first recorded day in the HotRepo new-project list (2026-12-02), the repository drew 100 stars and 10 forks in a growth window that began mid-morning UTC. There is only a single snapshot so far, so there is no baseline for reading a trend. What the repository does have is a complete, inspectable pipeline and three full example videos with a distinct visual and narration style, which makes the technique auditable rather than just described.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. HeyChengC/wallstreet-explainerA Claude Code skill and script toolkit for producing Wall Street-style finance explainer shorts from sourced footage, narration and code-drawn graphics.JavaScript400
  2. Vincentwei1021/anything2explainerTurns any topic into a narrated, code-drawn explainer video through a Claude Code or Codex skill.TypeScript3,088
  3. ManimCommunity/manimPython framework for programmatically rendering precise mathematical animation videos, aimed at educators and technical content creators.Python42,558
  4. codepawl/creator-generalistA pack of AI agent skills for producing 2D explainer graphics and 3D animated shorts with free creative tools.Python107
  5. threerocks/sweety-handdraw-videoTurns a topic, article or story into a narrated hand-drawn explainer video, with stroke-by-stroke drawing and voiceover timed to the script.JavaScript842