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
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.
171 lines
11 KiB
Markdown
171 lines
11 KiB
Markdown
# ReelForge — Codebase Inventory & License Map
|
|
|
|
> **Historical inventory:** directory locations in this document predate the
|
|
> `apps/*`, `packages/*`, and `external/*` migration. Use
|
|
> [`REPOSITORY_LAYOUT_SPEC.md`](./REPOSITORY_LAYOUT_SPEC.md) and
|
|
> [`external/REGISTRY.md`](../../external/REGISTRY.md) for current ownership,
|
|
> runtime adoption, commits, and licenses. In particular, the only active
|
|
> desktop application is native Rust/GPUI under `apps/desktop`; Electron is
|
|
> retained only as legacy migration reference.
|
|
|
|
> Per-directory analysis of the repository after vendoring the AI-video open-source
|
|
> stack. Classifies every top-level directory as **native product**, **vendored
|
|
> product** (permissive, we build on it), or **external** (restrictive license /
|
|
> unmodified upstream engine, quarantined under `external/`).
|
|
>
|
|
> Root `LICENSE` = **MIT, "Copyright (c) 2024 Harry"** (the MoneyPrinterTurbo base).
|
|
> It covers ReelForge's own code only — each vendored tree carries its own upstream
|
|
> license, recorded below.
|
|
|
|
> **⚠️ Layout note (flattened):** The five engine/orchestration projects
|
|
> (`pixelle_video/`, `ltx_video/`, `opensora/`, `vace/`, `diffusers_helper/`) have been
|
|
> **flattened into the repo root** — their insides are now top-level folders
|
|
> (`models/`, `pipelines/`, `utils/`, `services/`, `schedulers/`, `acceleration/`,
|
|
> `annotators/`, `datasets/`, `config/`, `configs/`, `gradio/`, `gradios/`,
|
|
> `k_diffusion/`, `prompts/`) plus root modules (`service.py`, `inference.py`,
|
|
> `registry.py`, `framepack_utils.py`). All ~465 internal imports were rewritten
|
|
> root-relative (`from ltx_video.models…` → `from models…`), the FramePack `utils.py`
|
|
> was renamed `framepack_utils.py` to avoid shadowing the `utils/` package, and the
|
|
> LTX wrapper `inference.py` was replaced with LTX's real one. ReelForge's `app/`,
|
|
> `web/`, `mobile/` etc. import **none** of these, so the product is unaffected;
|
|
> Pixelle's `api/` server compiles against the flattened modules. The per-component
|
|
> sections below describe the *logical* origin of each now-flattened folder.
|
|
|
|
---
|
|
|
|
## TL;DR classification
|
|
|
|
| Pillar | Directories | License | Status |
|
|
|--------|-------------|---------|--------|
|
|
| **ReelForge core** (our product) | `app/`, `web/`, `mobile/`, `desktop/`, `sdk/`, `ops/`, `resource/`, `main.py`, `cli.py` | MIT | native product |
|
|
| **Pixelle-Video** (AI generation) — *flattened* | `api/` + root `service.py`, `services/`, `pipelines/`, `models/`, `utils/`, `config/`, `prompts/`, `templates/`, `windows/` | Apache-2.0 (AIDC-AI) | vendored product |
|
|
| **OpenCut** (timeline editor) | `apps/` (`web`/`api`/`desktop`) | MIT | vendored product |
|
|
| **Generation engines** (self-host, Apache) — *flattened* | root `models/`, `pipelines/`, `schedulers/`, `acceleration/`, `datasets/`, `annotators/`, `k_diffusion/`, `configs/`, `gradio/`, `gradios/`, `registry.py`, `inference.py`, `framepack_utils.py` | Apache-2.0 (code) | vendored product (engine tier) |
|
|
| **Presets** | `workflows/` | own preset data | product data |
|
|
| **Legacy / assets** | `webui/`, `bgm/` | MIT (MPT) | vendored product |
|
|
| **External (restrictive)** | `external/hyvideo/` (moved), plus prior clones | Tencent Community License | **external** |
|
|
|
|
**Only one tree was non-MIT/Apache and moved to `external/`: `hyvideo/` (HunyuanVideo,
|
|
Tencent Hunyuan Community License).** Everything else is MIT/Apache and stays as a
|
|
product part.
|
|
|
|
---
|
|
|
|
## 1. ReelForge core (native, MIT)
|
|
|
|
### `app/` — FastAPI backend (the product engine)
|
|
ReelForge's Python backend: 109 REST endpoints across 22 routers (`app/router.py`).
|
|
- `app/controllers/v1/` — the REST routers (jobs, studio, broll_studio, billing, sso, compliance, …).
|
|
- `app/services/` — pipeline + platform: `avatar/`, `captions/`, `compose/`, `broll_gen/`, `billing/`, `compliance/`, `editing/`, `analytics.py`, `marketplace.py`, …
|
|
- `app/models/` — `db/` (SQLAlchemy), `schema.py`, `const.py`.
|
|
- `app/workers/` — Celery (`celery_app.py`, `pipeline.py`, `tasks.py`).
|
|
- `app/config/`, `app/telemetry/`, `app/core/` (Clerk), `asgi.py`.
|
|
|
|
### `web/` — Next.js 15 web client (`reelforge-web`)
|
|
App Router, Clerk auth, TanStack Query, Tailwind. Primary web frontend.
|
|
|
|
### `mobile/` — Expo / React Native thin client (`reelforge-mobile`)
|
|
Talks to `/api/v1`; API key in `expo-secure-store`.
|
|
|
|
### `apps/desktop/` — native Rust/GPUI (`reelforge-desktop`)
|
|
Active native desktop generation client. Credentials use the operating-system
|
|
credential store. The old Electron source is non-runtime migration reference at
|
|
`apps/desktop/electron-legacy`.
|
|
|
|
### `sdk/` — public SDKs (MIT)
|
|
`sdk/typescript` = `@reelforge/sdk`, `sdk/python` = `reelforge-sdk`. Wrap jobs, presigned uploads, webhooks, portal.
|
|
|
|
### `ops/` — run harness
|
|
`smoke.py`, `seed.py`, `web.Dockerfile`. Brings the full local stack up (postgres+redis+api+worker+beat+web).
|
|
|
|
### `resource/` — runtime assets (mixed MIT + OFL)
|
|
`voices.yaml` + `hooks/{en,tr}.yaml` are ReelForge-authored; `fonts/` are OFL-licensed; `songs/`, `public/` from the MPT base.
|
|
|
|
### `main.py`, `cli.py`
|
|
`main.py` = the FastAPI/uvicorn entrypoint (`from app.config import config`). `cli.py` = argparse product CLI. Both native.
|
|
|
|
---
|
|
|
|
## 2. Pixelle-Video — backend-owned generation capability (vendored, Apache-2.0, AIDC-AI/Alibaba)
|
|
|
|
The video-generation platform is embedded in `apps/api`: API compatibility
|
|
routes are `apps/api/app/generation`, flattened engine packages are
|
|
`apps/api/engine`, and assets are `apps/api/assets`. GPU work runs through the
|
|
dedicated `generation` Celery queue, not a sidecar HTTP service.
|
|
|
|
### `api/` — Pixelle FastAPI server (Apache-2.0)
|
|
`POST /api/video/generate/{sync,async}` (full multi-scene narrated pipeline),
|
|
`/api/image/generate`, `/api/tts/synthesize`, `/api/frame/render`, `/api/tasks/{id}` (poll),
|
|
`/api/files/{path}` (serve outputs), `/api/resources/*`.
|
|
**Note:** there is **no single-clip t2v/i2v route** — the managed video clients are internal only. ReelForge adds one thin `api/routers/clip.py` (see the product plan).
|
|
|
|
### `pixelle_video/` — orchestration core (Apache-2.0)
|
|
- `service.py` — `PixelleVideoCore.generate_video(text, pipeline, **kwargs)`; pipelines `standard`, `asset_based`, `custom`.
|
|
- `services/api_services/` — **managed cloud video clients**: `video_kling.py`, `video_seedance.py`, `video_dashscope.py` (Wan), routed by `video_client.py`. `generate_video(prompt, image_path, save_path, model, duration=5)` → `image_path=None` = t2v, set = i2v. **This is the path ReelForge's B-roll provider uses.**
|
|
- `services/` — LLM, TTS, media (ComfyKit), analysis, persistence.
|
|
- `config/schema.py` — YAML config: `llm`, `api_providers.{kling,ark,dashscope}`, `comfyui.{comfyui_url,runninghub_api_key}`, `template`.
|
|
|
|
### `templates/` — HTML poster/frame templates (Apache-2.0, Pixelle)
|
|
Three aspect ratios (`1080x1920`, `1080x1080`, `1920x1080`); embed Pixelle branding.
|
|
|
|
### `windows/` — Pixelle Windows packager (Apache-2.0)
|
|
Builds a Windows portable zip of Pixelle-Video. Bundled tooling, not the ReelForge build.
|
|
|
|
---
|
|
|
|
## 3. OpenCut — timeline video editor (vendored, MIT)
|
|
|
|
### `apps/` — the OpenCut monorepo (distinct from the root frontends)
|
|
A separate in-browser/desktop **non-linear video editor** we build ReelForge's timeline/editing surface on. NOT a duplicate of `web/`/`desktop/` — different stacks:
|
|
- `apps/web` → `@opencut/web` — TanStack Start + Vite 8 + React 19 + Cloudflare.
|
|
- `apps/api` → `@opencut/api` — Elysia on Cloudflare Workers.
|
|
- `apps/desktop` → `opencut-desktop` — Rust GPUI app.
|
|
**Caveat:** vendored without its workspace root (`moon.yml`/`Cargo.toml`/`.prototools` are per-package but there is no repo-root workspace), so its builds won't resolve as-is — it needs its monorepo scaffolding restored or to be run from its own workspace. Tracked as an integration task in the product plan.
|
|
|
|
---
|
|
|
|
## 4. Generation engines (self-host tier, vendored, Apache-2.0 code)
|
|
|
|
Kept as product (Apache code) but isolated as the **engine tier** — driven by ComfyUI/Pixelle, never imported by `app/`.
|
|
|
|
| Dir | Project | Code license | Weights note | Entry |
|
|
|-----|---------|--------------|--------------|-------|
|
|
| `ltx_video/` | LTX-Video (Lightricks) | Apache-2.0 | LTXV weights have acceptable-use terms | `infer(InferenceConfig)` — t2v/i2v/v2v. Driven by root `inference.py`. |
|
|
| `vace/` | VACE (Ali-VILab) | Apache-2.0 | drives Wan/LTX weights | `vace_pipeline.py --base {ltx,wan}`. **Currently broken**: `__init__` imports missing `external/VACE` (pre-existing half-migration). |
|
|
| `opensora/` | Open-Sora 2.0 (hpcaitech) | Apache-2.0 (code+weights) | — | library; run via `configs/diffusion/inference/*.py`. t2v/i2v. |
|
|
| `diffusers_helper/` | FramePack (lllyasviel) | Apache-2.0 | drives HunyuanVideo weights (restrictive) | `sample_hunyuan(...)`; memory-efficient long video. |
|
|
| `configs/` | Open-Sora run configs | Apache-2.0 | — | mmengine dict configs for `opensora/`. |
|
|
| `gradio/` | Open-Sora demo UI | Apache-2.0 | — | `app.py` Gradio for Open-Sora. |
|
|
|
|
**Compliance to-do:** none of these vendored trees shipped their upstream `LICENSE`/`NOTICE`
|
|
files — only source-header attribution. Apache-2.0 requires retaining license text +
|
|
notices; restore them (or pin as git submodules) before shipping.
|
|
|
|
---
|
|
|
|
## 5. Presets & legacy assets
|
|
|
|
- `workflows/` — ComfyUI workflow JSONs = **ReelForge motion presets** (product data). `selfhost/` = full graphs; `runninghub/` = thin `{workflow_id}` pointers to the RunningHub SaaS. Video-gen presets: Wan 2.1 FusionX (t2v), Wan 2.2 (t2v/i2v), LTX2 (i2v); plus image/tts/analysis workflows. Underlying model licenses vary (Wan 2.x + LTX = commercially safe; Flux-dev + SD3.5 + Gemini = restricted) — license-gate before commercial use.
|
|
- `webui/` — MoneyPrinterTurbo's Streamlit UI (MIT). Legacy operator UI, not the product frontend.
|
|
- `bgm/` — `default.mp3` default background music (MPT, MIT).
|
|
|
|
---
|
|
|
|
## 6. `external/` — quarantine + strategic clones
|
|
|
|
- **`external/hyvideo/`** — HunyuanVideo (Tencent Hunyuan Community License, **restrictive**). Moved here per the MIT/Apache-only product rule. Its demo driver moved to `external/hyvideo_gradio_server.py`.
|
|
- Prior strategic clones: `ComfyUI/`, `comfyui-deploy/`, `ViewComfy/`, `VideoTuna/`, `VideoX-Fun/` (see `external/clone_all.sh`).
|
|
|
|
---
|
|
|
|
## License decision rule (applied)
|
|
|
|
> Non-MIT/Apache **code** → `external/`. MIT/Apache code → product.
|
|
|
|
- **Moved:** `hyvideo/` (Tencent Community License) — the only non-permissive tree.
|
|
- **Kept as product (Apache/MIT code):** everything else. Where Apache **code** drives
|
|
**restrictively-licensed weights** (FramePack→HunyuanVideo, Flux-dev, SD3.5), that is a
|
|
*runtime/weights* concern gated at deploy time, not a code-tree license issue — noted per
|
|
engine above. For commercial shipping, prefer the permissive video engines: **Wan 2.x,
|
|
LTX (code), Open-Sora, and the managed APIs (Kling/Seedance)**.
|