[Open-source] One-stop AI short play creation tool, converts novels and scripts into animated short plays quickly.
![[Open-source] One-stop AI short play creation tool, converts novels and scripts into animated short plays quickly.](https://yy123.ink/api/img/1796370672875-z6qcl9.png)
1. Project Overview
2. Open Source License
Licensed under Apache-2.0
3. Screenshots
4. Feature Overview
Toonflow is an AI short film creation tool that can use AI technology to automatically convert novels into scripts, and combine AI-generated images and videos to achieve efficient short film creation. With Toonflow, you can easily complete the entire process from text to image, making short film production more intelligent and convenient.
Main Functions
Toonflow is an AI workstation for short film production, which builds a complete closed loop around 'planning → screenwriting → shot planning → post-production' and supports localized, programmable, and sustainable production processes.
-
✅ Infinite Canvas Production Platform
Organize scripts, characters, shot planning, materials, and video nodes in a form similar to infinite canvas, support free arrangement, backtracking, and parallel production, and are not limited by linear steps. -
✅ Three-layer Agent Collaboration System
Decision-making layer, execution layer, and supervision layer work together to cover task decomposition, content generation, quality review, and revision feedback, improving stability and consistency of the final product. -
✅ Persistent Agent Memory
Cross-session memory system based on local ONNX vector search, supporting short-term messages, long-term summaries, and semantic recall, ensuring continuous multi-round creation. -
✅ Programmable Vendor System
Supports writing vendor TypeScript logic directly in the settings center and takes effect immediately without modifying the source code or restarting, facilitating privateization and multi-model access. -
✅ Chapter Event Graph-Driven Adaptation
Automatically extracts and structures chapter events from the original work, and the script adaptation calls the context according to the event graph, reducing the loss of long text information. -
✅ Skill File Configuration
Core prompt words of ScriptAgent and ProductionAgent are externalized as Markdown Skill files, supporting online editing and rapid optimization.
Use Cases
-
Short Video Content Creation -
Novel-to-Video Experiment -
AI Literary Adaptation Tool -
Script Development and Rapid Prototyping -
Video Material Generation
Multi-Language Support
Toonflow supports the following language interfaces:
| Language |
Language |
| Simplified Chinese |
Chinese (Simplified) |
| Traditional Chinese |
Chinese (Traditional) |
| English |
English |
| ไทย |
Thai |
| Tiếng Việt |
Vietnamese |
| Japanese |
Japanese |
| Русский |
Russian |
5. Tech Stack
Tech Stack
| Category |
Technology |
| Runtime |
Node.js 23.11.1+ |
| Language |
TypeScript 5.x |
| Backend Framework |
Express 5 |
| Database |
SQLite(better-sqlite3 / knex) |
| AI Integration |
Vercel AI SDK (OpenAI / Anthropic / Google / DeepSeek / Zhishu / MiniMax / Tongyi Qianwen / xAI) |
| Local Reasoning |
@huggingface/transformers(ONNX) |
| Real-Time Communication |
Socket.IO |
| Desktop Client |
Electron 40 |
| Image processing |
Sharp |
| Containerization |
Docker |
Project Structure
📂 build/ # Compiled Products📂 data/ # Runtime Data│ ├─ 📂 models/ # Local Reasoning Model (ONNX)│ ├─ 📂 oss/ # Object Storage (Materials/Roles/Scenes)│ ├─ 📂 serve/ # Production Environment Entrance│ ├─ 📂 skills/ # Agent Skill Prompt Words│ └─ 📂 web/ # Frontend Compiled Products (Built-in)📂 docs/ # Document Resources📂 env/ # Environment Configuration📂 scripts/ # Build and Auxiliary Scripts📂 src/├─ 📂 agents/ # AI Agent Module│ ├─ 📂 productionAgent/ # Production Agent│ └─ 📂 scriptAgent/ # Script Agent├─ 📂 lib/ # Public Library (Database Initialization, Response Format)├─ 📂 middleware/ # Middleware├─ 📂 routes/ # Routing Module│ ├─ 📂 agents/ # Agent Memory Management│ ├─ 📂 artStyle/ # Style Management│ ├─ 📂 assets/ # Material Management│ ├─ 📂 assetsGenerate/ # Material Generation│ ├─ 📂 cornerScape/ # Storyboard Management│ ├─ 📂 general/ # General Interface│ ├─ 📂 login/ # Login Authentication│ ├─ 📂 migrate/ # Data Migration│ ├─ 📂 modelSelect/ # Model Selection│ ├─ 📂 novel/ # Novel Management│ ├─ 📂 other/ # Other Functions│ ├─ 📂 production/ # Production Management│ ├─ 📂 project/ # Project Management│ ├─ 📂 script/ # Script Generation│ ├─ 📂 scriptAgent/ # Script Agent Interface│ ├─ 📂 setting/ # System Settings│ ├─ 📂 task/ # Task management│ └─ 📂 test/ # Test Interface├─ 📂 socket/ # WebSocket Real-time Communication├─ 📂 types/ # TypeScript Type Declaration├─ 📂 utils/ # Tool Function├─ 📄 app.ts # Application Entry├─ 📄 core.ts # Core Initialization├─ 📄 env.ts # Environment Variable Handling├─ 📄 err.ts # Error Handling├─ 📄 logger.ts # Log Module├─ 📄 router.ts # Route Registration└─ 📄 utils.ts # Common Tools📄 Dockerfile # Docker Build File📄 electron-builder.yml # Electron Packaging Configuration📄 skillList.json # Skill List📄 LICENSE # License (Apache-2.0)📄 NOTICES.txt # Third-Party Dependency Declaration📄 package.json # Project Configuration📄 tsconfig.json # TypeScript Configuration
Acknowledgments
Thanks to the following open-source projects for providing strong support to Toonflow:
-
Express - Fast, Open, and Minimalistic Node.js Web Framework -
AI SDK - TypeScript-focused AI Toolkit -
Better-SQLite3 - High-performance SQLite3 Binding Library -
Sharp - High-performance Node.js Image Processing Library -
Axios - Promise-Based HTTP Client -
Zod - TypeScript-first Pattern Validation Library -
Socket.IO - Real-time Bidirectional Event Communication Engine -
Electron - Cross-platform Desktop Application Development Framework -
Hugging Face Transformers - Local ML Reasoning Library
6. Source Code Repository
Open-source project address:
https://github.com/HBAI-Ltd/Toonflow-app
Next steps