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.
117 lines
7.4 KiB
Markdown
117 lines
7.4 KiB
Markdown
# Menivor — CTO / Business Plan (free-first infra + unit economics)
|
||
|
||
**Product:** Menivor = "Screen recording → vertical, captioned UGC reel" (avatar + voice + word-by-word
|
||
captions). Mobile (RN, on App Store review path), Web (Next.js), Desktop (Rust/Tauri). Backend = Python
|
||
FastAPI + celery workers + prism media gateway + a generation engine (ComfyUI/FramePack) that can run
|
||
locally on GPU **or** offload to serverless GPU (fal.ai / Replicate / Modal / RunPod).
|
||
|
||
**North star:** creators turn a raw screen capture into a publish-ready reel in one tap. Wedge = speed +
|
||
Menivor-yellow captions + zero-setup mobile.
|
||
|
||
---
|
||
|
||
## 0. Compute revision — Oracle A1 is FULL (used by recoder+vcpeer)
|
||
|
||
Menivor does NOT get Oracle. Replacement free compute (engine already integrates Modal → use it):
|
||
- **Generation + heavy render (GPU & CPU): Modal** — serverless CPU+GPU, **scale-to-zero ($0 idle)**,
|
||
**~$30/mo free credit**, and it's ALREADY wired in the engine (137 refs). Consolidate GPU gen + ffmpeg
|
||
render + whisper here; drops the need for a standing box AND a separate fal.ai. Swap-able to Replicate/RunPod.
|
||
- **Always-reachable API (FastAPI):** two zero-cost choices —
|
||
- **Google Cloud Run free** (scale-to-zero, 2M req/mo, 180k vCPU-s free) — best; needs a GCP acct w/ card
|
||
(no charge under free limits).
|
||
- **Hugging Face Spaces** free Docker (2 vCPU / 16GB, **no card**) — truly free, sleeps when idle; fine for MVP.
|
||
(HF also offers **ZeroGPU** free-quota GPU as a fallback gen path.)
|
||
- If we move the API onto Modal web endpoints too, we can **drop celery/redis** (Modal has its own async job
|
||
queue) → simpler + all within the free credit.
|
||
Everything else below stays (Neon / Upstash / R2 / CF Pages / CF Tunnel not needed if Cloud Run/HF public).
|
||
|
||
## 1. Architecture — $0 fixed cost (Oracle row replaced by Modal + Cloud Run/HF)
|
||
|
||
```
|
||
Mobile / Web / Desktop
|
||
│ HTTPS (api.menivor.com via Cloudflare Tunnel)
|
||
▼
|
||
┌─────────────────────────── Oracle Cloud A1 (ALWAYS-FREE: 4 ARM cores / 24GB) ──────────────────────────┐
|
||
│ FastAPI (uvicorn) · celery workers · prism-media-gateway · ffmpeg/moviepy compose · whisper CC │
|
||
└───────┬───────────────────────┬───────────────────────────┬───────────────────────────┬───────────────┘
|
||
│ Postgres │ Redis (broker) │ object storage │ GPU generation
|
||
▼ ▼ ▼ ▼ (per-render only)
|
||
Neon (free) Upstash (free) or Cloudflare R2 (free, fal.ai / Replicate
|
||
Redis on A1 10GB, ZERO egress) (pay-per-second, $0 idle)
|
||
+ ElevenLabs (voice)
|
||
Web app: Cloudflare Pages (free) · DNS/TLS/ingress: Cloudflare (free) · Payments: RevenueCat (mobile) / Stripe-or-Creem (web)
|
||
```
|
||
|
||
| Layer | Choice | Why | $/mo |
|
||
|---|---|---|---|
|
||
| Compute (API/workers/prism/compose/captions) | **Oracle A1 free** | 24GB ARM, always-free, CPU covers everything except diffusion; proven on vcpeer/recoder | 0 |
|
||
| DB | **Neon free** | serverless Postgres, branch/restore, used on recoder | 0 |
|
||
| Broker/cache | **Upstash free** (or Redis on A1) | celery broker | 0 |
|
||
| Media + renders | **Cloudflare R2 free** | 10GB + **zero egress** = critical for video | 0 |
|
||
| Web | **Cloudflare Pages free** | already on CF; Next.js static/edge | 0 |
|
||
| Ingress | **Cloudflare Tunnel** | expose A1 with no public IP / free TLS | 0 |
|
||
| **GPU gen + TTS** | **fal.ai or Replicate + ElevenLabs** | serverless GPU, **$0 idle**, pay per reel | usage |
|
||
| Errors | Sentry free / self-host GlitchTip on A1 | | 0 |
|
||
|
||
**Fixed cost ≈ $0.** Only variable cost = GPU seconds + TTS **per generated reel** → gate behind
|
||
credits/Pro so it's revenue-covered, never a standing bill. (This is also why the app shows a waitlist
|
||
today: no backend deployed + no gen provider set.)
|
||
|
||
---
|
||
|
||
## 2. Unit economics (per reel)
|
||
|
||
Marginal cost of one ~15-30s avatar+caption reel:
|
||
- GPU gen (avatar/lip-sync/diffusion on fal.ai/Replicate): ~**$0.05–0.30** (model + length dependent)
|
||
- TTS (ElevenLabs; free tier 10k chars/mo covers early users): ~**$0.00–0.10**
|
||
- Captions (faster-whisper on A1 CPU): **$0**
|
||
- Compose (ffmpeg/moviepy on A1): **$0**
|
||
- Storage/egress (R2, zero egress): **~$0**
|
||
|
||
**≈ $0.10–0.40 marginal cost / reel.** Everything else fixed = $0.
|
||
|
||
**Pricing (RevenueCat mobile / web checkout):**
|
||
- **Free:** caption-only reels (CPU, watermark) unlimited + e.g. 3 AI-avatar reels/mo → $0 cost, top-of-funnel.
|
||
- **Pro $12.99/mo:** ~30 AI reels/mo included (cost cap ~$3–12) → **60–75%+ gross margin**; overage as credits.
|
||
- **Credits:** $X for N reels for heavy users; margin protected by capping included reels.
|
||
- Break-even is trivial: fixed cost 0 → **any** paying user is profit after their reel costs.
|
||
|
||
Guardrails: hard per-user monthly reel cap, per-render timeout, cheapest-model default, cache identical
|
||
renders (already in code), watermark on free tier.
|
||
|
||
---
|
||
|
||
## 3. Execution roadmap
|
||
|
||
**Phase 0 — code (in flight):** mobile/web/desktop fully use the API (workflow `wf_dac0a0be-ab7`);
|
||
desktop reuses **railyard** services (relay→gen gateway, rago→billing, mint/ledgerline→settlement/wallet,
|
||
turnstile→gateway, ranguard→auth).
|
||
|
||
**Phase 1 — free backend live (unblocks the App Store product):**
|
||
1. Oracle A1 instance (reuse vcpeer OCI playbook) — *needs your OCI login once*.
|
||
2. Deploy API + celery + prism via a new `docker-compose.free.yml` (CPU profile) behind Cloudflare Tunnel → `api.menivor.com`.
|
||
3. Wire Neon (DB), Upstash/Redis, R2 (boto3), Sentry.
|
||
4. Set generation provider = **fal.ai** (or Replicate) — *needs one API key*; voice = ElevenLabs free tier.
|
||
5. `WAITLIST_MODE=0` + enable generation entitlement → app becomes a full product; then mobile screenshots + submit.
|
||
|
||
**Phase 2 — monetize:** RevenueCat products (Free/Pro/credits) live on mobile; web checkout (Creem/Stripe);
|
||
enforce reel caps + credits server-side (rago/ledgerline).
|
||
|
||
**Phase 3 — scale only if revenue justifies:** if GPU spend or A1 CPU saturate, move gen to a cheaper
|
||
committed GPU (RunPod/Modal) or add a paid A-tier box — a revenue-triggered decision, not upfront.
|
||
|
||
---
|
||
|
||
## 4. Risks & mitigations
|
||
- **GPU cost runaway** → per-user caps, cheapest model default, render cache, credits gating. (Biggest risk.)
|
||
- **Oracle A1 free reclaim/capacity** → keep infra as code (docker-compose + tunnel) so redeploy is minutes; Neon/R2 hold state.
|
||
- **Apple review** → app must be fully functional (not waitlist) at submit → Phase 1 before mobile submit.
|
||
- **ElevenLabs/free-tier limits** → fall back to open TTS on A1 (CPU) for free tier; premium voice = paid.
|
||
- **Vendor lock** → gen provider is abstracted (fal/Replicate/Modal/RunPod already integrated) → swap by config.
|
||
|
||
## 5. What needs the owner (everything else I stage)
|
||
1. **OCI login** (spin the A1 box) — one time.
|
||
2. **One GPU-provider API key** (fal.ai or Replicate) + optional ElevenLabs key.
|
||
3. Confirm pricing ($12.99 Pro / free caps) so I wire RevenueCat + server caps.
|
||
</content>
|