videogen/apps/web/lib/offer.ts
caelum0x d56639a594
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
Menivor — open source release (MIT), free to use and fork
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.
2026-12-04 02:10:26 +03:00

135 lines
8.0 KiB
TypeScript

/**
* The sign-up offer, in one place. Normally a $1 card check (charged by our
* payment provider and turned into 1 reel credit) unlocks 3 free reels. When
* payments are paused (`NEXT_PUBLIC_MENIVOR_PAYMENTS_PAUSED=1` at build time,
* matching the API's MENIVOR_PAYMENTS_PAUSED) there is no card step: every
* account gets free reels each month instead.
*/
export const PAYMENTS_PAUSED = process.env.NEXT_PUBLIC_MENIVOR_PAYMENTS_PAUSED === "1";
/**
* The first 3 reels are free before the card check (API `MENIVOR_FREE_FIRST_REEL=1`,
* `FIRST_REEL_CREDITS=3`). On by default; build with
* `NEXT_PUBLIC_MENIVOR_FREE_FIRST_REEL=0` when the API flag is off so the copy
* never promises reels the server will not grant.
*/
export const FREE_FIRST_REEL = process.env.NEXT_PUBLIC_MENIVOR_FREE_FIRST_REEL !== "0";
const CARD = {
/** Sub-heading under most marketing CTAs. */
signupSubheading: "Sign up free. A $1 card check unlocks 3 free reels, and the $1 becomes 1 more reel.",
/** Short hero note. */
heroNote: "Sign up free. A $1 card check unlocks 3 free reels.",
/** Sign-up page line after "One click with Google or Apple." */
signupNext: "Next, a $1 card check unlocks 3 free reels, and the $1 becomes 1 more reel.",
/** How-it-works step. */
howStep: "One click with Google or Apple, then a $1 card check that becomes a reel credit. The reels start by themselves.",
/** Business-page CTA sub-heading. */
startSubheading: "Paste the link, approve the $1 card check, and three reels start rendering. Credits never expire.",
/** Free plan card description. */
freePlan: "3 free reels after a $1 card check, plus 1 more for the $1.",
/** Free plan card first feature line. */
freePlanFeature: "3 reel credits, plus 1 for the $1 check",
/** Very short tagline. */
short: "3 free reels after a $1 card check",
/**
* The whole offer in one sentence. Homepage hero, free pricing card and the
* availability FAQ all read this so they cannot disagree.
* Card check: SIGNUP_GRANT (3) plus CARD_CHECK_CREDITS (1) for the $1.
*/
homepage: "A $1 card check unlocks 3 free reels, and the $1 becomes 1 more reel.",
/** Public launch body. */
publicBody:
"Menivor is open to everyone on the free tier. Create a free account, unlock 3 free reels with a $1 card check, and start with the formats that are live today.",
/** Public launch step. */
publicStep: "Sign up in one click with Google or Apple. A $1 card check unlocks 3 free reels, and the $1 becomes 1 more reel.",
/** Pricing explainer lead sentence. */
pricingLead: "New accounts unlock three free reels with a $1 card check, and the $1 becomes 1 more reel.",
/** FAQ: is it free. */
faqFree:
"Yes. Menivor is open to everyone on the free tier. Creating an account is free, and a $1 card check unlocks your free reels.",
/** SEO use-case: what you get free (videos wording). */
seoFreeVideos: "New accounts unlock three free AI UGC videos with a $1 card check, and the $1 becomes 1 more video.",
/** SEO use-case FAQ answer lead. */
seoFaqFree: "Yes. New Menivor accounts unlock three free reels with a $1 card check, and the $1 becomes 1 more reel.",
} as const;
type OfferCopy = { readonly [K in keyof typeof CARD]: string };
const PAUSED: OfferCopy = {
signupSubheading: "Sign up free and get 3 free reels every month. No card needed.",
heroNote: "Sign up free. 3 free reels every month, no card needed.",
signupNext: "Then you get 3 free reels every month, no card needed.",
howStep: "One click with Google or Apple. No card needed. The reels start by themselves.",
startSubheading: "Paste the link and three free reels start rendering. No card needed.",
freePlan: "3 free reels every month, no card needed.",
freePlanFeature: "3 reel credits every month",
short: "3 free reels every month",
homepage: "Every account gets 3 free reels a month, with no card.",
publicBody:
"Menivor is open to everyone on the free tier. Create a free account, get 3 free reels every month, and start with the formats that are live today.",
publicStep: "Sign up in one click with Google or Apple and get 3 free reels every month. No card needed.",
pricingLead: "Every account gets three free reels a month while paid plans are paused.",
faqFree: "Yes. Menivor is open to everyone on the free tier. Creating an account is free and includes 3 free reels every month.",
seoFreeVideos: "Every account gets three free AI UGC videos a month.",
seoFaqFree: "Yes. Every Menivor account gets three free reels a month.",
};
/** Card-check offer with 3 free reels up front (same promises, plus three reels). */
const FIRST_REEL: OfferCopy = {
...CARD,
signupSubheading:
"Sign up free and make 3 reels free, no card. Then a $1 card check unlocks 3 more free reels, and the $1 becomes 1 more reel.",
heroNote: "Your first 3 reels are free, no card. A $1 card check then unlocks 3 more.",
signupNext: "Your first 3 reels are free, no card. After them, a $1 card check unlocks 3 more free reels, and the $1 becomes 1 more reel.",
publicStep:
"Sign up in one click with Google or Apple and make 3 reels free, no card. A $1 card check then unlocks 3 more free reels, and the $1 becomes 1 more reel.",
short: "3 reels free, no card",
// first_reel.FIRST_REEL_CREDITS (3) before the card, then SIGNUP_GRANT (3) plus CARD_CHECK_CREDITS (1).
homepage:
"Your first 3 are free with no card, then a $1 card check unlocks 3 more free reels and the $1 becomes 1 more reel.",
howStep:
"One click with Google or Apple and your first 3 reels render free, no card. A $1 card check then unlocks 3 more free reels and becomes a reel credit.",
startSubheading:
"Paste the link and your first 3 reels render free, no card. A $1 card check then unlocks three more. Credits never expire.",
freePlan: "First 3 reels free with no card. A $1 card check then adds 3 free reels, plus 1 more for the $1.",
freePlanFeature: "3 free reels, then 3 more plus 1 for the $1 check",
publicBody:
"Menivor is open to everyone on the free tier. Create a free account, make 3 reels free with no card, then unlock 3 more free reels with a $1 card check.",
pricingLead:
"New accounts make 3 reels free with no card. A $1 card check then unlocks three more free reels, and the $1 becomes 1 more reel.",
faqFree:
"Yes. Menivor is open to everyone on the free tier. Creating an account is free, your first 3 reels are free with no card, and a $1 card check unlocks 3 more.",
seoFreeVideos:
"New accounts make their first 3 AI UGC videos free with no card, then unlock three more with a $1 card check, and the $1 becomes 1 more video.",
seoFaqFree:
"Yes. New Menivor accounts make 3 reels free with no card, then unlock three more free reels with a $1 card check, and the $1 becomes 1 more reel.",
};
/**
* The active offer copy, from the web build's own copy flag. `FREE_FIRST_REEL`
* defaults ON and is the only thing most of the site can read before the
* visitor has an account, but it can drift from the API's own
* `MENIVOR_FREE_FIRST_REEL` flag (defaulted OFF, see
* `apps/api/app/core/launch/policy.py::free_first_reel_enabled`) if a deploy
* only sets one side. Prefer `offerFor(posture.freeFirstReel)` over this
* constant wherever a server component already has the live
* `getLaunchPosture()` read (the homepage hero, the FAQ availability answer,
* the sign-up page): it reads the API's live truth instead of this guess, so
* it can never promise a free first reel the server will not grant.
*/
export const OFFER: OfferCopy = PAYMENTS_PAUSED ? PAUSED : FREE_FIRST_REEL ? FIRST_REEL : CARD;
/**
* The offer copy for a known, live `freeFirstReel` truth (the API's
* `/launch/status` `features.free_first_reel`, carried on `LaunchPosture`).
* Use this instead of `OFFER` wherever that live value is already in hand:
* it cannot show the "first reel free, no card" promise unless the server
* just confirmed it will actually grant one.
*/
export function offerFor(freeFirstReel: boolean): OfferCopy {
if (PAYMENTS_PAUSED) return PAUSED;
return freeFirstReel ? FIRST_REEL : CARD;
}