Something went wrong. Try again.
AI-organized UGC video generator in a chat box. Cloudflare Workers, Vue, Claude API, ffmpeg.wasm reelity.arjunkrishna.dev
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091export type Role = "user" | "assistant";
export type JobStatus = | "queued" | "scraping" | "thinking" | "sourcing" | "rendering" | "done" | "failed";
export type VideoFormat = "reaction" | "composite";
export interface RenderSpec { format: VideoFormat; productName: string; siteUrl: string; concept: string; caption: string; reactionQuery: string; pexelsQuery: string; giphyQuery: string; audioVibe: string; accentColor: string;}
export interface BackgroundAsset { kind: "video" | "image" | "gradient"; url?: string; poster?: string; source: "pexels" | "og" | "gradient";}
export interface GifAsset { url: string; source: "giphy" | "fallback";}
export interface AudioAsset { url: string; title: string; vibe: string; attribution?: string;}
export interface ResolvedAssets { background: BackgroundAsset; gif: GifAsset | null; audio: AudioAsset | null;}
export interface Job { id: string; status: JobStatus; progress: number; spec?: RenderSpec; assets?: ResolvedAssets; videoUrl?: string; concept?: string; model?: string; error?: string;}
export interface ChatTurn { role: Role; content: string;}
export interface ChatMessage { id: string; role: Role; text?: string; job?: Job; pending?: boolean; createdAt: number;}
export interface GalleryItem { id: string; productName: string | null; concept: string | null; caption: string | null; format: VideoFormat | null; model: string | null; videoUrl: string; poster: string | null; audioTitle: string | null; spec: RenderSpec | null; createdAt: number;}