caelum0x d56639a594
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
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

305 lines
12 KiB
TypeScript

/**
* `menivor.com/llms.txt` (MA2), generated from plan config and feature flags.
*
* - Prices come from the same plan config the pricing page and the JSON-LD
* read (`offersFromPlanConfig`); nothing here types a price.
* - A capability behind a product flag appears only while its flag is on:
* presenters and lip-sync (`NEXT_PUBLIC_PRESENTER_LIVE`, rule
* `menivor-presenter-locked`) and direct publishing
* (`NEXT_PUBLIC_PUBLISHING_LIVE`, the web mirror of the API's
* `REELFORGE_PUBLISHING_ENABLED`). Both are off by default.
*/
import { PRICING_PLANS } from "@/components/marketing/plans";
import { OFFER } from "@/lib/offer";
import { presenterLive } from "@/lib/styles/catalog";
import { FALLBACK_CATALOG, type MonthlyCatalog } from "@/src/features/plans/api";
import { ENTITY_DESCRIPTION, offersFromPlanConfig, type OfferLd } from "./entity";
import { MENIVOR_ONE_LINER, SITE_URL } from "./site";
export interface LlmsFlags {
readonly presenterLive: boolean;
readonly publishingLive: boolean;
}
function flagOn(raw: string | undefined): boolean {
const value = (raw ?? "").trim().toLowerCase();
return value === "1" || value === "true";
}
export function llmsFlagsFromEnv(env: Readonly<Record<string, string | undefined>> = process.env): LlmsFlags {
return {
presenterLive: presenterLive(env.NEXT_PUBLIC_PRESENTER_LIVE),
publishingLive: flagOn(env.NEXT_PUBLIC_PUBLISHING_LIVE),
};
}
function offerLine(offer: OfferLd): string {
const dollars = Number(offer.price);
const shown = Number.isInteger(dollars) ? `$${dollars}` : `$${dollars.toFixed(2)}`;
return `- ${offer.name}: ${shown}. ${offer.description}`;
}
export interface LlmsInput {
readonly flags: LlmsFlags;
readonly offers?: readonly OfferLd[];
}
export function buildLlmsText({ flags, offers = offersFromPlanConfig() }: LlmsInput): string {
const facts = [
"- Input: a link, a topic, or your own screen recording.",
"- Output: ready-to-post 1080 x 1920 vertical MP4 files to download.",
"- Languages: English and Turkish scripts and voiceovers.",
"- Editing: hook-first scripts, AI voiceover and word-by-word karaoke captions.",
`- Grok Bot: Menivor can be used from Grok Bot with the free Menivor Launch Reels template (${SITE_URL}/go/grok-bot).`,
];
if (flags.presenterLive) {
facts.push("- Presenter reels: an AI presenter with lip-synced speech (Pro and Agency plans).");
}
if (flags.publishingLive) {
facts.push("- Publishing: post finished reels to TikTok, Instagram Reels and YouTube Shorts from the app.");
} else {
facts.push("- Posting: download the finished MP4 and post it yourself.");
}
facts.push(
"- A failed render gives its credit back. Purchased credits do not expire.",
"- Menivor has not published customer counts, revenue, or video-performance results.",
);
const pricing = offers.length
? offers.map(offerLine)
: ["- See the pricing page for current plans and packs."];
return [
"# Menivor",
"",
`> ${ENTITY_DESCRIPTION}`,
"",
MENIVOR_ONE_LINER,
"",
`Canonical website: ${SITE_URL}`,
"",
"## What works today",
"",
...facts,
"",
"## Prices",
"",
...pricing,
`- Full and current prices: ${SITE_URL}/pricing`,
"",
"## Full text",
"",
`- Full reference with plan details, how it works, and FAQ: ${SITE_URL}/llms-full.txt`,
"",
"## Canonical pages",
"",
`- Product overview: ${SITE_URL}/`,
`- Pricing: ${SITE_URL}/pricing`,
`- About Menivor: ${SITE_URL}/about`,
`- Press kit: ${SITE_URL}/press`,
`- MCP server for AI agents: ${SITE_URL}/mcp`,
`- Contact: ${SITE_URL}/contact`,
`- XML sitemap: ${SITE_URL}/sitemap.xml`,
"",
"## Citation guidance",
"",
"Use the most specific canonical page for a capability. Treat prices as time-sensitive and check them on the pricing page before citing them.",
"",
].join("\n");
}
/**
* Text mirror of the homepage "How it works" section (`#how-it-works`,
* `components/marketing/styles/ThreeSteps.tsx`). Kept in sync by hand: update
* both places together if the steps change.
*/
const HOW_IT_WORKS_STEPS: readonly { readonly title: string; readonly body: string }[] = [
{
title: "1. Paste any link",
body: "Your site, app store page or a post. Menivor reads the page and writes from what is really there.",
},
{
title: "2. Pick a style",
body: "Block-world gameplay, meme hook, anime, before and after. One click, no settings.",
},
{
title: "3. Get three reels",
body: "Three 9:16 versions with different opening hooks, voiced and captioned. Keep the one that wins.",
},
];
/**
* Text mirror of the homepage FAQ (`BASE_FAQS` in `app/(marketing)/page.tsx`),
* minus the one live-posture question (availability), which is reconstructed
* below from the same `OFFER` copy the homepage itself reads. Kept in sync by
* hand: update both places together if the FAQ changes.
*/
const FULL_FAQ_BASE: readonly { readonly question: string; readonly answer: string }[] = [
{
question: "What is Menivor?",
answer:
"Menivor makes finished short videos for you. Paste a link and get ads written for it, or type a topic and get a story. Each run renders vertical reels with different opening hooks, a voiceover and word-by-word captions, ready to post.",
},
{
question: "Can Menivor turn a screen recording into a reel?",
answer:
"Yes. Menivor uses your screen recording as the footage, writes a hook-first script, voices it and burns in word-by-word captions, then renders a vertical MP4.",
},
{
question: "Do Menivor credits expire?",
answer:
"No. Credits never expire, a failed render refunds its credit automatically, and we never train on your content. These promises are published in our Creator Contract.",
},
{
question: "What styles can Menivor make?",
answer:
"Block-world gameplay split-screen, meme-caption hooks (like “you met me at a very ___ time in my life”), original AI anime-style scenes, satisfying split-screen, POV text, before and after, story time and a cartoon narrator over gameplay. Pick one with a click after pasting your link.",
},
{
question: "Is the footage and music safe to post?",
answer:
"Yes. Gameplay and satisfying loops are original footage we render ourselves, anime-style scenes are generated fresh for your reel, and meme hooks reuse only the text pattern, written for your product. No ripped clips or library sounds are used.",
},
{
question: "Does Menivor support Turkish videos?",
answer:
"Yes. Menivor writes and voices hook scripts in English or Turkish, and its caption fonts include Turkish characters.",
},
{
question: "Can I use Menivor from Grok Bot?",
answer:
"Yes, with the free Menivor Launch Reels template. Paste an X launch post or a product link and it returns three reels in 9:16 after you approve the cost. You post the one you like.",
},
];
function faqLines(
faqs: readonly { readonly question: string; readonly answer: string }[],
): string[] {
return faqs.flatMap((faq) => [`### ${faq.question}`, "", faq.answer, ""]);
}
function packLine(plan: (typeof PRICING_PLANS)[number]): string {
return `- ${plan.name}: ${plan.price} (${plan.period}), ${plan.credits} reel credit${plan.credits === 1 ? "" : "s"}. ${plan.description}`;
}
function monthlyLine(plan: MonthlyCatalog["plans"][number]): string {
const monthlyDollars = plan.monthly_cents / 100;
const perReel = plan.per_reel_cents.month / 100;
const price = Number.isInteger(monthlyDollars) ? `$${monthlyDollars}` : `$${monthlyDollars.toFixed(2)}`;
return `- ${plan.name} monthly plan: ${price}/month for ${plan.monthly_reels} reel credits a month (about $${perReel.toFixed(2)} per reel).`;
}
export interface LlmsFullInput extends LlmsInput {
readonly packs?: typeof PRICING_PLANS;
readonly monthly?: MonthlyCatalog;
}
/**
* `menivor.com/llms-full.txt` (MA2 full reference): everything in
* `buildLlmsText` plus the full plan lineup (free offer, one-time packs and
* monthly plans), a "how it works" walkthrough, and the homepage FAQ in full,
* for an AI agent or crawler that wants the complete picture in one request.
*/
export function buildLlmsFullText({
flags,
offers = offersFromPlanConfig(),
packs = PRICING_PLANS,
monthly = FALLBACK_CATALOG,
}: LlmsFullInput): string {
const facts = [
"- Input: a link, a topic, or your own screen recording.",
"- Output: ready-to-post 1080 x 1920 vertical MP4 files to download.",
"- Languages: English and Turkish scripts and voiceovers.",
"- Editing: hook-first scripts, AI voiceover and word-by-word karaoke captions.",
`- Grok Bot: Menivor can be used from Grok Bot with the free Menivor Launch Reels template (${SITE_URL}/go/grok-bot).`,
];
if (flags.presenterLive) {
facts.push("- Presenter reels: an AI presenter with lip-synced speech (Pro and Agency plans).");
}
if (flags.publishingLive) {
facts.push("- Publishing: post finished reels to TikTok, Instagram Reels and YouTube Shorts from the app.");
} else {
facts.push("- Posting: download the finished MP4 and post it yourself.");
}
facts.push(
"- A failed render gives its credit back. Purchased credits do not expire.",
"- Menivor has not published customer counts, revenue, or video-performance results.",
);
const headlinePricing = offers.length
? offers.map(offerLine)
: ["- See the pricing page for current plans and packs."];
const freePack = packs.find((p) => p.price === "$0");
const paidPacks = packs.filter((p) => p !== freePack);
const monthlyPlans = [...monthly.plans].sort((a, b) => a.rank - b.rank);
const monthlyLines = monthlyPlans.length
? monthlyPlans.map(monthlyLine)
: ["- See the pricing page for current monthly plans."];
const faqs = [
...FULL_FAQ_BASE,
{
question: "Is Menivor available now?",
answer: `Yes. Menivor is public today. ${OFFER.homepage} See ${SITE_URL}/pricing for exactly what is open right now.`,
},
];
return [
"# Menivor — full reference",
"",
`> ${ENTITY_DESCRIPTION}`,
"",
MENIVOR_ONE_LINER,
"",
`Canonical website: ${SITE_URL}`,
`Short reference: ${SITE_URL}/llms.txt`,
"",
"## How it works",
"",
...HOW_IT_WORKS_STEPS.flatMap((step) => [`### ${step.title}`, "", step.body, ""]),
"## What works today",
"",
...facts,
"",
"## Prices at a glance",
"",
...headlinePricing,
"",
"## Free tier",
"",
freePack ? packLine(freePack) : "- See the pricing page for the current free tier.",
"",
"## One-time credit packs",
"",
...paidPacks.map(packLine),
"- Pack credits never expire. A failed render gives its credit back.",
"",
"## Monthly plans",
"",
...monthlyLines,
"- Monthly plans add their reel allotment on every renewal; cancel any time and keep reels through the period end.",
`- Full and current prices: ${SITE_URL}/pricing`,
"",
"## Frequently asked questions",
"",
...faqLines(faqs),
"## Canonical pages",
"",
`- Product overview: ${SITE_URL}/`,
`- Pricing: ${SITE_URL}/pricing`,
`- About Menivor: ${SITE_URL}/about`,
`- Press kit: ${SITE_URL}/press`,
`- MCP server for AI agents: ${SITE_URL}/mcp`,
`- Contact: ${SITE_URL}/contact`,
`- XML sitemap: ${SITE_URL}/sitemap.xml`,
`- Short reference: ${SITE_URL}/llms.txt`,
"",
"## Citation guidance",
"",
"Use the most specific canonical page for a capability. Treat prices as time-sensitive and check them on the pricing page before citing them.",
"",
].join("\n");
}