Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.
TypeScript agentic-aiaiai-agentsai-videocompilerdslffmpeggenerative-aillmmarkup-languagemonorepoplugin-systemprogramming-languagetext-to-videotypescriptvideovideo-automationvideo-clonevideo-editingvideo-generation
import {
sealRecord,
} from "@hypit/kernel";
import type { AuthorFrontend, AuthorSourceExport } from "@hypit/author";
import { decodeSourceText } from "@hypit/source";
import { recipeFrontendId, recipeModuleRef, recipeType } from "./manifest.js";
import { parseRecipe } from "./parser.js";
export const recipeFrontend: AuthorFrontend = {
id: recipeFrontendId,
discover() {
return { modules: [`${recipeModuleRef.name}@${recipeModuleRef.version}`], sources: [] };
},
decode(source, context) {
const parsed = parseRecipe(source.name, decodeSourceText(source));
const records = parsed.recipes.map((recipe) => sealRecord({
id: recipe.value.path,
type: recipeType,
value: { kind: "inline", value: recipe.value },
}));
const exports: AuthorSourceExport[] = records.map((record) => ({
name: record.id,
ref: { kind: "record", id: record.id },
type: record.type,
}));
return {
records,
components: [],
fragments: [],
exports,
};
},
};