videogen/docs/reelforge/FULL_PRODUCT_PLAN.md
caelum0x d56639a594
Some checks are pending
build-images / api (push) Waiting to run
build-images / worker-gpu (push) Waiting to run
build-images / web (push) Waiting to run
codeql / Analyze (javascript-typescript) (push) Waiting to run
codeql / Analyze (python) (push) Waiting to run
perf / API hot-path micro-smoke (budgeted) (push) Waiting to run
perf / Desktop engine crates (release build check) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Waiting to run
vision2026-ci / API phase modules (ruff + pytest) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Waiting to run
vision2026-ci / Python SDK resource tests (push) Waiting to run
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Waiting to run
vision2026-ci / Alembic upgrade + drift check (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Waiting to run
Menivor — open source release (MIT), free to use and fork
Paid, hosted product at menivor.com, now retired as a company project.
Fresh squashed history of the cleaned working tree (secret-scanned,
no .env, no customer data, no outreach logs). Built on
MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
2026-12-04 02:10:26 +03:00

12 KiB

ReelForge — Full Product Plan (on the vendored AI-video stack)

Historical design record. Paths and deployment assumptions in this file predate the domain/engine isolation migration. Use PLATFORM_ARCHITECTURE_SPEC.md, REPOSITORY_LAYOUT_SPEC.md, and the current application READMEs for implementation. Do not add product code at the old app/services/broll_gen paths.

How ReelForge is assembled from three permissively-licensed pillars — ReelForge core (our API + clients), Pixelle-Video (AI generation), and OpenCut (timeline editor) — plus a self-host engine tier and a quarantined external/ for restrictively-licensed weights.

Companion to CODEBASE_INVENTORY.md (what each directory is + license) and AI_BROLL_STUDIO_PLAN.md (the broll_gen provider layer this plan extends).


1. Product vision

ReelForge is a UGC/short-form video platform: script → voice/avatar → captions → compose → publish, with AI B-roll generation and, now, a full non-linear timeline editor. The vendored stack turns three gaps into shipped capabilities:

Gap Filled by License
AI motion clips (t2v/i2v) from a prompt or image Pixelle-Video managed clients (Kling/Seedance/Wan) + ComfyUI/RunningHub Apache-2.0
Timeline editing (trim, layer, overlay B-roll on the full timeline) OpenCut editor MIT
Self-host generation later (cost control) engine tier (LTX, VACE, Open-Sora, FramePack + external/ComfyUI) Apache-2.0 (weights gated)

2. Architecture — three pillars + engine tier

                         ┌─────────────────────────────────────────────┐
   clients               │            REELFORGE CORE (MIT)             │
   web / mobile / ───────▶  app/  FastAPI + Celery  (jobs, studio,     │
   desktop / OpenCut     │        broll_studio, billing, compliance)   │
                         │        · BrollGenProvider registry          │
                         └───────┬──────────────────────┬──────────────┘
                                 │ render queue          │ HTTP (provider)
                                 ▼                       ▼
                    ┌──────────────────────┐   ┌────────────────────────────┐
                    │  OpenCut editor      │   │  PIXELLE-VIDEO SIDECAR      │
                    │  (apps/, MIT)        │   │  api/ + pixelle_video/      │
                    │  timeline / overlays │   │  Apache-2.0                 │
                    └──────────────────────┘   │  · managed: Kling/Seedance  │
                                               │  · ComfyUI / RunningHub     │
                                               └──────────┬─────────────────┘
                                                          │ (self-host, later)
                                                          ▼
                                     ┌───────────────────────────────────────┐
                                     │  ENGINE TIER (Apache) + external/      │
                                     │  ltx_video · vace · opensora ·         │
                                     │  diffusers_helper · configs · gradio   │
                                     │  external/{ComfyUI, hyvideo(restricted)}│
                                     └───────────────────────────────────────┘

Boundaries (verified): app/ imports none of the engine trees; Pixelle drives engines via ComfyUI workflows, not Python imports. So each pillar deploys independently.

Layout (flattened): Pixelle-Video (pixelle_video/) and the engine projects (ltx_video/, opensora/, vace/, diffusers_helper/) were flattened into the repo root — their insides are now top-level folders (models/, pipelines/, utils/, services/, schedulers/, acceleration/, annotators/, datasets/, config/, configs/, gradio/, k_diffusion/, prompts/) + service.py/inference.py/ registry.py/framepack_utils.py. Imports were rewritten root-relative; app/ is untouched. Pixelle's HTTP surface stays under api/. See CODEBASE_INVENTORY.md for the full map.


3. Pillar A — AI generation via Pixelle (B-roll, day-1 path = managed API)

Decisions taken: managed API (Kling/Seedance) first, Pixelle as an HTTP sidecar, engines left in-tree. Rationale: no GPU ops, no restrictive weights, ships fastest.

3.1 What exists vs what to add

  • Exists: pixelle_video/services/api_services/ managed clients (generate_video(prompt, image_path, save_path, model, duration=5) — image_path None=t2v / set=i2v; submit→poll→download). Task manager + /api/tasks/{id} + /api/files/{path}.
  • Gap: no HTTP route returns a single ~5s clip. Add api/routers/clip.py to Pixelle: POST /api/clip/generate/async {prompt, image_url?, provider, model, duration, aspect_ratio} → wraps APIProviderMediaService (or VideoClient) + the existing task manager → returns {task_id}; poll /api/tasks/{id} → {video_url, duration}. i2v: sidecar downloads image_url to a local first-frame.

3.2 ReelForge side — a new provider behind the existing registry

Add app/services/broll_gen/pixelle.py — PixelleProvider(BrollGenProvider):

  • is_enabled() = bool(config.pixelle.base_url).
  • generate_clip(prompt, mode, image_url, …) → POST /api/clip/generate/async → poll /api/tasks/{id} → download → {clip_path, duration, provider_job_id}.
  • Register under name="pixelle"; select via BROLL_GEN_PROVIDER=pixelle. This drops in exactly like comfyui (comfyui-deploy) — same submit→poll→download shape as ComfyDeployClient. No change to broll.py, the studio, the task, or the wizard.
  • Config: config.pixelle.{base_url, api_key}; Pixelle deployer sets KLING_ACCESS_KEY/KLING_SECRET_KEY (or ARK_API_KEY for Seedance).

3.3 Presets

Seed BrollPreset rows from workflows/ video-gen graphs (Wan 2.1 FusionX t2v, Wan 2.2 t2v/i2v, LTX2 i2v) → each preset's workflow_id/default_params map to a Pixelle provider/model. The studio preset picker already consumes these.

3.4 Phasing

  1. Pixelle clip route + PixelleProvider (managed Kling/Seedance) — the shippable B-roll path.
  2. RunningHub backend (set runninghub_api_key) to run workflows/runninghub/* without GPUs.
  3. Self-host ComfyUI (external/ComfyUI) with the engine tier — cost control, needs the weights-license review.

4. Pillar B — OpenCut timeline editor (apps/)

OpenCut becomes ReelForge's editing surface — the long-planned "full-timeline overlays" (AI_BROLL_STUDIO_PLAN §11-D1) instead of intro/outro stingers only.

4.1 Integration tasks

  1. Restore the monorepo workspace — apps/ was vendored without its root (moon.yml/Cargo.toml/.prototools). Either run it from its own workspace or add the scaffolding so @opencut/web builds.
  2. Auth + data bridge — point OpenCut at ReelForge /api/v1 (Clerk token), so an editor session loads a ReelForge job's rendered video + its broll_gen clips.
  3. Timeline → compose — export the OpenCut timeline (cuts, layers, B-roll overlays with t_start) to Job.params.broll_timeline, consumed by a new compose_ffmpeg._apply_broll_overlays (the deferred v2 in the B-roll plan).
  4. Clip source — the editor's media panel lists the user's studio clips (GET /broll/generations) + generates new ones inline via PixelleProvider.

4.2 Decisions to make (not blocking)

  • Which OpenCut target ships first: apps/web (embed in web/) vs apps/desktop (Rust GPUI, pairs with desktop/). Recommend apps/web first (matches primary client).
  • Whether OpenCut's apps/api (Elysia/Workers) is used or bypassed in favor of ReelForge's app/ API.

5. Pillar C — ReelForge core (unchanged foundation)

The existing product: app/ (FastAPI + Celery), web//mobile//desktop/ clients, sdk/, ops/. It owns identity, billing, jobs, the render DAG, the broll_gen registry, and now the provider/editor integrations above. No architectural change — the two new pillars attach at the BrollGenProvider registry (generation) and a new compose overlay path (editing).


6. Engine tier & external/

  • Engine tier (in-tree, Apache): ltx_video, vace, opensora, diffusers_helper, configs, gradio — driven only by ComfyUI/Pixelle for the self-host path. Not imported by app/. Restore upstream LICENSE/NOTICE files (Apache requirement). Known issue: vace is currently non-importable (its __init__ points at a missing external/VACE) — fix or finish that migration before using VACE.
  • external/ (quarantine): hyvideo/ (HunyuanVideo, Tencent Community License — restrictive, moved), plus prior strategic clones (ComfyUI, comfyui-deploy, ViewComfy, VideoTuna, VideoX-Fun).

7. Licensing posture (must hold before commercial launch)

Component Code Weights/Runtime Commercial-safe?
ReelForge core MIT — ✅
Pixelle-Video Apache-2.0 — (managed APIs bill per call) ✅ (keep NOTICE)
OpenCut MIT — ✅
LTX-Video Apache-2.0 LTXV acceptable-use terms ⚠️ review weights
Wan 2.x (workflows) Apache-2.0 Apache ✅
Open-Sora 2.0 Apache-2.0 Apache ✅
VACE Apache-2.0 inherits Wan/LTX ⚠️ via backbone
FramePack Apache-2.0 HunyuanVideo weights (restrictive) ❌ weights
HunyuanVideo (external/) Tencent Community License restrictive ❌ quarantined
Flux-dev / SD3.5 / Gemini (some workflows) — non-commercial / community / API ToS ❌ gate off

Rule of thumb: ship the core on managed APIs (Kling/Seedance) + Wan/LTX code + Open-Sora; keep HunyuanVideo/Flux-dev/SD3.5 out of the default commercial path.


8. Roadmap

Phase Deliverable Pillar
1 Pixelle clip route + PixelleProvider (managed Kling/Seedance) wired to the existing B-roll studio A
2 Seed BrollPresets from workflows/; RunningHub backend option A
3 OpenCut apps/web builds + auth bridge to /api/v1 B
4 Timeline → broll_timeline → compose_ffmpeg._apply_broll_overlays (full-timeline overlays) B + core
5 Self-host ComfyUI (external/ComfyUI) + engine tier; weights-license review A + engines
6 Mobile studio parity; poster thumbnails for studio clips core

9. Immediate next actions

  1. Add api/routers/clip.py to Pixelle (single-clip managed t2v/i2v) + config.pixelle in app/.
  2. Implement app/services/broll_gen/pixelle.py (PixelleProvider) and register it.
  3. Add a docker-compose service for the Pixelle sidecar; document KLING_*/ARK_* env.
  4. Restore Apache LICENSE/NOTICE files into the engine-tier dirs; fix vace import.
  5. Stand up apps/ (OpenCut) build from its own workspace; scope the auth bridge.