Some checks failed
build-images / web (push) Has been cancelled
vision2026-ci / Python SDK resource tests (push) Has been cancelled
build-images / api (push) Has been cancelled
build-images / worker-gpu (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Has been cancelled
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Has been cancelled
codeql / Analyze (javascript-typescript) (push) Has been cancelled
codeql / Analyze (python) (push) Has been cancelled
perf / API hot-path micro-smoke (budgeted) (push) Has been cancelled
perf / Desktop engine crates (release build check) (push) Has been cancelled
vision2026-ci / API phase modules (ruff + pytest) (push) Has been cancelled
vision2026-ci / Alembic upgrade + drift check (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Has been cancelled
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.
104 lines
10 KiB
Markdown
104 lines
10 KiB
Markdown
# ReelForge Vision 2026 — Master Roadmap
|
||
|
||
> Unifies the per-directory architecture blueprints in `architecture/` into one build program.
|
||
> STATUS: complete — all 8 architecture docs across the 7 top-level dirs are written
|
||
> (apps-api, apps-web, apps-mobile, apps-desktop, packages, external, docs+infra).
|
||
> **Grand total: 2,522 planned files.** See `BLUEPRINT_INDEX.md` for the consolidated
|
||
> map + per-dir counts and `OSS_CLONE_CHECKLIST.md` for the ~55 verified upstream repos.
|
||
|
||
# ReelForge Vision 2026 — MASTER ROADMAP
|
||
|
||
> Chief-architect unification of the five per-directory architecture docs into one build program.
|
||
> Source docs (authoritative per-directory manifests, read these for file-level detail):
|
||
> - `/Users/arhansubasi/videogen/docs/reelforge/vision2026/architecture/apps-api.md` (41 new dirs / 347 files)
|
||
> - `/Users/arhansubasi/videogen/docs/reelforge/vision2026/architecture/apps-mobile.md` (73 / 377)
|
||
> - `/Users/arhansubasi/videogen/docs/reelforge/vision2026/architecture/apps-desktop.md` (72 / 273)
|
||
> - `/Users/arhansubasi/videogen/docs/reelforge/vision2026/architecture/external.md` (85 / 360)
|
||
> - `/Users/arhansubasi/videogen/docs/reelforge/vision2026/architecture/infra-docs.md` (121 / 383)
|
||
>
|
||
> Everything here is **additive**. The already-shipped wallet (integer-microdollar ledger), catalog, OpenRouter-style routing, BYOK, compose (FFmpeg PiP + karaoke ASS + ducked BGM + camera/VFX presets), URL→reel, repurposing, MCP, EDL editor, and API platform are assumed to exist and are treated as stable integration seams — never rebuilt.
|
||
|
||
## 1. Vision
|
||
|
||
Turn ReelForge from "AI clip generator" into the **only create → publish → measure-retention → auto-regenerate-the-losing-hook flywheel** on the market, wrapped in a **multi-model microdollar wallet** that is itself a **resellable API platform**. Fal/Replicate stop at model output, OpusClip only clips, Ayrshare/Postiz only publish — ReelForge owns the full loop plus the wallet economics underneath it.
|
||
|
||
The moat is four compounding layers:
|
||
1. **Genre shot-templates as first-class versioned DB objects** compiled to the existing compose pipeline — fastest ROI because the FFmpeg primitives (chromakey PiP, ASS karaoke, ducked BGM, camera/VFX) already exist.
|
||
2. **Closed loop** — publish → retention-curve ingest → 1-body/N-hooks A/B → retention-weighted winner → regenerate, wired on an internal outbox/DAG event bus.
|
||
3. **License-clean, sunset-aware, cost-capped per-shot routing** across 22 real video/audio/lipsync adapters — survives the Sora shutdown, kills the pay-double subscription stack.
|
||
4. **Consistency-as-infrastructure** — Character/Style lock (reference + optional Wan 2.2 LoRA + cross-model identity) reused across every shot, episode, and project.
|
||
|
||
Monetization/acquisition loops layered on top: **resellable gateway** (provisioning keys + per-workspace markup + white-label reseller), **pay-per-view clipping marketplace**, **watermark-on-free-export viral loop**, and **lifetime-recurring affiliate**.
|
||
|
||
## 2. Target creators
|
||
|
||
| Segment | What they need | ReelForge answer |
|
||
|---|---|---|
|
||
| TikTok AI creators | Brainrot / anime-edit / ASMR-loop templates, trend-native sounds, watermark-clean cross-post | `domains/templates`, `domains/trends`, watermark-safe re-encode in `domains/publishing` |
|
||
| YouTube AI-video channels | Movie-recap / fake-podcast / faceless narration, series identity, long→clips repurpose | `domains/series`, `domains/film`, `domains/characters`, existing repurposing |
|
||
| Faceless-content operators | Unattended 150+ videos/mo, batch matrices, scheduler, cost cap | `domains/series` + desktop `rf-clipfarm` + MCP + self-hosted scheduler |
|
||
| Startups / agencies | Resellable wallet, white-label, spend-capped sub-keys, per-workspace markup | `domains/gateway`, `external/gateway-refs`, Lago bridge |
|
||
|
||
## 3. New architecture — how the five tracks stitch together
|
||
|
||
```
|
||
┌───────────────────────── INTERNAL EVENT BUS (outbox → DAG runner) ─────────────────────────┐
|
||
│ JobCompleted → publish → RetentionIngested → WinnerSelected → regenerate │
|
||
apps/api (SOURCE OF TRUTH) │
|
||
├─ domains/templates ──compile──▶ services/compose (EXISTING FFmpeg) ──▶ services/render (async GPU envelope) ─────┤
|
||
│ │ IN_QUEUE→IN_PROGRESS→COMPLETED │
|
||
│ routing/providers (22 adapters, license-class + deprecation) ──routes to──▶ │ │
|
||
│ ▼ │
|
||
│ domains/publishing (OAuth + scheduler + retention + A/B) ◀── services/audio, services/captions, services/loops │
|
||
│ domains/gateway (provisioning keys + markup + reseller + Lago bridge) over EXISTING wallet ledger │
|
||
│ domains/film + storyboard + characters + series + trends + clipmarket + growth + moderation + presets + assets │
|
||
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
||
▲ /api/v1 contract only ▲ /api/v1 contract only ▲ image source ↓ deploy
|
||
apps/mobile (24 typed Zod clients) apps/desktop (rf-* engine crates, external/workers/* (signed images)
|
||
capture→review→publish→measure local $0-wallet render farm + ComfyUI) infra/render-workers (deploy+license-gate)
|
||
external/services/* (postiz,lago,posthog…)
|
||
───────────────────────────────── infra/ (4 planes) wraps ALL of the above ──────────────────────────────────────
|
||
provisioning(terraform/secrets/env/dns/cdn) · runtime(k8s/render-workers/gpu-autoscale/queues) ·
|
||
observability(otel→prom/grafana/loki/tempo/sentry + SLO) · policy(.github/workflows + OPA)
|
||
```
|
||
|
||
**Load-bearing contracts** (defined once, referenced everywhere):
|
||
- **Unified async-GPU job envelope** `IN_QUEUE/IN_PROGRESS/COMPLETED` (poll + webhook) — lives in `apps/api/app/services/render`, mirrored by desktop `crates/rf-jobs` and `external/workers/_contract`. Spec: `docs/reelforge/vision2026/specs/async-envelope`.
|
||
- **Capability registry** (`infra/render-workers/registry.yaml`) — the join key: external source → signed image → RunPod/K8s endpoint → router adapter → observability labels → license class.
|
||
- **Signed immutable release-manifest** promoted dev→staging→prod for digest-pinned rollback (`infra/deploy`).
|
||
- **Wallet is the single authoritative billing source** — Lago/OpenMeter observe only; real-time pre-block gating stays in-house (ADR-0001/0002).
|
||
- **Template → RenderSpec compiler** — pure function; the seam between `domains/templates` and the existing compose pipeline.
|
||
|
||
## 4. Priority bets (ranked, mapped to tracks)
|
||
|
||
1. **Own the shot-template layer end-to-end** → `apps/api/app/domains/templates` (+15 seeded genres), mobile `features/templates`, desktop reuse via compose. *Fastest ROI; primitives already exist.*
|
||
2. **Close the full loop no competitor owns** → `domains/publishing` (scheduler + retention + A/B) + `app/events` bus + mobile `features/retention`+`features/experiments`.
|
||
3. **Multi-model wallet w/ per-shot routing + transparent burn preview** → `routing/providers` (22 adapters) + `domains/gateway` + mobile `features/wallet`.
|
||
4. **Watermark double-win** → watermark-clean masters in `domains/publishing` re-encode + watermark-on-free-export trigger (growth loop).
|
||
5. **Wallet → resellable API platform** → `domains/gateway` + `external/gateway-refs` + Lago bridge + `external/services/lago`.
|
||
6. **Pay-per-view clipping marketplace** → `domains/clipmarket` + mobile `features/marketplace` + fraud detection in `domains/moderation`.
|
||
7. **Consistency-as-infrastructure** → `domains/characters` (Soul-ID-like lock + Wan 2.2 LoRA) reused across shots/episodes.
|
||
8. **License-clean-by-default routing** → catalog license-class + hard-exclude NC/territorial weights; enforced at DEPLOY in `infra/render-workers/license-gate` AND at route time in `routing/providers`.
|
||
9. **Hook-strength / retention scoring pre-publish** → `services/loops` hook predictor + `services/captions` + 70% viral gate in `features/review`.
|
||
10. **Agent-native automation for faceless operators** → MCP + provisioning keys + self-hosted scheduler + `domains/series` + desktop `rf-clipfarm`; Sora-shutdown migration onboarding in `domains/growth`.
|
||
|
||
## 5. Success metrics
|
||
|
||
- **Time-to-first-published-reel** < 5 min from empty screen (onboarding killer).
|
||
- **Loop completion rate**: % of published reels that trigger at least one retention-driven regeneration (target > 40%).
|
||
- **Hook-gate precision**: predicted-vs-actual first-3s retention correlation > 0.7; < 10% false-block at the 70% gate.
|
||
- **Route savings**: median per-reel cost vs single-vendor baseline (target > 45% cheaper via `:floor`/cost-cap).
|
||
- **Warm-pool cost as SLO**: GPU $ / completed-job within budget; autoscale off queue-depth × wallet-held budget, never CPU.
|
||
- **Reseller GMV**: gateway markup revenue + clipmarket CPM payouts as % of platform revenue.
|
||
- **Faceless throughput**: unattended videos/operator/mo (target 150+) at capped spend.
|
||
- **License safety**: zero NC/territorial weights served to paying workspaces (deploy-gate + route-exclude invariant, alerted in observability).
|
||
|
||
## 6. Known gap
|
||
|
||
`apps/web` (Next.js app-router) has **no per-directory architecture doc yet** — it must gain feature surfaces mirroring the mobile feature set (templates picker, review/hook-gate, publishing composer, scheduler, experiments, retention viewer, wallet/gateway, marketplace, clipfarm console, film/series). This roadmap threads web work into each phase alongside mobile and flags authoring the `apps-web.md` doc as the first task of P6.
|
||
|
||
|
||
|
||
**Estimated new files (5 of 7 dirs):** 1740
|
||
|