huobao-drama README

README проекта с github.com/chatfire-AI/huobao-drama. Одним файлом markdown: README.md.

🎬 Huobao Drama — AI 短剧生成平台 / AI Short Drama Generation Platform

基于 TypeScript 全栈的 AI 短剧自动化生产平台
A full-stack TypeScript platform for automated AI short-drama production

Node Version Vue Version License Download

中英双语 / Bilingual | 简体中文 | English | 日本語 | 한국어

获取 FireMux API Key

开源项目与下载


📖 项目简介 / Overview

Huobao Drama 是一个基于 AI 的短剧自动化生产平台,实现从剧本生成、角色设计、分镜制作到视频合成的全流程自动化。
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

🛠️ 技术架构 / Architecture

frontend/   — Nuxt 3 + Vue 3 + TypeScript(纯 CSS,无 UI 框架 / pure CSS, no UI framework)
backend/    — Hono + Drizzle ORM + Mastra AI Agents + better-sqlite3
backend/workspace/skills/ — Agent 技能定义,支持界面在线编辑 / Agent skill definitions (SKILL.md), editable in the UI
desktop/    — Electron 桌面版 / Electron desktop app(主进程 + esbuild + electron-builder / main process + esbuild + electron-builder)
data/       — 生成资源文件与 SQLite 数据库 / Generated assets and the SQLite database

✨ 功能特性 / Features

🎭 角色管理 / Character Management

🎬 视频任务 / Video Tasks

🎥 视频生成 / Video Generation

📦 资源管理 / Asset Management

🤖 AI Agents

内置 4 个 Mastra Agent,支持数据库配置和 Skill 扩展:
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

界面内置 中文 / English / 日本語 / 한국어 四种语言,并可全局设置 AI 生成内容的语言。
The interface ships in 中文 / English / 日本語 / 한국어, with a global setting for AI-generated content language.

🔌 多厂商适配 / Multi-Provider Support

类型
Type
支持厂商
Providers
文本
Text
OpenAI(兼容接口)、Gemini
OpenAI (compatible APIs), Gemini
图片
Image
OpenAI、Gemini、火山引擎
OpenAI, Gemini, Volcano Engine
视频
Video
火山引擎 Seedance 2.0(标准 / Fast / Mini)、MiniMax H3、阿里云百炼 Wan 3.0 (Prime / 标准)
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

数据库零安装:内置 SQLite(单文件,随项目数据目录存放),无需安装任何数据库服务。
Zero-install database: Bundled SQLite (single file in the project data directory) — no database server required.

FFmpeg 无需安装:项目通过 ffmpeg-static / ffprobe-static npm 包内置二进制,开箱即用。
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 <仓库根>/data/huobao.sqlite3
<repo>/data/huobao.sqlite3
SQLite 数据库文件位置
SQLite database file location
PORT 5679 后端服务端口
Backend service port
STORAGE_PATH <仓库根>/data/static
<repo>/data/static
生成文件存储目录
Generated-file storage directory
HUOBAO_DATA_DIR — 桌面版由 Electron 主进程注入(userData 数据根)
Injected by the Electron main process (userData data root)
WORKSPACE_PATH backend/workspace Agent 技能/提示词目录(桌面版指向 userData 可写副本)
Agent skills/prompts directory (desktop: writable copy under userData)
FRONTEND_DIST frontend/dist 前端静态产物目录
Frontend static build directory
FFMPEG_BIN / FFPROBE_BIN npm 内置二进制
bundled npm binaries
自定义 ffmpeg/ffprobe 可执行文件路径
Custom ffmpeg/ffprobe executable paths
PUBLIC_BASE_URL — Seedance 引用本地参考资源时所需的公网地址(服务器部署用)
Public URL Seedance needs to reference local assets (server deployments)

说明:AI 服务的 API Key、Base URL 和模型参数全部在 Web 界面的「设置」页配置并入库,不在配置文件/环境变量中维护。
Note: AI service API keys, base URLs, and model parameters are all configured in the web UI "Settings" page and stored in the database — never in config files or environment variables.

📥 安装依赖 / Installation

# 克隆项目 / Clone the repository
git clone https://github.com/chatfire-AI/huobao-drama.git
cd huobao-drama

# 安装后端依赖 / Install backend dependencies
cd backend && npm install

# 安装前端依赖 / Install frontend dependencies
cd ../frontend && npm install

🎯 启动项目 / Running

前后端分离,支持热重载:
Frontend and backend run separately with hot reload:

# 终端1:启动后端 / Terminal 1: backend
cd backend
npm run dev

# 终端2:启动前端 / Terminal 2: frontend
cd frontend
npm run dev

方式二:单服务模式 / Option 2: Single-service mode

后端同时提供 API 和前端静态文件:
The backend serves both the API and the frontend static files:

# 1. 构建前端 / Build the frontend
cd frontend && npm run generate

# 2. 复制构建产物到后端读取的目录 / Copy the build output where the backend expects it
# generate 产物在 .output/public,后端只读取 frontend/dist
# generate outputs to .output/public; the backend reads frontend/dist
cp -r .output/public dist

# 3. 启动后端 / Start the backend
cd ../backend && npm start

访问: http://localhost:5679
Visit: http://localhost:5679

🗄️ 数据库 / Database

内置 SQLite(better-sqlite3 + WAL 模式),数据库表在首次启动时自动创建(幂等重放 DDL 与种子数据),默认文件位于 data/huobao.sqlite3,可通过 SQLITE_PATH 重定向。桌面版数据存放在用户数据目录(~/Library/Application Support/HuobaoDrama/data/)。
Bundled SQLite (better-sqlite3 + WAL mode). Tables are created automatically on first launch (idempotent DDL replay + seed data). Default file: data/huobao.sqlite3, overridable via SQLITE_PATH. The desktop app stores data in the user-data directory (~/Library/Application Support/HuobaoDrama/data/).

从旧版 MySQL 迁移数据:
Migrating data from a legacy MySQL deployment:

启动时自动迁移(推荐):显式配置了 MySQL(DATABASE_URL 或 MYSQL_HOST)且 SQLite 为空库时,后端启动会自动探测并一次性导入全部表(行数逐表校验、单事务原子写入、失败自动回滚并在下次启动重试、成功后写 .mysql-imported 标记避免重复)。设 MYSQL_AUTO_IMPORT=false 可关闭。
Automatic migration on startup (recommended): When MySQL is explicitly configured (DATABASE_URL or MYSQL_HOST) and the SQLite database is empty, the backend automatically detects and imports all tables once (per-table row-count validation, single-transaction atomic writes, automatic rollback with retry on next launch, and a .mysql-imported marker to avoid re-importing). Set MYSQL_AUTO_IMPORT=false to disable.

# 也可手动执行(目标库非空需加 --force,写入前自动备份) / Or run manually (non-empty target requires --force; automatic backup before writing)
cd backend && npx tsx scripts/import-mysql-to-sqlite.ts

迁移只覆盖数据库行;旧部署 data/static/ 下的图片/视频等媒体文件需手动拷贝,否则历史素材无法访问。
Migration covers database rows only; media files (images/videos) under the old deployment's data/static/ must be copied manually, or historical assets won't load.

🔑 首次使用:配置 AI 服务 / First Use: Configure AI Services

启动后所有 AI 功能(文本/生图/视频)都需要先配置模型服务,未配置时页面顶部会有横幅引导:
All AI features (text/image/video) require model services to be configured first — a banner at the top of the page guides you until then:

  1. 打开「设置」页
    Open the "Settings" page

  2. 在「火宝快捷配置」中粘贴 Huobao API Key(前往 api.firemux.cn 获取),一键写入文本、图片、视频三条推荐配置
    Paste your Huobao API key in "Huobao Quick Setup" (get one at api.firemux.com) to write three recommended configs (text, image, video) in one click

  3. 或使用「手动模板」按厂商逐个添加,支持连通性测试
    Or add providers one by one via "Manual Templates", with connectivity testing

配置完成横幅自动消失,即可开始创建剧集生产。
Once configured, the banner disappears and you can start producing episodes.


📖 图文教程 / Visual Walkthrough

