← Back to Leaderboard
Cshowlab

showlab/Code2Video

Three-agent framework that turns teaching topics into editable Manim videos

AI FrameworkQuickstart ↓
Engineering Health (Methodology)
B+ · 75/100
Maintenance Activity
● Updated 17d ago
Latest Release
Rolling commits (main)
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance31/35
Fork Adoption18/25
Release Cadence6/20
License Clarity20/20
APICLI
Total Stars
★ 2,482
24h Growth
+4
7d Growth
+35
Forks
304

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

showlab/Code2Video Star History (2025-09-30 - 2026-12-03) ALL-TIME STAR HISTORY (2025-09 – 2026-12) +2.5k in 429d · avg +6/day 2.6k 1.3k 0 2025-09-30: ★ 12025-11-01: ★ 8042025-11-29: ★ 1,0262025-12-27: ★ 1,3642026-01-24: ★ 1,4772026-02-21: ★ 1,5202026-03-21: ★ 1,5602026-04-18: ★ 1,6092026-05-16: ★ 1,7212026-06-13: ★ 1,7682026-07-11: ★ 1,8342026-08-08: ★ 1,8622026-09-05: ★ 1,9982026-10-03: ★ 2,0782026-10-31: ★ 2,1812026-12-03: ★ 2,482 ★ 2.5k 2025-09 2026-05 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Code2Video is a Python orchestration framework that turns a knowledge point into an editable scene program rather than generating video frames directly. Planner expands the topic into a storyboard, Coder synthesizes debuggable Manim code, and Critic uses visual anchors to refine layout. The scene program defines both spatial composition and timing, and Manim Community v0.19.0 renders it.

The source layout centers on src/agent.py, with separate shell launchers for single topics and benchmark runs. Prompt templates live under prompts/, topic lists and metadata under json_files/, and the suggested layout groups generated cases under CASES/ by FOLDER_PREFIX. The observed customization points are prompts, topic inputs, model selection, and generated scene code; neither a formal plugin contract nor an inbound service API is established.

Key Capabilities & Differentiators

The single-topic runner accepts --knowledge_point. The benchmark runner reads long_video_topics_list.json and provides controls for model selection (API), output grouping (FOLDER_PREFIX), topic count (MAX_CONCEPTS), and parallel groups (PARALLEL_GROUP_NUM). Claude-4-Opus is the named recommendation for Manim code quality, and gemini-2.5-pro-preview-05-06 for visual review. Those recommendations do not establish a compatibility matrix across providers or model versions.

MMMC contains 117 curated learning topics inspired by 3Blue1Brown. eval_TQ.py evaluates knowledge transfer through TeachQuiz, eval_AES.py covers aesthetic and structural quality, and generation efficiency is tracked through token usage and execution time. These measures answer different questions: a successful render or a strong layout score does not establish that the lesson teaches the concept correctly.

Trade-offs & Limitations

Compared with direct video generators such as Veo3 and Wan2.2, Code2Video gives teams a scene program they can inspect, patch, and rerender. That is useful for equations, diagrams, and stepwise explanations; it is less compelling for footage-like imagery. Compared with hand-written Manim, it automates storyboarding and the first implementation pass, but rendering success still leaves mathematical correctness, teaching quality, and layout to be checked.

A saved scene program gives you a more repeatable rendering input, not a guarantee that a fresh model run will generate the same code. Hosted calls introduce provider quotas, variable token cost, and model-version dependencies. For unattended use, isolate generated-code execution from API credentials and shared files. The MIT license covers repository software; verify model-service terms and third-party asset rights separately.

Hardware & Deployment Guide

From src/, install Python dependencies with pip install -r requirements.txt and set up Manim Community v0.19.0. Put LLM and Gemini credentials in api_config.json, then try sh run_agent_single.sh --knowledge_point "Linear transformations and matrices" before scaling to sh run_agent.sh. IconFinder is optional via ICONFINDER_API_KEY, with collected MMMC icons available as a fallback.

The orchestration and rendering can run on your own machine, but the documented model path uses external APIs. No Docker deployment, offline model path, or fixed GPU/VRAM requirement is established. Size workers using a representative render and measure memory, runtime, and provider usage before raising batch parallelism. There is no tagged release in the supplied metadata; dated project updates record dependency cleanup and the addition of the dataset-hosted icon fallback.

Scene representation: Executable Manim code controls both object placement and animation timing.
Agent roles: Planner expands the topic, Coder synthesizes debuggable scene code, and Critic refines layout using visual anchors.
Model configuration: api_config.json holds provider credentials; the named quality recommendations are Claude-4-Opus and gemini-2.5-pro-preview-05-06.
Batch control: MAX_CONCEPTS limits topic count (-1 selects all), and PARALLEL_GROUP_NUM controls parallel groups.
Evaluation: MMMC covers 117 curated topics and separates TeachQuiz, AES, and generation efficiency.
Asset sourcing: IconFinder supplies optional icons; collected assets are available in the MMMC dataset as a fallback.
Best For

Educators and research teams prototyping diagram-heavy lessons that need editable scene code, or comparing generation workflows on the MMMC benchmark.

Skip If

You need an offline pipeline out of the box, a turnkey production service, or photorealistic footage rather than programmatic visualization.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

APICLI
cd src/
pip install -r requirements.txt

Comparison vs. Top Voice, Vision & Video Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
Code2Video ★2.5k+35PythonMITThree-agent framework that turns teaching topics into editable Manim videos
ViMax13.1k+59PythonMITAgentic video framework for turning ideas and scripts into reviewable multi-shot
whisperX26.5k+472PythonBSD-2-ClauseBatched Whisper with forced alignment for word timings and optional speaker labe
hypit32.4k+697TypeScript—An SVML framework and CLI for turning video references into reusable workflows

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/showlab/Code2Video.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

showlab/Code2Video Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about Code2Video

How do I integrate Code2Video into an existing pipeline?

Start with src/run_agent_single.sh for individual topics or src/run_agent.sh for a topic list. The outputs are grouped under CASES/ by FOLDER_PREFIX, and the generated Manim code is the artifact to inspect or modify. The configured APIs are upstream model and asset services; no inbound HTTP API is documented. If an application needs one, add a job wrapper and run generated code in isolated workers without access to provider credentials.

Do I need a GPU, and how should I size a render worker?

The documented workflow calls hosted LLM and VLM APIs and renders with Manim Community v0.19.0 in the execution environment. No fixed GPU or VRAM requirement is specified. Start with one representative lesson and measure render time, peak memory, and model token usage before raising PARALLEL_GROUP_NUM; scene complexity and concurrent jobs determine practical capacity.

Can I use it commercially and keep the pipeline on my own infrastructure?

The repository's MIT license permits commercial use, modification, and redistribution of the software, subject to retaining the required copyright and license notices. You can run the orchestration and rendering yourself, but the documented workflow still depends on external model APIs. Review provider data-handling terms and verify rights to any icons, benchmark reference videos, and other third-party assets separately.

When is it a better fit than hand-written Manim or direct video generation?

Use Code2Video when equations, diagrams, and visual sequences need to remain inspectable and editable as Manim code. Use hand-authored Manim when precise control matters more than automating the first draft. Consider direct video generators such as Veo3 or Wan2.2 when footage-like visuals matter more than owning an editable scene program. The example comparisons do not establish a general performance ranking.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining showlab/Code2Video? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature showlab/Code2Video on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare