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.
3.4 KiB
P3–P5 — module architecture & implementation plan
Directive: real working implementations, no stubs/monkey-patches. Each item is a concrete module with a clear seam into existing code + tests.
P3.1 — Compose-stage VFX render (real FFmpeg)
Module: app/services/compose/vfx.py (pure filtergraph builder).
build_vfx_filters(camera_motion, effects, *, intensity, fps, width, height) -> list[str]— maps each preset to a valid FFmpeg filter fragment. Camera moves usezoompan/rotate/crop/setpts; filter-class VFX usergbashift/noise/tblend/curves/vignette/gblur.- Presets split into filter-class (renderable now) and overlay-class (explosion/confetti/rain… need generative overlay assets) — the builder emits real filters for filter-class and cleanly skips overlay-class (logged), never a fake filter. Overlay assets are a separate pipeline (P3.2, later).
build_vfx_node(..., in_label='comp', out_label='cfx') -> str→;[comp]f1,f2[cfx]or ''.
Seam: compose_avatar_over_screen gains camera_motion + effects params;
the VFX node is spliced between [comp] and the caption burn (effects render,
captions on top). _build_final_node(ass_path, in_label='comp') reads the fx label.
Wiring: the compose stage passes job.params['camera_motion'] + ['effects'];
reel-create validates presets (validate_camera_motion / validate_effects_stack)
so an invalid selection is a 422 before render.
P4 — Provider adapter breadth (real submit/poll)
Module: app/domains/routing/providers/async_media.py — a config-driven
AsyncMediaAdapter (one tested implementation for several async video/music
providers). Config = provider_key, base_url, submit_path, submit_body_fn,
poll_path_fn, state_field, state_map, id_field, output_field, seconds_field,
unit, capability. Real submit (POST) + poll (GET) + usage normalization; the
HTTP transport is the injectable boundary (tests pass a fake transport — that is
the network seam, not a stub of adapter logic).
Providers: Runway, Luma, Kling, Veo (video, seconds), Suno (music, seconds)
— each a real config. Registered in registry.register_available_adapters +
build_adapter; catalog entries already seeded.
P5 — Commerce polish (real)
- Tax —
wallet/policy.build_purchase_quotecomputes a configurable tax (reelforge_wallet_tax_bps, default 0) instead of the 0 placeholder; the checkout total includes it. Real integer math. - Invoices —
domains/wallet/invoices.pyInvoiceService.list_invoices/get_invoicefrom confirmedpayment_intents(line items: credit, fee, tax, total);GET /wallet/invoices,GET /wallet/invoices/{id}. Web view. - BYOK key UI — web
app/settings/keys/page.tsxover the existingPOST/GET/DELETE /byok/keys(secrets write-only). - Referral (paygo) —
domains/wallet/referral.py: a first-top-up referral credit grant (append-only wallet ledgergrantreasonreferral), idempotent per (referrer, referee). - Directory hygiene — ADR:
app/platform/providers/as the canonical outbound-protocol home; re-export fromdomains/routing/providersduring migration (no client import churn).
Sequencing
P3.1 (VFX render) → P4 (async adapters) → P5 (tax → invoices → BYOK UI → referral). Each lands with tests; migrations only where new tables are needed (none for P3.1/P4; none for tax/invoices/referral — they reuse existing tables).