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.
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 oldapp/services/broll_genpaths.
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_genprovider 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_pathNone=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.pyto Pixelle:POST /api/clip/generate/async {prompt, image_url?, provider, model, duration, aspect_ratio}→ wrapsAPIProviderMediaService(orVideoClient) + the existing task manager → returns{task_id}; poll/api/tasks/{id}→{video_url, duration}. i2v: sidecar downloadsimage_urlto 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 viaBROLL_GEN_PROVIDER=pixelle. This drops in exactly likecomfyui(comfyui-deploy) — same submit→poll→download shape asComfyDeployClient. No change tobroll.py, the studio, the task, or the wizard. - Config:
config.pixelle.{base_url, api_key}; Pixelle deployer setsKLING_ACCESS_KEY/KLING_SECRET_KEY(orARK_API_KEYfor 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
- Pixelle clip route +
PixelleProvider(managed Kling/Seedance) — the shippable B-roll path. - RunningHub backend (set
runninghub_api_key) to runworkflows/runninghub/*without GPUs. - 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
- 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/webbuilds. - Auth + data bridge — point OpenCut at ReelForge
/api/v1(Clerk token), so an editor session loads a ReelForge job's rendered video + itsbroll_genclips. - Timeline → compose — export the OpenCut timeline (cuts, layers, B-roll overlays
with
t_start) toJob.params.broll_timeline, consumed by a newcompose_ffmpeg._apply_broll_overlays(the deferred v2 in the B-roll plan). - Clip source — the editor's media panel lists the user's studio clips
(
GET /broll/generations) + generates new ones inline viaPixelleProvider.
4.2 Decisions to make (not blocking)
- Which OpenCut target ships first:
apps/web(embed inweb/) vsapps/desktop(Rust GPUI, pairs withdesktop/). Recommendapps/webfirst (matches primary client). - Whether OpenCut's
apps/api(Elysia/Workers) is used or bypassed in favor of ReelForge'sapp/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 byapp/. Restore upstreamLICENSE/NOTICEfiles (Apache requirement). Known issue:vaceis currently non-importable (its__init__points at a missingexternal/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
- Add
api/routers/clip.pyto Pixelle (single-clip managed t2v/i2v) +config.pixelleinapp/. - Implement
app/services/broll_gen/pixelle.py(PixelleProvider) and register it. - Add a
docker-composeservice for the Pixelle sidecar; documentKLING_*/ARK_*env. - Restore Apache
LICENSE/NOTICEfiles into the engine-tier dirs; fixvaceimport. - Stand up
apps/(OpenCut) build from its own workspace; scope the auth bridge.