Skip to content

armgit / hypit

Public Imported from GitHub
0

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.

675 B
Raw Blame
import type { FontStackRef } from "@hypit/media";
import type { Recipe } from "@hypit/hypit/recipe";

/** The two values a Style decoder receives after author references are resolved. */
export type ExampleStyleInput = {
  readonly recipe: { readonly path: string; readonly properties: Recipe["properties"] };
  readonly fonts: FontStackRef;
};

/** A deliberately small, runnable Style boundary for the fixture. */
export function decodeExampleStyle(input: ExampleStyleInput): { readonly recipe: ExampleStyleInput["recipe"]; readonly fonts: FontStackRef } {
  return { recipe: { path: input.recipe.path, properties: { ...input.recipe.properties } }, fonts: input.fonts };
}