从小说到成片的完整制作流程。左侧进度栏始终标示当前所处阶段,跟着走即可。
The complete pipeline from novel to finished episode. The left progress rail always shows where you are.

第 1 步 · 创建项目 / Step 1 · Create a Project

首页点「新建项目」,填写剧名并选择画面比例(横屏 16:9 / 竖屏 9:16,创建后不可改)与画面风格(3D / 真实感等,影响全局生图提示词)。
On the home page click "New Project", pick a aspect ratio (16:9 landscape / 9:16 portrait, fixed after creation) and a visual style (3D, realistic, … — injected into every image prompt).

新建项目 / Create a project

项目卡片即项目列表,随时点入续作:

项目列表 / Project list

第 2 步 · 配置 AI 服务(首次) / Step 2 · Configure AI Services (first run)

设置页「火宝快捷配置」粘贴 API Key 一键写入三条推荐配置;或用「手动模板」按厂商自选模型(顶栏可随时切换当前模型,见第 5 步)。
Paste an API key in Settings → "Huobao Quick Setup" to write the three recommended configs at once, or add providers manually. The current model can be switched any time from the top bar (see Step 5).

AI 服务配置 / AI service setup

第 3 步 · 剧本阶段 / Step 3 · Script Stage

进入剧集工作台,先粘贴原始内容(小说文本),再点「AI 改写」生成拍摄剧本——按集拆分、标注场景与角色,改写时可换文本模型、调语气。满意后「保存并进入制作」。
Paste your source novel into the workbench, then hit "AI Rewrite" to produce a shooting script — split by episode with scenes and characters annotated. You can switch text models and tone while rewriting.

剧本阶段 / Script stage

第 4 步 · 资产制作 / Step 4 · Assets

对剧本执行提取,自动获得角色 / 场景 / 道具清单;逐个点「生成形象」产出一致性参考图(也可批量)。生成的资产图会在后续生视频时作为参考素材注入。
Run extraction on the script to get the character / scene / prop list, then generate a consistent reference image for each (or in batch). These images are injected as reference material when generating videos.

资产制作 / Asset production

第 5 步 · 分镜与视频 / Step 5 · Storyboard & Videos

「视频制作」页先拆分分镜(AI 按镜头节奏切分并生成视频提示词),然后:
On the "Video Production" page, first run storyboard breakdown (AI splits shots and writes video prompts). Then:

分镜拆分 / Storyboard breakdown

视频生成 / Video generation

第 6 步 · 拼接导出 / Step 6 · Merge & Export

勾选镜头(悬停可预览单个镜头视频),点「开始拼接」,FFmpeg 自动合成为完整剧集成片,支持在线播放与下载。完成后点「标记完成」,左侧进度栏点亮。
Select shots (hover to preview each clip), click "Start Merging" and FFmpeg assembles the full episode — play online or download. Click "Mark Done" when finished to light up the progress rail.

拼接导出 / Merge & export

剧集列表随时展示各集制作状态,点「进入制作」继续未完成的集:
The episode list shows the production status of every episode — click "Enter Studio" to continue:

剧集列表 / Episode list


📦 部署指南 / Deployment

⬇️ 预编译安装包下载:macOS Apple Silicon · macOS Intel · Windows x64 · GitHub Releases(海外)
⬇️ Prebuilt installers: GitHub Releases · macOS Apple Silicon · macOS Intel · Windows x64

平台
Platform
下载文件
File to download
macOS(Apple Silicon,M 系列)
macOS (Apple Silicon, M-series)
HuobaoDrama-4.0.11-arm64.dmg
macOS(Intel)
macOS (Intel)
HuobaoDrama-4.0.11.dmg
Windows HuobaoDrama.Setup.4.0.11.exe

国内用户请用腾讯云镜像直链下载(GitHub 在国内访问不稳定)。应用内更新器同样国内源优先、GitHub 兜底。
China users: use the COS mirror above (GitHub is slow/unreachable in mainland China). The in-app updater also checks the COS mirror first, then falls back to GitHub.

