**A full-stack TypeScript platform for automated AI short-drama production**
[](https://nodejs.org)
[](https://vuejs.org)
[](https://creativecommons.org/licenses/by-nc-sa/4.0/)
[](https://github.com/chatfire-AI/huobao-drama/releases/latest)
**English** | [็ฎไฝไธญๆ](README.zh-CN.md) | [ๆฅๆฌ่ช](README.ja.md) | [ํ๊ตญ์ด](README.ko.md)
[Features](#-features) โข [Quick Start](#-quick-start) โข [Walkthrough](#-visual-walkthrough) โข [Desktop App](#-desktop-app-recommended) โข [Deployment](#-deployment)
**Text, image, and video AI capabilities โ one key unlocks everything**
After deploying, paste the key in "Settings โ Huobao Quick Setup" to write three recommended configs in one click
---
## ๐ Overview
Huobao Drama is an AI-powered short-drama production platform that automates the entire pipeline: script generation, character design, storyboard breakdown, and video compositing.
### ๐ฏ Core Value
- **๐ค AI-Driven**: LLMs parse scripts and extract characters, scenes, and storyboard information
- **๐จ Intelligent Creation**: AI image generation for character designs and scene backgrounds
- **๐น Video Generation**: Text-to-video and image-to-video models automatically produce storyboard clips
- **๐ End-to-End Workflow**: A complete pipeline from idea to finished episode
### ๐ ๏ธ Architecture
```
frontend/ โ Nuxt 3 + Vue 3 + TypeScript (pure CSS, no UI framework)
backend/ โ Hono + Drizzle ORM + Mastra AI Agents + better-sqlite3
backend/workspace/skills/ โ Agent skill definitions (SKILL.md, editable in the UI)
desktop/ โ Electron desktop app (main process + esbuild + electron-builder dmg/exe)
data/ โ Generated assets and the SQLite database
```
---
## โจ Features
### ๐ญ Character Management
- โ
AI-generated character designs
- โ
Batch character generation
- โ
Character image upload and management
### ๐ฌ Video Tasks
- โ
Automatic AI video-task generation
- โ
Scene descriptions and video prompt generation
- โ
Batch video generation per task
### ๐ฅ Video Generation
- โ
Text-to-video generation
- โ
FFmpeg per-shot compositing and subtitle handling
- โ
Full-episode stitching and export
### ๐ฆ Asset Management
- โ
Unified asset library
- โ
Local storage support
- โ
Task progress tracking
### ๐ค AI Agents
Four built-in Mastra agents with database-backed configuration and Skill extensions:
| Agent | Role |
|---|---|
| `script_rewriter` | Novel โ formatted script rewriting |
| `extractor` | Intelligent extraction and dedup of characters / scenes / props |
| `storyboard_breaker` | Script โ storyboard sequence breakdown |
| `prompt_generator` | Image prompts for characters/scenes/props + storyboard video prompts |
### ๐ Multi-Language UI
The interface ships in **ไธญๆ / English / ๆฅๆฌ่ช / ํ๊ตญ์ด**, with a global setting for AI-generated content language.
### ๐ Multi-Provider Support
| Type | Providers |
|---|---|
| **Text** | OpenAI (compatible APIs), Gemini |
| **Image** | OpenAI, Gemini, Volcano Engine |
| **Video** | Volcano Engine Seedance 2.0 (Standard / Fast / Mini), MiniMax H3, Alibaba Bailian Wan 3.0 (Prime / Standard) |
---
## ๐ Quick Start
### ๐ Requirements
| Software | Version | Notes |
|---|---|---|
| **Node.js** | 20+ | Runtime for frontend and backend |
| **npm** | 9+ | Package manager |
> **Zero-install database**: Bundled SQLite (single file in the project data directory) โ no database server required.
> **No FFmpeg install needed**: Binaries ship via the `ffmpeg-static` / `ffprobe-static` npm packages โ works out of the box.
### โ๏ธ Environment Variables
No config files โ everything is set via environment variables (all have defaults; local dev needs zero configuration):
| Variable | Default | Description |
|---|---|---|
| `SQLITE_PATH` | `