Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
---
title: Prompt to App
description: "A prompt types into a chat, files are written, and a site preview builds and deploys"
component: prompt-to-app
vibe: tech
length: 290
useWhen:
- "A launch video for an AI app builder showing prompt, plan, file writes and the finished site in one take."
- "A beat that proves the output is real: files appear, the preview fills in, then a deploy goes live."
- "A demo of a coding agent that ends on a shareable URL."
avoidWhen:
- "You want a short prompt-to-page swell without chat or files — use `prompt-swell`."
- "The tool outputs images, not a site — use `ai-image-grid`."
- "You want an agent plan with tool calls and checks rather than a site preview — use `agent-run`."
askedAs:
- "ai app builder demo"
- "chat prompt writes files and deploys"
- "type a prompt, watch files being written, then a site preview builds and goes live"
- "I want proof that the AI output is a real working site"
- "one take from idea to deployed app for a vibe coding tool"
- "lovable or v0 style launch with chat, file writes and deploy"
---
<ComponentPreview name="prompt-to-app" />
<InstallBlock name="prompt-to-app" />
## Usage
```tsx
// src/Root.tsx
import { Composition } from "remotion";
import { PromptToApp } from "@/components/remocn/prompt-to-app";
const PromptToAppScene = () => (
<PromptToApp
prompt="Build a landing page for Lumen, a candle shop"
projectName="lumen-site"
deployUrl="lumen.remocn.app"
siteName="Lumen"
/>
);
export const RemotionRoot = () => (
<Composition
id="PromptToApp"
component={PromptToAppScene}
durationInFrames={314}
fps={30}
width={1280}
height={720}
/>
);
```
A prompt types into a chat, the assistant thinks and streams a short plan, then writes each file while a site preview builds beside it. A cursor clicks deploy, and the live URL pops in. Pass `prompt`, `plan`, `files`, `projectName`, and `deployUrl` for the chat side, and `siteName`, `siteHeadline`, `siteBody`, `siteLinks`, and `pours` for the built-in sample page, or pass your own React as `children` to replace the preview. It ships light and dark through `theme`.
The ground is a live gradients.sh shader (`GshGround`), installed with the component as `@remocn/gsh`. Pick another look with the `ground` preset prop.
<PropsTable title="Props"
rows={[
{
name: "prompt",
type: "string",
default: "DEFAULT_PROMPT",
description: "The request typed into the chat.",
},
{
name: "plan",
type: "string",
default: "DEFAULT_PLAN",
description: "The assistant's short plan streamed after the prompt.",
},
{
name: "files",
type: "string[]",
description: "File names written one by one during the build.",
},
{
name: "doneMessage",
type: "string",
default: "\"Fernway is ready. The booking button links to your reservations page.\"",
description: "Message shown once all files are written.",
},
{
name: "projectName",
type: "string",
default: "\"fernway-site\"",
description: "Project name shown in the preview header.",
},
{
name: "deployUrl",
type: "string",
default: "\"fernway.remocn.app\"",
description: "Live URL shown after the deploy completes.",
},
{
name: "siteName",
type: "string",
default: "\"Fernway\"",
description: "Brand name on the sample site.",
},
{
name: "siteEyebrow",
type: "string",
default: "\"Wine bar · Open late\"",
description: "Small line above the sample site headline.",
},
{
name: "siteHeadline",
type: "string",
default: "\"Natural wine, small plates, one long table.\"",
description: "Headline of the sample site.",
},
{
name: "siteBody",
type: "string",
default: "\"Low-intervention bottles and seasonal plates in the Mission. Walk-ins welcome until 10.\"",
description: "Body copy of the sample site.",
},
{
name: "siteLinks",
type: "string[]",
default: "[\"Menu\", \"Wine list\", \"Events\", \"Visit\"]",
description: "Nav links on the sample site.",
},
{
name: "pours",
type: "AppPour[]",
default: "DEFAULT_POURS",
description: "Cards in the sample site grid: name, origin, price, tone.",
},
{
name: "children",
type: "React.ReactNode",
description: "Your own React content to replace the sample site.",
},
{
name: "theme",
type: "\"light\" | \"dark\"",
default: "\"light\"",
description: "Light or dark interface.",
},
{
name: "accent",
type: "string",
default: "\"#3B5BFD\"",
description: "Accent color for buttons and highlights.",
},
{
name: "speed",
type: "number",
default: "1",
description: "Playback speed multiplier for the whole timeline.",
},
{
name: "ground",
type: "GshPresetId",
description: "Gradient shader preset for the background.",
},
{
name: "groundParams",
type: "Partial<GradientParams>",
description: "Overrides for the shader preset parameters.",
},
]}
/>