命令行安装(推荐,免修复):用 curl 下载不会触发 macOS 隔离属性,安装后双击即开,不会遇到「已损坏」提示(Apple Silicon 把 arm64 文件名换成对应版本,Intel 用无后缀 dmg):
Command-line install (recommended, no Gatekeeper fix needed): downloading via curl never sets macOS's quarantine attribute, so the app opens cleanly with no "damaged" prompt (use the -arm64.dmg for Apple Silicon, the plain dmg for Intel):

curl -L -o /tmp/HuobaoDrama.dmg https://installer.firemux.site/huobao-drama/v4.0.11/HuobaoDrama-4.0.11-arm64.dmg \
  && hdiutil attach -nobrowse /tmp/HuobaoDrama.dmg \
  && cp -R /Volumes/HuobaoDrama*/HuobaoDrama.app /Applications/ \
  && hdiutil detach /Volumes/HuobaoDrama*

无需构建 —— 下载 dmg/exe 直接安装即可,已安装客户端会通过内置更新器自动升级。(如需从源码自行打包,见下方命令。)
No build required — download the dmg/exe and install. Installed clients auto-update via the built-in updater. (To package from source instead, see the commands below.)

双击安装、开箱即用的桌面版(macOS + Windows):数据库(SQLite)、生成的媒体文件、Agent 技能全部存放在用户数据目录,卸载应用不影响数据。
Double-click to install, works out of the box (macOS + Windows): the SQLite database, generated media, and Agent skills all live in the user-data directory — uninstalling the app does not affect your data.

# 一键打包(前端 generate → 后端 esbuild → electron-builder) / One-command packaging (frontend generate → backend esbuild → electron-builder)
npm run dist        # macOS dmg(arm64 + Intel) / macOS dmg (arm64 + Intel)
npm run dist:win    # Windows NSIS 安装器(win-x64,可在 macOS 上交叉打包) / Windows NSIS installer (win-x64, cross-buildable on macOS)

# 产物 / Artifacts
# desktop/release/HuobaoDrama-<版本>-arm64.dmg        (Apple Silicon) / desktop/release/HuobaoDrama-<version>-arm64.dmg     (Apple Silicon)
# desktop/release/HuobaoDrama-<版本>.dmg              (Intel) / desktop/release/HuobaoDrama-<version>.dmg           (Intel)
# desktop/release/HuobaoDrama Setup <版本>.exe        (Windows) / desktop/release/HuobaoDrama Setup <version>.exe     (Windows)

安装说明:
Installation notes:

🔄 应用内更新(无需 Apple 签名) / In-App Updates (no Apple signing required)

桌面版内置更新器(与 Tauri 同类方案:macOS 目录替换 / Windows 静默安装,本地 sha256 校验)。发布新版流程:
The desktop app ships with a built-in updater (same class of solution as Tauri: directory replacement on macOS / silent installer on Windows, with local sha256 verification). To publish a new release:

# 1. 改 desktop/package.json 的 version,然后打包 / 1. Bump version in desktop/package.json, then package
npm run dist        # macOS(产出 dmg + 更新用 zip) / macOS (produces dmg + update zip)
npm run dist:win    # Windows(产出 Setup.exe) / Windows (produces Setup.exe)

# 2. 生成版本清单 release/latest.json(含各平台产物 sha256) / 2. Generate the release manifest release/latest.json (with per-platform sha256)
cd desktop && npm run feed

# 3. 发布:把 latest.json + 安装包 + zip 上传到 GitHub Release(tag 形如 v1.0.1) / 3. Publish: upload latest.json + installers + zips to a GitHub Release (tag like v1.0.1)

已安装的客户端会在启动后自动检查清单(也可在「设置 → 关于更新」手动检查),发现新版即提示下载安装。自定义清单地址:HUOBAO_UPDATE_FEED 环境变量。
Installed clients check the manifest automatically after launch (manual check available in "Settings → About & Updates") and prompt to download and install when a new version is found. Override the manifest URL with the HUOBAO_UPDATE_FEED environment variable.

桌面版开发调试:
Desktop development:

npm run build:frontend   # 前端静态产物(frontend/.output/public) / frontend static output (frontend/.output/public)
cd desktop && npm run dev  # 打包后端 bundle 并以 Electron 窗口运行 / bundle the backend and run in an Electron window

