Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

feat: rewrite docs

dev_wandry194ae3b5f46f
diff --git a/components/docs/examples/ai.tsx b/components/docs/examples/ai.tsx
new file mode 100644
index 00000000..762ec052
--- /dev/null
+++ b/components/docs/examples/ai.tsx
@@ -0,0 +1,44 @@
+import type { ComponentType } from "react";
+import { ChatGpt } from "@/registry/remocn/chat-gpt";
+import { chatGptConfig } from "@/registry/remocn/chat-gpt/config";
+import { ClaudeChat } from "@/registry/remocn/claude-chat";
+import { claudeChatConfig } from "@/registry/remocn/claude-chat/config";
+import { ClaudeCode } from "@/registry/remocn/claude-code";
+import { claudeCodeConfig } from "@/registry/remocn/claude-code/config";
+import { OpenCode } from "@/registry/remocn/opencode";
+import { opencodeConfig } from "@/registry/remocn/opencode/config";
+import { V0 } from "@/registry/remocn/v0";
+import { v0Config } from "@/registry/remocn/v0/config";
+
+export interface AiExampleEntry {
+ Component: ComponentType;
+ durationInFrames: number;
+ fps: number;
+ width: number;
+ height: number;
+}
+
+interface SceneConfig {
+ durationInFrames: number;
+ fps: number;
+ compositionWidth: number;
+ compositionHeight: number;
+}
+
+function entry(Component: ComponentType, config: SceneConfig): AiExampleEntry {
+ return {
+ Component,
+ durationInFrames: config.durationInFrames,
+ fps: config.fps,
+ width: config.compositionWidth,
+ height: config.compositionHeight,
+ };
+}
+
+export const aiExamples: Record<string, AiExampleEntry> = {
+ "claude-chat": entry(ClaudeChat, claudeChatConfig),
+ "chat-gpt": entry(ChatGpt, chatGptConfig),
+ v0: entry(V0, v0Config),
+ "claude-code": entry(ClaudeCode, claudeCodeConfig),
+ opencode: entry(OpenCode, opencodeConfig),
+};
diff --git a/config/site.ts b/config/site.ts
index 2e885899..edf7db54 100644
--- a/config/site.ts
+++ b/config/site.ts
@@ -44,6 +44,11 @@ export const NEW_BADGE_PATHS = new Set<string>([
"/docs/social/x-follow-card",
"/docs/social/x-followers-overview",
"/docs/effects/confetti",
+ "/docs/ai/claude-chat",
+ "/docs/ai/chat-gpt",
+ "/docs/ai/v0",
+ "/docs/ai/claude-code",
+ "/docs/ai/opencode",
]);
export const FOOTER_NAV: NavLink[] = [
diff --git a/content/docs/ui-blocks/chat-gpt.mdx b/content/docs/ai/chat-gpt.mdx
similarity index 100%
rename from content/docs/ui-blocks/chat-gpt.mdx
rename to content/docs/ai/chat-gpt.mdx
diff --git a/content/docs/ui-blocks/claude-chat.mdx b/content/docs/ai/claude-chat.mdx
similarity index 100%
rename from content/docs/ui-blocks/claude-chat.mdx
rename to content/docs/ai/claude-chat.mdx
diff --git a/content/docs/ui-blocks/claude-code.mdx b/content/docs/ai/claude-code.mdx
similarity index 100%
rename from content/docs/ui-blocks/claude-code.mdx
rename to content/docs/ai/claude-code.mdx
diff --git a/content/docs/ai/index.mdx b/content/docs/ai/index.mdx
new file mode 100644
index 00000000..ec3a3be9
--- /dev/null
+++ b/content/docs/ai/index.mdx
@@ -0,0 +1,50 @@
+---
+title: AI
+description: Animated AI tool interfaces — chat composers and CLI welcome screens that type a prompt
+---
+
+Recreations of the interfaces people open every day to talk to AI — chat composers and coding-agent CLIs. Each one types a prompt on the timeline and shares the same `useTypewriter` hook and `caret` primitive.
+
+## Chat composers
+
+<ComponentCardGrid
+ items={[
+ {
+ name: "ClaudeChat",
+ description: "Claude chat input — types a prompt and the waveform button morphs into a send button",
+ status: "stable",
+ href: "/docs/ai/claude-chat",
+ },
+ {
+ name: "ChatGPT",
+ description: "ChatGPT composer — types a prompt, morphs the voice button to send, and fades the suggestion chips",
+ status: "stable",
+ href: "/docs/ai/chat-gpt",
+ },
+ {
+ name: "v0",
+ description: "Vercel v0 composer — types into the dark textarea and morphs the mic button into a send button",
+ status: "stable",
+ href: "/docs/ai/v0",
+ },
+ ]}
+/>
+
+## Coding agents
+
+<ComponentCardGrid
+ items={[
+ {
+ name: "ClaudeCode",
+ description: "Claude Code CLI welcome screen — types a command into the terminal prompt with a block cursor",
+ status: "stable",
+ href: "/docs/ai/claude-code",
+ },
+ {
+ name: "OpenCode",
+ description: "OpenCode TUI welcome screen — types a query into the input below the wordmark",
+ status: "stable",
+ href: "/docs/ai/opencode",
+ },
+ ]}
+/>
diff --git a/content/docs/ai/meta.json b/content/docs/ai/meta.json
new file mode 100644
index 00000000..2e603369
--- /dev/null
+++ b/content/docs/ai/meta.json
@@ -0,0 +1,5 @@
+{
+ "title": "AI",
+ "collapsible": false,
+ "pages": ["index", "claude-chat", "chat-gpt", "v0", "claude-code", "opencode"]
+}
diff --git a/content/docs/ui-blocks/opencode.mdx b/content/docs/ai/opencode.mdx
similarity index 100%
rename from content/docs/ui-blocks/opencode.mdx
rename to content/docs/ai/opencode.mdx
diff --git a/content/docs/ui-blocks/v0.mdx b/content/docs/ai/v0.mdx
similarity index 100%
rename from content/docs/ui-blocks/v0.mdx
rename to content/docs/ai/v0.mdx
diff --git a/content/docs/meta.json b/content/docs/meta.json
index a014d678..c3a53c0b 100644
--- a/content/docs/meta.json
+++ b/content/docs/meta.json
@@ -6,6 +6,7 @@
"ui",
"environment",
"ui-blocks",
+ "ai",
"transitions",
"social",
"effects",
diff --git a/content/docs/ui-blocks/meta.json b/content/docs/ui-blocks/meta.json
index 32ea04e6..88e5641d 100644
--- a/content/docs/ui-blocks/meta.json
+++ b/content/docs/ui-blocks/meta.json
@@ -8,11 +8,6 @@
"code-accordion",
"code-diff-wipe",
"tool-menu-slide-in",
- "claude-chat",
- "chat-gpt",
- "v0",
- "claude-code",
- "opencode",
"animated-line-chart",
"animated-bar-chart",
"drag-and-drop-flow"
diff --git a/src/remotion/demos-root.tsx b/src/remotion/demos-root.tsx
index 5612380b..dba7f174 100644
--- a/src/remotion/demos-root.tsx
+++ b/src/remotion/demos-root.tsx
@@ -1,6 +1,7 @@
import type { ComponentType } from "react";
import { loadFont } from "@remotion/google-fonts/Geist";
import { AbsoluteFill, Composition, Loop, registerRoot } from "remotion";
+import { aiExamples } from "@/components/docs/examples/ai";
import { examples } from "@/components/docs/examples";
import { blockExamples } from "@/components/docs/examples/blocks";
@@ -9,7 +10,7 @@ import { blockExamples } from "@/components/docs/examples/blocks";
* the composition `blockExamples` (keyed `<name>-flow`). Key namespaces don't
* overlap, and both records share the timing/scene shape this root consumes.
*/
-const ALL_SCENES = { ...examples, ...blockExamples };
+const ALL_SCENES = { ...examples, ...blockExamples, ...aiExamples };
/**
* Demos bundle root. Auto-declares one Remotion composition per docs example