已知限制:Seedance 视频模型引用本地参考资源时需要 PUBLIC_BASE_URL 公网地址,桌面版无公网入口,该场景会得到明确的中文报错;文生视频/图片等其余能力不受影响。
Known limitation: Seedance video models need a PUBLIC_BASE_URL public address to reference local assets; the desktop app has no public entry point, so that scenario produces a clear error message. Text-to-video, image generation, and all other capabilities are unaffected.


🏭 服务器部署方式 / Server Deployment

# 1. 构建前端 / Build the frontend
cd frontend && npm run generate

# 2. 复制构建产物 / Copy the build output
# generate 产物在 frontend/.output/public,后端只读取 frontend/dist,缺此步 API 正常但页面 404
# generate outputs to frontend/.output/public; the backend reads frontend/dist — skip this step and the API works but pages 404
cp -r .output/public dist && cd ..

# 3. 启动后端 / Start the backend
cd backend && npm start

需要上传到服务器的文件:
Files to upload to the server:

backend/                    # 后端源码 + node_modules / backend source + node_modules
backend/workspace/skills/   # Agent 技能文件 / Agent skill files
frontend/dist/              # 前端构建产物 / frontend build output
data/                       # 数据目录(首次运行自动创建) / data directory (auto-created on first run)

Nginx 反向代理 / Nginx Reverse Proxy

server {
    listen 80;
    server_name your-domain.com;

    # 参考视频/音频上传最大 50MB / Max 50MB for reference video/audio uploads
    client_max_body_size 100m;

    # 生成的图片/视频直连磁盘,不经过 Node / Generated images/videos served straight from disk, bypassing Node
    # sendfile 零拷贝 + 长缓存 / sendfile zero-copy + long-lived caching
    # 产物按 uuid 命名、内容不变,可安全 immutable 缓存 / Files are uuid-named and immutable, so immutable caching is safe
    location /static/ {
        alias /path/to/huobao-drama/data/static/;
        sendfile on;
        tcp_nopush on;
        expires 1y;
        add_header Cache-Control "public, immutable";
    }

    location / {
        proxy_pass http://localhost:5679;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

媒体加载优化:生成图片时后端会自动产出 400px 缩略图(*_thumb.webp)供列表页加载,视频会抽取海报帧(*_poster.jpg)作为封面,前端仅在点开大图/播放时才加载原文件。历史存量文件可在 backend/ 下执行 npm run backfill-artwork 一次性补齐。
Media loading optimization: the backend automatically generates 400px thumbnails (*_thumb.webp) for list pages and extracts poster frames (*_poster.jpg) as video covers — the frontend only loads original files when opening the full image or playing. To backfill historical files, run npm run backfill-artwork under backend/.

🐳 Docker 部署(含应用内更新) / Docker Deployment (with in-app updates)

方式一:预构建镜像(免克隆、免构建):多架构镜像(linux/amd64 + linux/arm64),x86 服务器与 ARM 设备自动匹配
Option A — prebuilt image (no clone, no build): multi-arch (linux/amd64 + linux/arm64), x86 servers and ARM devices match automatically

docker pull huobao/huobao-drama:4.0.6

docker run -d \
  --name huobao-drama \
  -p 5679:5679 \
  -v huobao-data:/app/data \
  --restart unless-stopped \
  huobao/huobao-drama:4.0.6

方式二:docker compose(源码构建 + Watchtower 应用内更新):根目录提供一体化 Dockerfile(前端 generate + 后端依赖/运行时三阶段,后端与服务器部署一致走 tsx)与 docker-compose.yml(应用 + Watchtower):
Option B — docker compose (source build + Watchtower in-app updates): the repo root provides an all-in-one Dockerfile (three stages: frontend generate + backend dependencies + runtime; the backend runs via tsx just like server deployment) and docker-compose.yml (app + Watchtower):

# 1. 配置环境(Watchtower 令牌,app 与 watchtower 两侧必须一致) / 1. Configure the environment (Watchtower token — must match on the app and watchtower sides)
cp .env.example .env   # 修改 WATCHTOWER_TOKEN / edit WATCHTOWER_TOKEN

# 2. 构建并启动(发布时注入版本号,供「关于更新」比对) / 2. Build and start (inject a version at publish time for "About & Updates" comparison)
HUOBAO_VERSION=4.0.5 docker compose up -d --build

# 3. 访问 http://localhost:5679 / 3. Visit http://localhost:5679

🎨 技术栈 / Tech Stack

后端 / Backend

桌面端 / Desktop

前端 / Frontend


📝 常见问题 / FAQ

Q: 桌面版数据存在哪里? / Q: Where does the desktop app store data?

A: ~/Library/Application Support/HuobaoDrama/data/(SQLite 数据库 + 生成的图片/视频),技能在线编辑的副本在同级 workspace/ 目录。开发模式下则使用仓库 data/ 目录。
A: ~/Library/Application Support/HuobaoDrama/data/ (SQLite database + generated images/videos); writable copies of online-edited skills live in the sibling workspace/ directory. In development mode the repo's data/ directory is used instead.

Q: 旧版 MySQL 数据怎么迁移到 SQLite? / Q: How do I migrate legacy MySQL data to SQLite?

A: 保持 MySQL 可连接(环境变量或 backend/.env),执行 cd backend && npx tsx scripts/import-mysql-to-sqlite.ts,脚本会自动建表、逐表导入并校验行数(目标库非空需加 --force,写入前自动备份)。
A: Keep MySQL reachable (environment variables or backend/.env), then run cd backend && npx tsx scripts/import-mysql-to-sqlite.ts. The script creates tables automatically, imports table-by-table, and validates row counts (non-empty targets require --force; a backup is made before writing).

Q: FFmpeg 未安装或找不到? / Q: FFmpeg not installed or not found?

A: 无需安装。项目内置 ffmpeg-static / ffprobe-static 二进制(桌面版随包携带)。系统 PATH 中的 FFmpeg 也不会冲突,也可通过 FFMPEG_BIN/FFPROBE_BIN 显式指定。
A: No install needed. The project bundles ffmpeg-static / ffprobe-static binaries (carried along in the desktop package). A system PATH FFmpeg won't conflict either, and you can point explicitly via FFMPEG_BIN/FFPROBE_BIN.

Q: 页面顶部提示「尚未配置模型」? / Q: The top of the page says "No model configured"?

A: 这是正常的首次部署引导。前往「设置」页,用「火宝快捷配置」粘贴 API Key 一键写入,或通过「手动模板」按厂商添加。文本、图片、视频三类均有启用中的配置后横幅自动消失。
A: That's the normal first-deploy guidance. Go to "Settings" and use "Huobao Quick Setup" to paste an API key and write configs in one click, or add providers via "Manual Templates". The banner disappears once text, image, and video all have an enabled config.

Q: 前端无法连接后端 API? / Q: The frontend can't reach the backend API?

A: 检查后端是否启动,端口是否正确。开发模式下前端代理配置在 frontend/nuxt.config.ts。
A: Check that the backend is running and the port is correct. In dev mode the proxy config lives in frontend/nuxt.config.ts.

Q: 数据库表未创建? / Q: Database tables not created?

A: 后端会在首次启动时自动创建所有表,检查日志确认初始化是否成功。
A: The backend creates all tables automatically on first launch — check the logs to confirm initialization succeeded.


📋 更新日志 / Changelog

v4.0.0 (2026-08)

🖥️ 桌面应用 + 数据库迁移 / Desktop App + Database Migration

v3.1.0 (2026-09)

v3.0.0 (2026-08)

🚀 部署与体验优化 / Deployment & Experience Improvements

v2.0.0 (2026-04)

🚀 重大更新 / Major Update

v1.0.4 (2026-01-27)

v1.0.3 (2026-01-16)

v1.0.2 (2026-01-14)


📄 许可证 / License

本项目采用 CC BY-NC-SA 4.0(署名-非商业性使用-相同方式共享 4.0 国际)许可证。
This project is licensed under CC BY-NC-SA 4.0 (Attribution-NonCommercial-ShareAlike 4.0 International).

许可证全文见 LICENSE。
Full license text: see LICENSE.


🤝 贡献指南 / Contributing

欢迎提交 Issue 和 Pull Request!
Issues and Pull Requests are welcome!

  1. Fork 本项目
    Fork the project

  2. 创建特性分支 (git checkout -b feature/AmazingFeature)
    Create a feature branch (git checkout -b feature/AmazingFeature)

  3. 提交改动 (git commit -m 'Add some AmazingFeature')
    Commit your changes (git commit -m 'Add some AmazingFeature')

  4. 推送到分支 (git push origin feature/AmazingFeature)
    Push to the branch (git push origin feature/AmazingFeature)

  5. 开启 Pull Request
    Open a Pull Request

常用检查命令:
Common checks:

cd backend && npm run typecheck
cd ../frontend && npm run generate  # emits index.html (npm run build does not)

💬 微信群 / WeChat Group

扫码加入微信群交流:
Scan the QR code to join the WeChat group:

微信群二维码 / WeChat group QR code

"让 AI 帮我们做更有创造力的事"
"Let AI do the creating with us"

本项目已获得 LINUX DO 社区链接认可。
This project has been recognized with a link from the LINUX DO community.


Star History

Star History Chart

huobao-drama (chatfire-AI/huobao-drama)

Ищем в базе…

Что это такое?Huobao Drama — платформа на основе ИИ, которая автоматизирует весь процесс создания коротких драм: превращает сценарий или роман в дизайн персонажей, раскадровки и готовое смонтированное видео почти без ручной работы.
Это облачный сервис или то, что я запускаю сам?Это самостоятельно развёртываемое веб-приложение на полностью TypeScript-стеке (бэкенд на Hono, фронтенд на Nuxt 3/Vue 3), которое вы разворачиваете сами; также есть необязательная сборка настольного клиента (папка desktop/ со своими скриптами dev и dist).
Как его запустить?Рекомендуемый способ — Docker Compose: одной командой поднимаются приложение и MySQL 8.4 с проверками состояния; либо можно установить Node.js 20+, выполнить npm install и вручную запустить серверы разработки бэкенда и фронтенда.
Нужны ли мне собственные ключи API для ИИ?Да — нужно настроить ключи для текстовых, графических и видеомоделей (совместимых с OpenAI, Gemini, Volcano Engine, MiniMax, Alibaba Wan 3.0). Один ключ Huobao API Key может автоматически заполнить рекомендуемые конфигурации для всех трёх категорий на странице настроек.
Есть ли подводные камни при установке, о которых стоит знать?При сборке образа Docker Compose из исходников загружаются предварительно собранные бинарники ffmpeg-static/sharp из интернета, что завершается ошибкой в ограниченных сетях, если не указать зеркало npm или прокси; использование готового мультиархитектурного образа с Docker Hub полностью избавляет от этой проблемы.
Какие ИИ-агенты входят в комплект из коробки?В комплекте четыре встроенных агента Mastra: scriptrewriter (роман в оформленный сценарий), extractor (персонажи, сцены, реквизит), storyboardbreaker (сценарий в последовательность кадров) и promptgenerator (промпты для изображений и видео по каждому кадру).
Какие провайдеры генерации видео можно подключить?Поддерживаются провайдеры видео Volcano Engine Seedance 2.0, MiniMax H3 и Alibaba Cloud Wan 3.0 (Prime/Standard); генерация изображений поддерживает OpenAI, Gemini и Volcano Engine.
Можно ли использовать локальную модель вместо платного API?Да: контейнер может обращаться к серверу Ollama, запущенному на хост-машине, через host.docker.internal, и вы регистрируете его как провайдера, совместимого с OpenAI, например, указав модель qwen2.5:latest.
Нужно ли устанавливать FFmpeg самостоятельно?Нет, бинарники FFmpeg и ffprobe поставляются через npm-пакеты ffmpeg-static/ffprobe-static, поэтому и локальный, и Docker-вариант работают без системной установки FFmpeg.
Какие есть похожие проекты?waoowaoo, youtube-automation-agent, banana-slides, printfilm, MoneyPrinterTurbo, OpenReels, ArcReel, JeecgBoot
Автор
chatfire-AI
Размер
47.8 MB
Звёзды
18.1K
Возраст
10 мес
Коммиты · 90 дней