Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
perf(docs): compile docs MDX when a page renders, not in the bundler
kapishdimae5081d6daa31
diff --git a/CLAUDE.md b/CLAUDE.mdindex 450bba6b..282bbd7d 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -44,6 +44,7 @@ Solo builders и маленькие команды (1-2 чел), фронтен- Frontmatter компонента: `component`, `vibe` (одно из семи значений в `lib/docs-schema.ts`), `length`, `useWhen` и `avoidWhen` — списки строк в двойных кавычках. Поля машинные, на странице не рендерятся- `length` — кадры **собственного движения** компонента при 30fps: у перехода это значение для `linearTiming`/`springTiming`, у остальных — момент, когда анимация закончилась. Это нижняя граница `Sequence`, а не длина бита: холд сверху добавляется отдельно. Поэтому `length` намеренно расходится с `durationInFrames` в `config.ts` — там длина демо-композиции вместе с холдом. `"state-driven"` — компонент рендерится из пропа `state` и своей длительности не имеет- В `avoidWhen` называй компонент-замену в бэктиках. Тест валит сборку, если такого имени нет в registry+- MDX-страница доков не содержит `import` и `export`. Коллекция `docs` компилируется в рантайме (`dynamic: true` в `source.config.ts`): страница собирается, когда её рендерят — по запросу в dev и во время пререндера в `next build`. Иначе первый запрос доков в dev компилирует все ~900 страниц. Компонент, нужный отдельной странице, регистрируется в `components/docs/mdx-page-components.ts`, общий для всех страниц — в `mdx-components.tsx`. Blog и changelog собираются бандлером, им импорты разрешены- `bun test lib/docs-meta.test.ts` — блокирующий шаг CI, отдельный от основного прогона тестов (тот пока `continue-on-error`)- Агентские артефакты генерируются из этого frontmatter: `/llms-components.txt` (роутер по всем компонентам) и `/docs/**.md` (страница как чистый markdown, см. `lib/mdx-to-markdown.ts`)diff --git a/app/api/search/route.ts b/app/api/search/route.tsindex c564802e..49c2151b 100644--- a/app/api/search/route.ts+++ b/app/api/search/route.ts@@ -1,4 +1,7 @@import { createFromSource } from "fumadocs-core/search/server";+import { docsSearchIndex } from "@/lib/docs-search-index";import { source } from "@/source";-export const { GET } = createFromSource(source);+export const { GET } = createFromSource(source, {+ buildIndex: docsSearchIndex,+});diff --git a/app/docs/[[...slug]]/page.tsx b/app/docs/[[...slug]]/page.tsxindex 6bb59200..ed00a618 100644--- a/app/docs/[[...slug]]/page.tsx+++ b/app/docs/[[...slug]]/page.tsx@@ -1,4 +1,5 @@import { notFound } from "next/navigation";+import { docsPageComponents } from "@/components/docs/mdx-page-components";import { DocsRail, RailCards } from "@/components/docs/shell/docs-rail";import { KeyboardNav } from "@/components/docs/shell/keyboard-nav";import { MobilePageBar } from "@/components/docs/shell/mobile-page-bar";@@ -56,7 +57,7 @@ export default async function Page(props: {next={next}/><div className="typeset typeset-docs mt-6 flex-1 lg:mt-8 [&_:is(h2,h3,h4)[id]]:scroll-mt-20 xl:[&_:is(h2,h3,h4)[id]]:scroll-mt-6">- <MDX components={getMDXComponents()} />+ <MDX components={getMDXComponents(docsPageComponents)} /></div><PageFooterprevious={previous}diff --git a/bun.lock b/bun.lockindex 633e4166..8473720f 100644--- a/bun.lock+++ b/bun.lock@@ -9,6 +9,7 @@"@fontsource/inter": "^5.3.0","@fontsource/manrope": "^5.2.8","@fontsource/roboto-mono": "^5.3.0",+ "@fumadocs/mdx-remote": "^1.4.6","@hugeicons/core-free-icons": "^4.3.0","@hugeicons/react": "^1.1.10","@modelcontextprotocol/server": "^2.3.1",@@ -49,6 +50,7 @@"react-dom": "19.2.4","react-resizable-panels": "^4.9.0","rehype-pretty-code": "^0.14.4",+ "remark-mdx": "^3.1.1","remotion": "4.0.542","server-only": "^0.0.1","shiki": "^4.0.2",@@ -241,6 +243,8 @@"@formatjs/intl-localematcher": ["@formatjs/[email protected]", "", { "dependencies": { "@formatjs/fast-memoize": "3.1.1" } }, "sha512-q05KMYGJLyqFNFtIb8NhWLF5X3aK/k0wYt7dnRFuy6aLQL+vUwQ1cg5cO4qawEiINybeCPXAWlprY2mSBjSXAQ=="],+ "@fumadocs/mdx-remote": ["@fumadocs/[email protected]", "", { "dependencies": { "@mdx-js/mdx": "^3.1.1", "unified": "^11.0.5", "vfile": "^6.0.3", "yaml": "^2.9.1" }, "peerDependencies": { "@types/mdx": "*", "@types/react": "*", "fumadocs-core": "^15.0.0 || ^16.0.0", "react": "18.x.x || 19.x.x" }, "optionalPeers": ["@types/mdx", "@types/react"] }, "sha512-5NlqKyQrAthToKT48jKT30m87ak/5k+ERd0PzWjn51utIlBUYoXDy9vhZIeyKDKojniO9qK7RDCVemzonAYJTQ=="],+"@fumadocs/tailwind": ["@fumadocs/[email protected]", "", { "dependencies": { "postcss-selector-parser": "^7.1.1" }, "peerDependencies": { "tailwindcss": "^4.0.0" }, "optionalPeers": ["tailwindcss"] }, "sha512-/FWcggMz9BhoX+13xBoZLX+XX9mYvJ50dkTqy3IfocJqua65ExcsKfxwKH8hgTO3vA5KnWv4+4jU7LaW2AjAmQ=="],"@hono/node-server": ["@hono/[email protected]", "", { "peerDependencies": { "hono": "^4" } }, "sha512-TsQLe4i2gvoTtrHje625ngThGBySOgSK3Xo2XRYOdqGN1teR8+I7vchQC46uLJi8OF62YTYA3AhSpumtkhsaKQ=="],@@ -1729,6 +1733,8 @@"yallist": ["[email protected]", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="],+ "yaml": ["[email protected]", "", { "bin": { "yaml": "bin.mjs" } }, "sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw=="],+"yocto-queue": ["[email protected]", "", {}, "sha512-4LCcse/U2MHZ63HAJVE+v71o7yOdIe4cZ70Wpf8D/IyjDKYQLV5GD46B+hSTjJsvV5PztjvHoU580EftxjDZFQ=="],"yocto-spinner": ["[email protected]", "", { "dependencies": { "yoctocolors": "^2.1.1" } }, "sha512-/BY0AUXnS7IKO354uLLA2eRcWiqDifEbd6unXCsOxkFDAkhgUL3PH9X2bFoaU0YchnDXsF+iKleeTLJGckbXfA=="],diff --git a/components/docs/index/data.ts b/components/docs/index/data.tsindex aa8136ed..41c2d65e 100644--- a/components/docs/index/data.ts+++ b/components/docs/index/data.ts@@ -24,11 +24,14 @@ export type DocEntry = {type DocsSource = typeof docsSourceType;export type DocPage = ReturnType<DocsSource["getPages"]>[number];-// `@/source` must never be imported statically from here: the index MDX pages-// render these helpers, and `@/source` imports the MDX pages, so a static-// import evaluates `source` while `.source/server` is still initialising-// (500 on every route that loads the docs collection first, e.g. the RSS-// feed). Components load it once per render with `await loadDocsSource()`.+// `@/source` is loaded on demand here, not imported statically. While the+// docs collection was bundled, `@/source` imported the MDX pages, the index+// pages among them render these helpers, and a static import evaluated+// `source` while `.source/server` was still initialising (500 on every route+// that loaded the docs collection first, e.g. the RSS feed). The collection+// compiles at runtime now (`dynamic` in source.config.ts) and no longer+// imports its pages, so that cycle is gone; the loading stayed as it was.+// Components load it once per render with `await loadDocsSource()`.let loaded: DocsSource | undefined;let pageMap: Map<string, DocPage> | undefined;diff --git a/components/docs/mdx-page-components.ts b/components/docs/mdx-page-components.tsnew file mode 100644index 00000000..9f63d86a--- /dev/null+++ b/components/docs/mdx-page-components.ts@@ -0,0 +1,216 @@+// Components that single docs pages use: the guides, the category indexes,+// the introduction. The docs collection compiles MDX at runtime (`dynamic` in+// source.config.ts), where a page can't `import`, so what a page needs is+// registered here and passed to its MDX by app/docs/[[...slug]]/page.tsx.+// lib/docs-meta.test.ts fails on a docs page that imports or exports.+import type { MDXComponents } from "mdx/types";+import {+ GuideMoreLink,+ GuideNotes,+} from "@/components/docs/guides/director-notes";+import { GuideCount } from "@/components/docs/guides/guide-ui";+import { GuideNote } from "@/components/docs/guides/note";+import {+ GuideBrandBrief,+ GuideBrandLine,+} from "@/components/docs/guides/practice/brand-brief";+import { GuideBrandFrames } from "@/components/docs/guides/practice/brand-frames";+import { BuiltRules } from "@/components/docs/guides/practice/built-rules";+import { BuiltSkeleton } from "@/components/docs/guides/practice/built-skeleton";+import { BuiltVocabulary } from "@/components/docs/guides/practice/built-vocabulary";+import { ClapperIcon } from "@/components/docs/guides/practice/clapper-icon";+import { GuideConsistency } from "@/components/docs/guides/practice/consistency-strip";+import { GuideCtaCard } from "@/components/docs/guides/practice/cta-card";+import { GuideDefinitions } from "@/components/docs/guides/practice/definition-table";+import { DirectingFinish } from "@/components/docs/guides/practice/directing-finish";+import { DirectingLoop } from "@/components/docs/guides/practice/directing-loop";+import { DirectingOptions } from "@/components/docs/guides/practice/directing-options";+import { DirectingPhrases } from "@/components/docs/guides/practice/directing-phrases";+import { DirectingRedirect } from "@/components/docs/guides/practice/directing-redirect";+import { GuideExportPipeline } from "@/components/docs/guides/practice/export-pipeline";+import { GuideFormatFrames } from "@/components/docs/guides/practice/format-frames";+import { GuideMusicTimeline } from "@/components/docs/guides/practice/music-timeline";+import { GuideNoteCard } from "@/components/docs/guides/practice/note-card";+import {+ GuidePhrases,+ GuidePullLine,+ GuideQuote,+} from "@/components/docs/guides/practice/phrase-list";+import { GuideTrackSources } from "@/components/docs/guides/practice/track-sources";+import { WordsTwoSecondTest } from "@/components/docs/guides/practice/two-second-test";+import { WordsFormulas } from "@/components/docs/guides/practice/words-formulas";+import { WordsRules } from "@/components/docs/guides/practice/words-rules";+import { GuidePrompt } from "@/components/docs/guides/prompt-block";+import {+ GuideCallout,+ GuideRenderCard,+} from "@/components/docs/guides/render-card";+import { GuideAgentPicker } from "@/components/docs/guides/setup/agent-picker";+import {+ GuideChecklist,+ GuideStep,+} from "@/components/docs/guides/setup/checklist";+import {+ GuidePluginAside,+ GuideReadyRow,+ GuideStudioPreview,+} from "@/components/docs/guides/setup/studio-preview";+import {+ GuideBeatList,+ GuideStoryboard,+} from "@/components/docs/guides/storyboard";+import { GuideStoryboardPreview } from "@/components/docs/guides/storyboard-preview";+import { GuideFacts } from "@/components/docs/guides/video-facts";+import { GuideWords } from "@/components/docs/guides/words-form";+import { CategoryIndex } from "@/components/docs/index/category/category-index";+import { ComponentGroup } from "@/components/docs/index/category/component-group";+import { GuidePractices } from "@/components/docs/index/guides/guide-practices";+import { GuideVideos } from "@/components/docs/index/guides/guide-videos";+import { SetupCard } from "@/components/docs/index/guides/setup-card";+import { CategoryList } from "@/components/docs/index/home/category-list";+import { GuidesFeature } from "@/components/docs/index/home/guides-feature";+import { LibraryTiles } from "@/components/docs/index/home/library-tiles";+import { StartHere } from "@/components/docs/index/home/start-here";+import { IconsSection } from "@/components/docs/index/icons/icons-section";+import { CompareTable } from "@/components/docs/index/introduction/compare-table";+import { Faq } from "@/components/docs/index/introduction/faq";+import { NextLinks } from "@/components/docs/index/introduction/next-links";+import { NotCards } from "@/components/docs/index/introduction/not-cards";+import {+ Aside,+ FirstComponent,+ Pillar,+ Pillars,+} from "@/components/docs/index/introduction/overview";+import {+ InstallationLink,+ QuickStart,+ Step,+} from "@/components/docs/index/introduction/quick-start";+import {+ AgentSkillPanel,+ ApiChips,+ PartTiles,+} from "@/components/docs/index/introduction/remotion";+import {+ FileFlow,+ IconNote,+ RuntimeDiff,+} from "@/components/docs/index/introduction/runtime";+import { Tier, Tiers } from "@/components/docs/index/introduction/tiers";+import { CaptionHero } from "@/components/docs/index/libraries/caption-hero";+import { FiltersHero } from "@/components/docs/index/libraries/filter-hero-section";+import { HowItWorks } from "@/components/docs/index/libraries/how-it-works";+import { LibraryGallery } from "@/components/docs/index/libraries/library-gallery";+import { RuntimeCommand } from "@/components/docs/index/libraries/runtime-command";+import { ShaderHero } from "@/components/docs/index/libraries/shader-hero";+import { TranscriptSources } from "@/components/docs/index/libraries/transcript-sources";+import {+ AtomCard,+ AtomCards,+ AtomsSection,+} from "@/components/docs/index/primitives/atom-cards";+import { InstallWrites } from "@/components/docs/index/primitives/install-writes";+import { RuntimeRules } from "@/components/docs/index/primitives/runtime-rules";+import { TimelineDemo } from "@/components/docs/index/primitives/timeline-demo";+import { UiBlocks } from "@/components/docs/index/primitives/ui-blocks";+import { UiComponents } from "@/components/docs/index/primitives/ui-components";+import { TemplateCard } from "@/components/docs/index/templates/template-card";+import {+ TemplateStep,+ TemplateSteps,+} from "@/components/docs/index/templates/template-steps";++export const docsPageComponents = {+ AgentSkillPanel,+ ApiChips,+ Aside,+ AtomCard,+ AtomCards,+ AtomsSection,+ BuiltRules,+ BuiltSkeleton,+ BuiltVocabulary,+ CaptionHero,+ CategoryIndex,+ CategoryList,+ ClapperIcon,+ CompareTable,+ ComponentGroup,+ DirectingFinish,+ DirectingLoop,+ DirectingOptions,+ DirectingPhrases,+ DirectingRedirect,+ Faq,+ FileFlow,+ FiltersHero,+ FirstComponent,+ GuideAgentPicker,+ GuideBeatList,+ GuideBrandBrief,+ GuideBrandFrames,+ GuideBrandLine,+ GuideCallout,+ GuideChecklist,+ GuideConsistency,+ GuideCount,+ GuideCtaCard,+ GuideDefinitions,+ GuideExportPipeline,+ GuideFacts,+ GuideFormatFrames,+ GuideMoreLink,+ GuideMusicTimeline,+ GuideNote,+ GuideNoteCard,+ GuideNotes,+ GuidePhrases,+ GuidePluginAside,+ GuidePractices,+ GuidePrompt,+ GuidePullLine,+ GuideQuote,+ GuideReadyRow,+ GuideRenderCard,+ GuidesFeature,+ GuideStep,+ GuideStoryboard,+ GuideStoryboardPreview,+ GuideStudioPreview,+ GuideTrackSources,+ GuideVideos,+ GuideWords,+ HowItWorks,+ IconNote,+ IconsSection,+ InstallationLink,+ InstallWrites,+ LibraryGallery,+ LibraryTiles,+ NextLinks,+ NotCards,+ PartTiles,+ Pillar,+ Pillars,+ QuickStart,+ RuntimeCommand,+ RuntimeDiff,+ RuntimeRules,+ SetupCard,+ ShaderHero,+ StartHere,+ Step,+ TemplateCard,+ TemplateStep,+ TemplateSteps,+ Tier,+ Tiers,+ TimelineDemo,+ TranscriptSources,+ UiBlocks,+ UiComponents,+ WordsFormulas,+ WordsRules,+ WordsTwoSecondTest,+} satisfies MDXComponents;diff --git a/content/docs/ai/index.mdx b/content/docs/ai/index.mdxindex 8a8a40f1..d493b8a7 100644--- a/content/docs/ai/index.mdx+++ b/content/docs/ai/index.mdx@@ -3,9 +3,6 @@ title: AIdescription: Animated AI tool interfaces — chat composers and CLI welcome screens that type a prompt, and an agent run that streams the answer----import { CategoryIndex } from "@/components/docs/index/category/category-index";-import { ComponentGroup } from "@/components/docs/index/category/component-group";-Recreations of the interfaces people open every day to talk to AI. The chat composers and coding-agent CLIs type a prompt on the timeline and share the same `useTypewriter` hook and `caret` primitive. Agent Run is brand-neutral and shows what happens after Enter — tool calls and a streamed answer.<CategoryIndex section="/docs/ai">diff --git a/content/docs/camera/index.mdx b/content/docs/camera/index.mdxindex b6c284d0..1e44eb82 100644--- a/content/docs/camera/index.mdx+++ b/content/docs/camera/index.mdx@@ -3,9 +3,6 @@ title: Camera & Physicsdescription: Full-frame shots built on a simulated camera or a small physics engine, from parallax trucks and a dolly zoom to falling bodies and a cloth yank----import { CategoryIndex } from "@/components/docs/index/category/category-index";-import { ComponentGroup } from "@/components/docs/index/category/component-group";-Each piece here owns the whole frame. The camera shots project a small 3D scene through a pinhole camera, and the physics pieces run a deterministic simulation once and play it back, so seeking and rendering always land on the same frame. Most ship with a built-in subject and accept your own content as children or layers.<CategoryIndex section="/docs/camera">diff --git a/content/docs/captions/getting-started/introduction.mdx b/content/docs/captions/getting-started/introduction.mdxindex 9b4dfa8c..d8a7d7b0 100644--- a/content/docs/captions/getting-started/introduction.mdx+++ b/content/docs/captions/getting-started/introduction.mdx@@ -3,12 +3,6 @@ title: Introductiondescription: Subtitles rendered from a timed transcript, word by word, in sync with a real voiceover----import { CaptionHero } from "@/components/docs/index/libraries/caption-hero";-import { HowItWorks } from "@/components/docs/index/libraries/how-it-works";-import { LibraryGallery } from "@/components/docs/index/libraries/library-gallery";-import { RuntimeCommand } from "@/components/docs/index/libraries/runtime-command";-import { TranscriptSources } from "@/components/docs/index/libraries/transcript-sources";-<CaptionHero name="caption-karaoke" photo="/reel/reel-3.jpg" /><HowItWorksdiff --git a/content/docs/components.mdx b/content/docs/components.mdxindex b0e66bb5..d3a3a9b9 100644--- a/content/docs/components.mdx+++ b/content/docs/components.mdx@@ -3,11 +3,6 @@ title: Documentationdescription: Every component in Remocn, grouped by category. Browse by category or jump straight to the one you need.----import { CategoryList } from "@/components/docs/index/home/category-list";-import { GuidesFeature } from "@/components/docs/index/home/guides-feature";-import { LibraryTiles } from "@/components/docs/index/home/library-tiles";-import { StartHere } from "@/components/docs/index/home/start-here";-<StartHere>## Start herediff --git a/content/docs/compositions/index.mdx b/content/docs/compositions/index.mdxindex e0547baa..936a9c2e 100644--- a/content/docs/compositions/index.mdx+++ b/content/docs/compositions/index.mdx@@ -3,9 +3,6 @@ title: Compositionsdescription: Full scenes built by composing primitives and UI blocks----import { CategoryIndex } from "@/components/docs/index/category/category-index";-import { ComponentGroup } from "@/components/docs/index/category/component-group";-Higher-level templates that combine multiple primitives, UI blocks, and transitions into finished shots: heroes, product showcases, and journeys.<CategoryIndex section="/docs/compositions">diff --git a/content/docs/effects/index.mdx b/content/docs/effects/index.mdxindex d3edd3bc..286bd4d2 100644--- a/content/docs/effects/index.mdx+++ b/content/docs/effects/index.mdx@@ -3,8 +3,6 @@ title: Effectsdescription: Reusable Remotion effect overlays for celebratory and atmospheric moments----import { CategoryIndex } from "@/components/docs/index/category/category-index";-Drop-in effect overlays you compose on top of any scene — fire them on a frame and let them play out.<CategoryIndex section="/docs/effects" />diff --git a/content/docs/filters/getting-started/introduction.mdx b/content/docs/filters/getting-started/introduction.mdxindex af2056c9..699b7663 100644--- a/content/docs/filters/getting-started/introduction.mdx+++ b/content/docs/filters/getting-started/introduction.mdx@@ -3,10 +3,6 @@ title: Introductiondescription: Pixel-level treatments you hold over a whole scene, built on the experimental html-in-canvas browser API----import { FiltersHero } from "@/components/docs/index/libraries/filter-hero-section";-import { HowItWorks } from "@/components/docs/index/libraries/how-it-works";-import { LibraryGallery } from "@/components/docs/index/libraries/library-gallery";-<FiltersHero filterLabel="<VhsFilter>" tags={["Sustained, no progress"]} /><HowItWorksdiff --git a/content/docs/getting-started/introduction.mdx b/content/docs/getting-started/introduction.mdxindex d7c5e6e4..d355aa6d 100644--- a/content/docs/getting-started/introduction.mdx+++ b/content/docs/getting-started/introduction.mdx@@ -3,16 +3,6 @@ title: Introductiondescription: "Remocn is shadcn/ui for video: a shadcn registry of 932 MIT-licensed Remotion components, plus an agent skill. Add them with the shadcn CLI; the code lives in your repo."----import { CompareTable } from "@/components/docs/index/introduction/compare-table";-import { Faq } from "@/components/docs/index/introduction/faq";-import { NextLinks } from "@/components/docs/index/introduction/next-links";-import { NotCards } from "@/components/docs/index/introduction/not-cards";-import { Aside, FirstComponent, Pillar, Pillars } from "@/components/docs/index/introduction/overview";-import { InstallationLink, QuickStart, Step } from "@/components/docs/index/introduction/quick-start";-import { AgentSkillPanel, ApiChips, PartTiles } from "@/components/docs/index/introduction/remotion";-import { FileFlow, IconNote, RuntimeDiff } from "@/components/docs/index/introduction/runtime";-import { Tier, Tiers } from "@/components/docs/index/introduction/tiers";-<Pillars><Pillar icon="components" title="Copy-paste components">shadcn/ui-style UI primitives, text animations, transitions, backgrounds and icons, added to a [Remotion](https://www.remotion.dev) project with the shadcn CLI.</Pillar><Pillar icon="sparkle" title="Plus an agent skill">Teaches AI coding agents how to compose a video from those components.</Pillar>diff --git a/content/docs/getting-started/mcp-server.mdx b/content/docs/getting-started/mcp-server.mdxindex 1cd304f4..e8786679 100644--- a/content/docs/getting-started/mcp-server.mdx+++ b/content/docs/getting-started/mcp-server.mdx@@ -4,8 +4,6 @@ navTitle: MCP Serverdescription: "A free, hosted Remotion MCP server for making videos, at https://remocn.dev/mcp. No API key, no account, MIT licensed, read-only. It searches Remocn's Remotion components, returns their docs, plans a video beat by beat and previews components. It does not render video."----import { Faq } from "@/components/docs/index/introduction/faq";-_Last updated: November 11, 2026_The Remocn MCP server is a free, hosted Remotion MCP server for making videos. Adddiff --git a/content/docs/graphic-looks/index.mdx b/content/docs/graphic-looks/index.mdxindex f2a66b99..73e7bb76 100644--- a/content/docs/graphic-looks/index.mdx+++ b/content/docs/graphic-looks/index.mdx@@ -3,8 +3,6 @@ title: Graphic Looksdescription: Full-frame scenes that borrow a print, drawing or screen technique, from risograph plates and blueprints to heat cameras and toy bricks----import { CategoryIndex } from "@/components/docs/index/category/category-index";-Each look is a complete, full-frame scene with its own ground. It plays a short entrance, then holds the finished image, or keeps it alive with a boil, a beat or a scrolling floor. Most take your own subject as children and fall back to a built-in demo subject without them.<CategoryIndex section="/docs/graphic-looks" />diff --git a/content/docs/guides/after-effects-alternatives-for-developers.mdx b/content/docs/guides/after-effects-alternatives-for-developers.mdxindex 701abeeb..94270201 100644--- a/content/docs/guides/after-effects-alternatives-for-developers.mdx+++ b/content/docs/guides/after-effects-alternatives-for-developers.mdx@@ -4,8 +4,6 @@ navTitle: After Effects alternativesdescription: "Programmatic video alternatives to After Effects for developers, compared: Remotion, Remocn, Motion Canvas, Revideo, HyperFrames, Manim, FFmpeg, Lottie and hosted video APIs, with licences, prices, GitHub stars, latest releases and an After Effects to code mapping."----import { Faq } from "@/components/docs/index/introduction/faq";-_Last updated: November 11, 2026. Remocn wrote this page, and Remocn is one of the tools compared. Facts about other tools come from their own sites and repositories; see [Sources](#sources)._The main programmatic video alternatives to After Effects for developers arediff --git a/content/docs/guides/changelog-video.mdx b/content/docs/guides/changelog-video.mdxindex cf6a43c7..bb61c6f0 100644--- a/content/docs/guides/changelog-video.mdx+++ b/content/docs/guides/changelog-video.mdx@@ -3,16 +3,6 @@ title: Changelog videodescription: A ~25-second release update for the weeks that ship several small things — same open, same pace, every release----import { GuideNotes, GuideMoreLink } from "@/components/docs/guides/director-notes";-import { GuideCount } from "@/components/docs/guides/guide-ui";-import { GuideNote } from "@/components/docs/guides/note";-import { GuidePrompt } from "@/components/docs/guides/prompt-block";-import { GuideRenderCard } from "@/components/docs/guides/render-card";-import { GuideBeatList, GuideStoryboard } from "@/components/docs/guides/storyboard";-import { GuideStoryboardPreview } from "@/components/docs/guides/storyboard-preview";-import { GuideFacts } from "@/components/docs/guides/video-facts";-import { GuideWords } from "@/components/docs/guides/words-form";-<GuideStoryboardPreviewbeats={[{ label: "The stamp", seconds: 4, frame: { name: "<PRODUCT NAME>", sub: "<VERSION OR DATE>" } },diff --git a/content/docs/guides/directing-your-agent.mdx b/content/docs/guides/directing-your-agent.mdxindex 5e28ef7e..68c26262 100644--- a/content/docs/guides/directing-your-agent.mdx+++ b/content/docs/guides/directing-your-agent.mdx@@ -3,14 +3,6 @@ title: Directing your agentdescription: The first cut is a draft — how to get from there to the video you meant----import { GuideCount } from "@/components/docs/guides/guide-ui";-import { DirectingFinish } from "@/components/docs/guides/practice/directing-finish";-import { DirectingLoop } from "@/components/docs/guides/practice/directing-loop";-import { DirectingOptions } from "@/components/docs/guides/practice/directing-options";-import { DirectingPhrases } from "@/components/docs/guides/practice/directing-phrases";-import { DirectingRedirect } from "@/components/docs/guides/practice/directing-redirect";-import { GuidePrompt } from "@/components/docs/guides/prompt-block";-Your agent's first cut will be roughly right and specifically wrong. That's not failure — that's where directing starts. You watch, you say what's off in plain sentences, you watch again. Two or three rounds is normal.## The loopdiff --git a/content/docs/guides/exporting-your-video.mdx b/content/docs/guides/exporting-your-video.mdxindex 99302b12..964e033f 100644--- a/content/docs/guides/exporting-your-video.mdx+++ b/content/docs/guides/exporting-your-video.mdx@@ -3,10 +3,6 @@ title: Exporting your videodescription: The preview in your browser is not a file yet — one prompt turns it into an mp4 you can post----import { GuideCtaCard } from "@/components/docs/guides/practice/cta-card";-import { GuideExportPipeline } from "@/components/docs/guides/practice/export-pipeline";-import { GuidePrompt } from "@/components/docs/guides/prompt-block";-The preview studio plays your video, but it isn't a file. Nothing to upload, nothing to send. Rendering fixes that: it turns the preview into a real mp4, and it's one prompt.## The one movediff --git a/content/docs/guides/feature-announcement.mdx b/content/docs/guides/feature-announcement.mdxindex b2a32353..2115409f 100644--- a/content/docs/guides/feature-announcement.mdx+++ b/content/docs/guides/feature-announcement.mdx@@ -4,16 +4,6 @@ navTitle: Feature announcementdescription: "How to make a feature announcement video without a video editor: Claude Code or Codex builds a ~40-second release video from your release notes and Remocn's Remotion components, with no timeline, rendered to MP4 on your machine. Prompts, storyboard, timings and a comparison with Loom, Screen Studio, Descript, HeyGen and Canva."----import { Faq } from "@/components/docs/index/introduction/faq";-import { GuideNotes, GuideMoreLink } from "@/components/docs/guides/director-notes";-import { GuideCount } from "@/components/docs/guides/guide-ui";-import { GuideNote } from "@/components/docs/guides/note";-import { GuidePrompt } from "@/components/docs/guides/prompt-block";-import { GuideRenderCard } from "@/components/docs/guides/render-card";-import { GuideBeatList, GuideStoryboard } from "@/components/docs/guides/storyboard";-import { GuideFacts } from "@/components/docs/guides/video-facts";-import { GuideWords } from "@/components/docs/guides/words-form";-To make a feature announcement video without a video editor, open Claude Code or Codex in your project, install Remocn, and paste one prompt with ten short lines about your feature (or let the agent take them from your release notes). The agent writes the video as Remotion code from Remocn's ready-made components, you review it in a browser preview and ask for changes in plain words, and `npx remotion render` gives you a ~40-second MP4. There is no timeline to drag clips around in.Remocn is a free, MIT-licensed, shadcn-style registry of more than 430 Remotion components, with an [agent skill](/docs/getting-started/agent-skill), a [Claude Code and Codex plugin](/docs/getting-started/plugin) and an [MCP server](/docs/getting-started/mcp-server). It is an independent project, not made by Remotion or shadcn.diff --git a/content/docs/guides/how-a-video-is-built.mdx b/content/docs/guides/how-a-video-is-built.mdxindex b4c2df90..d3ac3a09 100644--- a/content/docs/guides/how-a-video-is-built.mdx+++ b/content/docs/guides/how-a-video-is-built.mdx@@ -3,14 +3,6 @@ title: How a video is builtdescription: Think in beats — the one mental model behind every video you'll make----import { GuideCount } from "@/components/docs/guides/guide-ui";-import { BuiltRules } from "@/components/docs/guides/practice/built-rules";-import { BuiltSkeleton } from "@/components/docs/guides/practice/built-skeleton";-import { BuiltVocabulary } from "@/components/docs/guides/practice/built-vocabulary";-import { ClapperIcon } from "@/components/docs/guides/practice/clapper-icon";-import { GuideCtaCard } from "@/components/docs/guides/practice/cta-card";-import { GuidePrompt } from "@/components/docs/guides/prompt-block";-Every video in these guides — and every video you'll invent yourself — is built the same way: as a list of beats.## Beatsdiff --git a/content/docs/guides/index.mdx b/content/docs/guides/index.mdxindex 055aa015..9ae03b29 100644--- a/content/docs/guides/index.mdx+++ b/content/docs/guides/index.mdx@@ -3,10 +3,6 @@ title: Guidesdescription: Finished videos you can make yours — pick one, fill in your words, paste a prompt----import { GuidePractices } from "@/components/docs/index/guides/guide-practices";-import { GuideVideos } from "@/components/docs/index/guides/guide-videos";-import { SetupCard } from "@/components/docs/index/guides/setup-card";-Each guide starts from a finished video and ends with your version of it. You don't write code and you don't learn a video editor. Your AI agent builds the video — you direct it: pick a guide, fill in your product's words, paste the prompt.<SetupCard title="First time here?">Do the one-time setup — about ten minutes, all copy-paste.</SetupCard>diff --git a/content/docs/guides/launch-video.mdx b/content/docs/guides/launch-video.mdxindex 38782759..d471c2f3 100644--- a/content/docs/guides/launch-video.mdx+++ b/content/docs/guides/launch-video.mdx@@ -4,15 +4,6 @@ navTitle: Launch videodescription: "SaaS launch video template for Remotion: a ~35-second, eight-scene 1080p product launch video you make with Claude Code from one prompt, built from MIT-licensed Remocn components"----import { GuideNotes, GuideMoreLink } from "@/components/docs/guides/director-notes";-import { GuideCount } from "@/components/docs/guides/guide-ui";-import { GuideNote } from "@/components/docs/guides/note";-import { GuidePrompt } from "@/components/docs/guides/prompt-block";-import { GuideRenderCard } from "@/components/docs/guides/render-card";-import { GuideBeatList, GuideStoryboard } from "@/components/docs/guides/storyboard";-import { GuideFacts } from "@/components/docs/guides/video-facts";-import { GuideWords } from "@/components/docs/guides/words-form";-To make a product launch video with Claude Code, install the Remocn plugin, run one prompt with your product name, your words and (optionally) your logo and screenshots, preview the result in [Remocn Studio](https://remocn.studio), and export an MP4. This template runs about 35 seconds: eight scenes at 1920×1080, 30 fps. Every scene is built from Remocn components, MIT-licensed source files that live in your repo.<GuideVideodiff --git a/content/docs/guides/music-and-sound.mdx b/content/docs/guides/music-and-sound.mdxindex 1f046ec9..d1acad1f 100644--- a/content/docs/guides/music-and-sound.mdx+++ b/content/docs/guides/music-and-sound.mdx@@ -3,14 +3,6 @@ title: Music and sounddescription: The recipes produce silent videos — a music bed is the cheapest upgrade that makes one feel finished----import { GuideCount } from "@/components/docs/guides/guide-ui";-import { GuideDefinitions } from "@/components/docs/guides/practice/definition-table";-import { GuideMusicTimeline } from "@/components/docs/guides/practice/music-timeline";-import { GuideNoteCard } from "@/components/docs/guides/practice/note-card";-import { GuidePhrases, GuidePullLine } from "@/components/docs/guides/practice/phrase-list";-import { GuideTrackSources } from "@/components/docs/guides/practice/track-sources";-import { GuidePrompt } from "@/components/docs/guides/prompt-block";-Every recipe on this site produces a silent video. That's on purpose — the cut has to work on its own first. But once it does, a music bed is the single cheapest upgrade left: same video, one track underneath, and it suddenly feels finished.<GuideMusicTimeline />diff --git a/content/docs/guides/non-generic-ai-video.mdx b/content/docs/guides/non-generic-ai-video.mdxindex 79653fa1..c27f6aa1 100644--- a/content/docs/guides/non-generic-ai-video.mdx+++ b/content/docs/guides/non-generic-ai-video.mdx@@ -4,9 +4,6 @@ navTitle: Non-generic AI videodescription: "Why launch videos made with Claude Code, Cursor or Codex and Remotion all look alike: glow, gradient text, pop-in panels, invented UI. The tells, the fixes, the setup per agent and paste-ready prompts that keep your video from looking generic."----import { Faq } from "@/components/docs/index/introduction/faq";-import { GuidePrompt } from "@/components/docs/guides/prompt-block";-_Last updated: November 9, 2026_Launch videos made with Claude Code, Cursor or Codex look generic because the agent hand-rollsdiff --git a/content/docs/guides/one-video-three-formats.mdx b/content/docs/guides/one-video-three-formats.mdxindex 92b6758b..a0d3481a 100644--- a/content/docs/guides/one-video-three-formats.mdx+++ b/content/docs/guides/one-video-three-formats.mdx@@ -3,12 +3,6 @@ title: One video, three formatsdescription: Every recipe builds a horizontal video — Reels, Shorts and TikTok want vertical, and you re-cut instead of rebuilding----import { GuideCount } from "@/components/docs/guides/guide-ui";-import { GuideDefinitions } from "@/components/docs/guides/practice/definition-table";-import { GuideFormatFrames } from "@/components/docs/guides/practice/format-frames";-import { GuideQuote } from "@/components/docs/guides/practice/phrase-list";-import { GuidePrompt } from "@/components/docs/guides/prompt-block";-Every recipe on this site builds a horizontal video — 16:9, the shape of YouTube, X and your landing page. But Reels, Shorts and TikTok want vertical (9:16), and some feeds like square (1:1). You don't make three videos. You make one, then re-cut it.<GuideFormatFrames />diff --git a/content/docs/guides/product-demo.mdx b/content/docs/guides/product-demo.mdxindex 239912c8..f43b5e6c 100644--- a/content/docs/guides/product-demo.mdx+++ b/content/docs/guides/product-demo.mdx@@ -4,15 +4,6 @@ navTitle: Product demodescription: "An AI agent that makes product demo videos from your codebase: Claude Code or Codex reads your repo, plans a storyboard and builds a ~50-second Remotion demo of one product flow from MIT-licensed Remocn components, rendered to MP4 on your machine"----import { GuideNotes, GuideMoreLink } from "@/components/docs/guides/director-notes";-import { GuideCount } from "@/components/docs/guides/guide-ui";-import { GuideNote } from "@/components/docs/guides/note";-import { GuidePrompt } from "@/components/docs/guides/prompt-block";-import { GuideRenderCard } from "@/components/docs/guides/render-card";-import { GuideBeatList, GuideStoryboard } from "@/components/docs/guides/storyboard";-import { GuideFacts } from "@/components/docs/guides/video-facts";-import { GuideWords } from "@/components/docs/guides/words-form";-To make a product demo video from your codebase with an AI agent, open Claude Code or Codex in your product's repo, install the Remocn plugin and run `/remocn:video` with the one flow you want to show. The agent reads your `README`, landing copy, `package.json` and recent releases, shows you a storyboard, builds the video from Remocn's Remotion components and renders a ~50-second MP4 on your machine that stays editable as code.Remocn is what the agent builds with: a shadcn-style registry of MIT-licensed Remotion components (app screens, UI primitives, cursors, transitions, text) that it installs with `npx shadcn@latest add @remocn/<name>`, plus an [agent skill](/docs/getting-started/agent-skill), a [Claude Code and Codex plugin](/docs/getting-started/plugin) and an [MCP server](/docs/getting-started/mcp-server). It is free and open source, with no account and no hosted service.diff --git a/content/docs/guides/remotion-mcp-servers.mdx b/content/docs/guides/remotion-mcp-servers.mdxindex 1e83c84d..dd73c3d3 100644--- a/content/docs/guides/remotion-mcp-servers.mdx+++ b/content/docs/guides/remotion-mcp-servers.mdx@@ -4,8 +4,6 @@ navTitle: Remotion MCP serversdescription: "Which Remotion MCP servers are free? A dated comparison of Remocn, snapcn, React Video Editor, chuk-motion, Instavar, remotion-media-mcp and Remotion's retired docs MCP: price and auth, transport, tools and whether each one renders frames."----import { Faq } from "@/components/docs/index/introduction/faq";-_Last updated: November 11, 2026. Remocn wrote this page, and Remocn is one of the servers compared. Facts about the other servers come from their own pages, repositories, npm and PyPI, and from live `tools/list` calls; see [Sources](#sources)._**Short answer:** snapcn has a Remotion MCP server, but it needs a snapcn Pro key (from $179 a year).diff --git a/content/docs/guides/remotion-text-animations.mdx b/content/docs/guides/remotion-text-animations.mdxindex 5b4cd8f2..8f2699e4 100644--- a/content/docs/guides/remotion-text-animations.mdx+++ b/content/docs/guides/remotion-text-animations.mdx@@ -4,8 +4,6 @@ navTitle: Text animationsdescription: "How to animate text in Remotion, and 256 ready-made, MIT-licensed text animation components you install with the shadcn CLI: word reveals, typewriter, highlights, word swaps, counters, glitch and kinetic type."----import { Faq } from "@/components/docs/index/introduction/faq";-_Last updated: November 9, 2026_To make animated text effects in Remotion, every style value of the text (opacity, position,diff --git a/content/docs/guides/setup.mdx b/content/docs/guides/setup.mdxindex 1a8f2efa..de4dbacb 100644--- a/content/docs/guides/setup.mdx+++ b/content/docs/guides/setup.mdx@@ -3,11 +3,6 @@ title: Setupdescription: One-time setup for making videos with an AI agent — about ten minutes----import { GuidePrompt } from "@/components/docs/guides/prompt-block";-import { GuideAgentPicker } from "@/components/docs/guides/setup/agent-picker";-import { GuideChecklist, GuideStep } from "@/components/docs/guides/setup/checklist";-import { GuidePluginAside, GuideReadyRow, GuideStudioPreview } from "@/components/docs/guides/setup/studio-preview";-You need two things: an AI coding agent and an empty folder.<GuideChecklist title="One-time setup" description="About ten minutes, all copy-paste." done={1} total={2}>diff --git a/content/docs/guides/showcase-reel.mdx b/content/docs/guides/showcase-reel.mdxindex 1537e862..7f8b51d4 100644--- a/content/docs/guides/showcase-reel.mdx+++ b/content/docs/guides/showcase-reel.mdx@@ -3,15 +3,6 @@ title: Showcase reeldescription: A fast ~30-second reel where every item in a collection gets its own beat — the one we shipped the typography wave with----import { GuideNotes, GuideMoreLink } from "@/components/docs/guides/director-notes";-import { GuideCount } from "@/components/docs/guides/guide-ui";-import { GuideNote } from "@/components/docs/guides/note";-import { GuidePrompt } from "@/components/docs/guides/prompt-block";-import { GuideRenderCard } from "@/components/docs/guides/render-card";-import { GuideBeatList, GuideStoryboard } from "@/components/docs/guides/storyboard";-import { GuideFacts } from "@/components/docs/guides/video-facts";-import { GuideWords } from "@/components/docs/guides/words-form";-<GuideVideosrc="https://cdn.remocn.dev/videos/typography.mp4"poster="https://cdn.remocn.dev/posters/typography.png"diff --git a/content/docs/guides/teaser.mdx b/content/docs/guides/teaser.mdxindex 23782326..836deb9e 100644--- a/content/docs/guides/teaser.mdx+++ b/content/docs/guides/teaser.mdx@@ -3,16 +3,6 @@ title: Teaserdescription: The ~15-second pre-launch video — something is coming, here is its name, here is the date----import { GuideNotes, GuideMoreLink } from "@/components/docs/guides/director-notes";-import { GuideCount } from "@/components/docs/guides/guide-ui";-import { GuideNote } from "@/components/docs/guides/note";-import { GuidePrompt } from "@/components/docs/guides/prompt-block";-import { GuideCallout, GuideRenderCard } from "@/components/docs/guides/render-card";-import { GuideBeatList, GuideStoryboard } from "@/components/docs/guides/storyboard";-import { GuideStoryboardPreview } from "@/components/docs/guides/storyboard-preview";-import { GuideFacts } from "@/components/docs/guides/video-facts";-import { GuideWords } from "@/components/docs/guides/words-form";-<GuideStoryboardPreviewbeats={[{ label: "The itch", seconds: 3, frame: { line: "Every launch needs a video" } },diff --git a/content/docs/guides/words-on-screen.mdx b/content/docs/guides/words-on-screen.mdxindex f63c106f..a6745029 100644--- a/content/docs/guides/words-on-screen.mdx+++ b/content/docs/guides/words-on-screen.mdx@@ -3,11 +3,6 @@ title: Words on screendescription: Video copy is not website copy — how to write lines people can read in two seconds----import { GuideCount } from "@/components/docs/guides/guide-ui";-import { WordsFormulas } from "@/components/docs/guides/practice/words-formulas";-import { WordsRules } from "@/components/docs/guides/practice/words-rules";-import { WordsTwoSecondTest } from "@/components/docs/guides/practice/two-second-test";-On a landing page the reader controls the clock — they can reread. In a video the line is gone in two seconds. Writing for the screen is its own small craft, and this page is all of it.## The rules<GuideCount n={6} />diff --git a/content/docs/guides/your-brand.mdx b/content/docs/guides/your-brand.mdxindex 9130c7c7..4c450c30 100644--- a/content/docs/guides/your-brand.mdx+++ b/content/docs/guides/your-brand.mdx@@ -3,12 +3,6 @@ title: Your branddescription: Hand your brand to the agent once — every video after that comes out looking like yours----import { GuideBrandBrief, GuideBrandLine } from "@/components/docs/guides/practice/brand-brief";-import { GuideBrandFrames } from "@/components/docs/guides/practice/brand-frames";-import { GuideConsistency } from "@/components/docs/guides/practice/consistency-strip";-import { GuideDefinitions } from "@/components/docs/guides/practice/definition-table";-import { GuidePrompt } from "@/components/docs/guides/prompt-block";-The recipes default to Remocn's look — a warm dark background and one lime accent. Your videos should look like your product instead. Do it once: write a brand brief, have your agent save it in the project, and reference it forever.<GuideBrandFrames />diff --git a/content/docs/icons/gallery.mdx b/content/docs/icons/gallery.mdxindex 79fd2f92..eb81cf6f 100644--- a/content/docs/icons/gallery.mdx+++ b/content/docs/icons/gallery.mdx@@ -3,8 +3,6 @@ title: Gallerydescription: Browse every Remocn icon, hover to play its motion, and copy the install command----import { IconsSection } from "@/components/docs/index/icons/icons-section";-Icon paths are derived from [Lucide](https://lucide.dev), licensed under the [ISC License](https://github.com/lucide-icons/lucide/blob/main/LICENSE), and re-authored from scratch for deterministic Remotion video. Install any icon by name: swap `icon-check` for the one you want from the gallery below.<InstallBlock name="icon-check" />diff --git a/content/docs/layout/index.mdx b/content/docs/layout/index.mdxindex 83da9351..721db956 100644--- a/content/docs/layout/index.mdx+++ b/content/docs/layout/index.mdx@@ -3,8 +3,6 @@ title: Layoutdescription: Scene framing and fill components for Remotion compositions----import { CategoryIndex } from "@/components/docs/index/category/category-index";-Layout primitives that handle full-frame fills, content framing, and padding — the structural layer every Remotion composition needs before adding animation.<CategoryIndex section="/docs/layout" />diff --git a/content/docs/logo-stings/index.mdx b/content/docs/logo-stings/index.mdxindex d68464e2..ea14a05e 100644--- a/content/docs/logo-stings/index.mdx+++ b/content/docs/logo-stings/index.mdx@@ -3,8 +3,6 @@ title: Logo Stingsdescription: Short brand reveals that land your logo or wordmark at the open or close of a video----import { CategoryIndex } from "@/components/docs/index/category/category-index";-A logo sting is the one or two second beat where the brand lands. Each one fills the frame, plays its own lead-in, and leaves your lockup centered and holding, so it works as the first or last `Sequence` of a video. Most take the logo as children; a few draw a mark themselves and only need the wordmark.<CategoryIndex section="/docs/logo-stings" />diff --git a/content/docs/media/index.mdx b/content/docs/media/index.mdxindex 7c74b8b2..341436b8 100644--- a/content/docs/media/index.mdx+++ b/content/docs/media/index.mdx@@ -3,9 +3,6 @@ title: Media & Collagedescription: "Screenshots, photos and video tiles as the hero: tours, grids, montages and comparisons"----import { CategoryIndex } from "@/components/docs/index/category/category-index";-import { ComponentGroup } from "@/components/docs/index/category/component-group";-For beats built from your own screenshots and footage: tours through a screen, grids that assemble, before and after.<CategoryIndex section="/docs/media">diff --git a/content/docs/motion-graphics/index.mdx b/content/docs/motion-graphics/index.mdxindex 08d12893..c4a60a84 100644--- a/content/docs/motion-graphics/index.mdx+++ b/content/docs/motion-graphics/index.mdx@@ -3,9 +3,6 @@ title: Motion Graphicsdescription: Flat geometric motion-graphics pieces for openers, section breaks, and pattern beds----import { CategoryIndex } from "@/components/docs/index/category/category-index";-import { ComponentGroup } from "@/components/docs/index/category/component-group";-Brand-agnostic geometry built the way motion designers build shape layers — drop one over any scene, recolor it, and let it play out.<CategoryIndex section="/docs/motion-graphics">diff --git a/content/docs/numbers/index.mdx b/content/docs/numbers/index.mdxindex 589ec364..66a62064 100644--- a/content/docs/numbers/index.mdx+++ b/content/docs/numbers/index.mdx@@ -3,9 +3,6 @@ title: Numbers & Statsdescription: "Counters, stat reveals, charts, prices and countdowns where a number is the hero"----import { CategoryIndex } from "@/components/docs/index/category/category-index";-import { ComponentGroup } from "@/components/docs/index/category/component-group";-When the point of the beat is a number: a metric that grew, a price, a countdown, a chart that proves it.<CategoryIndex section="/docs/numbers">diff --git a/content/docs/product-scenes/index.mdx b/content/docs/product-scenes/index.mdxindex 195fa47c..71c06788 100644--- a/content/docs/product-scenes/index.mdx+++ b/content/docs/product-scenes/index.mdx@@ -3,9 +3,6 @@ title: Product Scenesdescription: "Mocked product UI that tells a story: web apps, dashboards, mobile, checkout and chat"----import { CategoryIndex } from "@/components/docs/index/category/category-index";-import { ComponentGroup } from "@/components/docs/index/category/component-group";-Fully staged product screens with a beginning, a middle and a payoff. Swap in your copy and data and you have the feature beat of a launch video.<CategoryIndex section="/docs/product-scenes">diff --git a/content/docs/shaders/getting-started/introduction.mdx b/content/docs/shaders/getting-started/introduction.mdxindex fc282430..f2ed71a7 100644--- a/content/docs/shaders/getting-started/introduction.mdx+++ b/content/docs/shaders/getting-started/introduction.mdx@@ -3,10 +3,6 @@ title: Introductiondescription: WebGL shader backdrops wrapped for Remotion and driven per-frame for deterministic renders----import { HowItWorks } from "@/components/docs/index/libraries/how-it-works";-import { LibraryGallery } from "@/components/docs/index/libraries/library-gallery";-import { ShaderHero } from "@/components/docs/index/libraries/shader-hero";-<ShaderHeroname="shader-warp"props={{ colors: ["#0e0418", "#4a0d5e", "#a800b7", "#f0abfc"] }}diff --git a/content/docs/social/index.mdx b/content/docs/social/index.mdxindex e39e7a0a..8eb83dea 100644--- a/content/docs/social/index.mdx+++ b/content/docs/social/index.mdx@@ -3,8 +3,6 @@ title: Socialdescription: Remotion compositions for sharing milestones and social proof----import { CategoryIndex } from "@/components/docs/index/category/category-index";-Ready-to-install compositions that turn GitHub stats, product launches, and community milestones into shareable video moments.<CategoryIndex section="/docs/social" />diff --git a/content/docs/templates/index.mdx b/content/docs/templates/index.mdxindex 3cea6ba4..cc1cbe01 100644--- a/content/docs/templates/index.mdx+++ b/content/docs/templates/index.mdx@@ -3,9 +3,6 @@ title: Templatesdescription: Complete videos you install as-is. Swap the name, the copy and the accent color, then render. Every frame stays editable React and SVG.----import { TemplateCard } from "@/components/docs/index/templates/template-card";-import { TemplateStep, TemplateSteps } from "@/components/docs/index/templates/template-steps";-<TemplateSteps><TemplateStep n={1} title="Install">One command copies every scene, motion helper and bundled asset into your project</TemplateStep><TemplateStep n={2} title="Register">Add one Composition with the exported frames, fps, width and height constants</TemplateStep>diff --git a/content/docs/transitions/index.mdx b/content/docs/transitions/index.mdxindex 9cce9bad..ef11f4bc 100644--- a/content/docs/transitions/index.mdx+++ b/content/docs/transitions/index.mdx@@ -4,10 +4,6 @@ navTitle: Transitionsdescription: "59 ready-made scene transitions for Remotion: 41 presentations for TransitionSeries plus 18 self-contained transition scenes. Free, MIT, installed as source with the shadcn CLI."----import { CategoryIndex } from "@/components/docs/index/category/category-index";-import { ComponentGroup } from "@/components/docs/index/category/component-group";-import { Faq } from "@/components/docs/index/introduction/faq";-_Last updated: November 9, 2026_Yes, there is a library of ready-made transitions for Remotion: Remocn has 59 scene transitions, freediff --git a/content/docs/typography/index.mdx b/content/docs/typography/index.mdxindex 234095f5..fd90e902 100644--- a/content/docs/typography/index.mdx+++ b/content/docs/typography/index.mdx@@ -4,9 +4,6 @@ navTitle: Typographydescription: "256 free, MIT-licensed animated text effects for Remotion: reveals, highlights, word swaps, counters, glitches and kinetic type. Install any one with npx shadcn@latest add @remocn/<name>."----import { CategoryIndex } from "@/components/docs/index/category/category-index";-import { ComponentGroup } from "@/components/docs/index/category/component-group";-_Last updated: November 9, 2026_Remocn has 256 free, MIT-licensed text animation components for Remotion: word and letterdiff --git a/content/docs/ui-blocks/index.mdx b/content/docs/ui-blocks/index.mdxindex 627bacbf..4eda75c4 100644--- a/content/docs/ui-blocks/index.mdx+++ b/content/docs/ui-blocks/index.mdx@@ -3,9 +3,6 @@ title: UI Blocksdescription: Pre-assembled interface elements like code editors, layouts, charts, and workflow visualizations----import { CategoryIndex } from "@/components/docs/index/category/category-index";-import { ComponentGroup } from "@/components/docs/index/category/component-group";-Larger blocks built from primitives, the actual surfaces your viewers will recognize: code windows, terminals, charts, dashboards, and workflow diagrams.<CategoryIndex section="/docs/ui-blocks">diff --git a/content/docs/ui/index.mdx b/content/docs/ui/index.mdxindex 73deb3cf..5a088815 100644--- a/content/docs/ui/index.mdx+++ b/content/docs/ui/index.mdx@@ -3,13 +3,6 @@ title: Introductiondescription: Familiar shadcn components rebuilt for Remotion. You declare what state a component is in and when, and it renders that state as a pure function of the frame.----import { AtomCard, AtomCards, AtomsSection } from "@/components/docs/index/primitives/atom-cards";-import { InstallWrites } from "@/components/docs/index/primitives/install-writes";-import { RuntimeRules } from "@/components/docs/index/primitives/runtime-rules";-import { TimelineDemo } from "@/components/docs/index/primitives/timeline-demo";-import { UiBlocks } from "@/components/docs/index/primitives/ui-blocks";-import { UiComponents } from "@/components/docs/index/primitives/ui-components";-<TimelineDemo />## What makes this different from regular shadcndiff --git a/lib/docs-meta.test.ts b/lib/docs-meta.test.tsindex 6808e1b8..f4835595 100644--- a/lib/docs-meta.test.ts+++ b/lib/docs-meta.test.ts@@ -279,6 +279,27 @@ describe("navigation lists every page", () => {});});+describe("docs pages compile at runtime", () => {+ // `dynamic` in source.config.ts: a page is compiled when it is rendered,+ // and Fumadocs rules out `import` and `export` in pages compiled that way.+ // What a page needs is registered in components/docs/mdx-page-components.ts.+ it("no page imports or exports", () => {+ const offenders: string[] = [];+ for (const { file } of pages) {+ let fenced = false;+ for (const line of readFileSync(file, "utf8").split("\n")) {+ if (/^\s*(```|~~~)/.test(line)) fenced = !fenced;+ else if (!fenced && /^(import|export)\s/.test(line)) {+ offenders.push(file);+ break;+ }+ }+ }++ expect(offenders).toEqual([]);+ });+});+describe("the transitions library page stays complete", () => {// /docs/transitions answers "is there a transitions library for Remotion?"// with a count and a table of every transition. A new transition page hasdiff --git a/lib/docs-search-index.ts b/lib/docs-search-index.tsnew file mode 100644index 00000000..9b76b00c--- /dev/null+++ b/lib/docs-search-index.ts@@ -0,0 +1,85 @@+import {+ type StructuredData,+ structure,+} from "fumadocs-core/mdx-plugins/remark-structure";+import type { AdvancedIndex } from "fumadocs-core/search/server";+import type { InferPageType } from "fumadocs-core/source";+import remarkMdx from "remark-mdx";+import { stripFrontmatter } from "@/lib/mdx-to-markdown";+import type { source } from "@/source";++type DocPage = InferPageType<typeof source>;++type Node = { type: string; value?: string; children?: Node[] };++/**+ * What MDX does to the tree before any remark plugin sees it: a paragraph+ * holding nothing but JSX (`<SetupCard>…</SetupCard>` on one line) becomes+ * that JSX as a block. Mirrors `remarkMarkAndUnravel` of @mdx-js/mdx, which+ * the package doesn't export. Without it such lines would be indexed as+ * paragraphs, which the compiled page never did.+ */+function unravelJsxParagraphs() {+ const walk = (parent: Node) => {+ if (!parent.children) return;+ parent.children = parent.children.flatMap((node) => {+ if (node.type !== "paragraph" || !node.children) return [node];+ const content = node.children.filter(+ (child) => !(child.type === "text" && child.value?.trim() === ""),+ );+ const onlyJsx =+ content.length > 0 &&+ content.every(+ (child) =>+ child.type === "mdxJsxTextElement" ||+ child.type === "mdxTextExpression",+ );+ if (!onlyJsx) return [node];+ for (const child of content) {+ child.type =+ child.type === "mdxJsxTextElement"+ ? "mdxJsxFlowElement"+ : "mdxFlowExpression";+ }+ return content;+ });+ for (const child of parent.children) walk(child);+ };+ return (tree: Node) => walk(tree);+}++// Keyed by page URL and kept across rebuilds of the index: in dev every MDX+// save re-evaluates the source, and only the saved page has new text.+const cache = new Map<string, { raw: string; data: StructuredData }>();++/**+ * Search entry of a docs page, read from its MDX source instead of the+ * compiled page.+ *+ * The docs collection compiles a page when it is first requested (`dynamic`+ * in source.config.ts). Fumadocs' default index reads `structuredData` off+ * the compiled page, so the first search would compile all ~900 pages and+ * keep them in memory. This runs the same remark-structure pass on the+ * parsed MDX alone and gives the same headings and text.+ */+export async function docsSearchIndex(page: DocPage): Promise<AdvancedIndex> {+ const data = page.data as typeof page.data & {+ getText: (type: "raw") => Promise<string>;+ };+ const raw = await data.getText("raw");+ let entry = cache.get(page.url);+ if (entry?.raw !== raw) {+ entry = {+ raw,+ data: structure(stripFrontmatter(raw), [remarkMdx, unravelJsxParagraphs]),+ };+ cache.set(page.url, entry);+ }+ return {+ id: page.url,+ url: page.url,+ title: data.title,+ description: data.description,+ structuredData: entry.data,+ };+}diff --git a/package.json b/package.jsonindex 347f4df7..c26ec093 100644--- a/package.json+++ b/package.json@@ -48,6 +48,7 @@"@fontsource/inter": "^5.3.0","@fontsource/manrope": "^5.2.8","@fontsource/roboto-mono": "^5.3.0",+ "@fumadocs/mdx-remote": "^1.4.6","@hugeicons/core-free-icons": "^4.3.0","@hugeicons/react": "^1.1.10","@modelcontextprotocol/server": "^2.3.1",@@ -88,6 +89,7 @@"react-dom": "19.2.4","react-resizable-panels": "^4.9.0","rehype-pretty-code": "^0.14.4",+ "remark-mdx": "^3.1.1","remotion": "4.0.542","server-only": "^0.0.1","shiki": "^4.0.2",diff --git a/source.config.ts b/source.config.tsindex 04e0c7a0..0bca67bf 100644--- a/source.config.ts+++ b/source.config.ts@@ -1,20 +1,60 @@import { metaSchema, pageSchema } from "fumadocs-core/source/schema";import {+ applyMdxPreset,defineCollections,defineConfig,defineDocs,} from "fumadocs-mdx/config";-import rehypePrettyCode from "rehype-pretty-code";+import rehypePrettyCode, {+ type Options as RehypePrettyCodeOptions,+} from "rehype-pretty-code";import type { ShikiTransformer } from "shiki";import { z } from "zod";import { componentMetaSchema } from "./lib/docs-schema";+const transformers: ShikiTransformer[] = [+ {+ code(node) {+ if (node.tagName === "code") {+ node.properties.__raw__ = this.source;+ if (this.source.split("\n").length > 1) {+ node.properties["data-line-numbers"] = "";+ }+ }+ },+ },+];++// Code fences: rehype-pretty-code in place of Fumadocs' own highlighter.+const prettyCode: [typeof rehypePrettyCode, RehypePrettyCodeOptions] = [+ rehypePrettyCode,+ {+ theme: {+ dark: "vesper",+ light: "github-light-default",+ },+ keepBackground: false,+ transformers,+ },+];+export const docs = defineDocs({dir: "content/docs",docs: {- // ~1000 pages: load each body on demand instead of compiling all of them- // into the docs route on its first request.- async: true,+ // ~900 pages: a page body is compiled when the page is rendered (on+ // request in dev, during prerender in a build) instead of every page+ // being a bundler module. Turbopack compiles all modules of a route up+ // front, lazy imports included, so the bundled modes (`async: true` too)+ // made the first docs request in dev compile the whole collection. The+ // price: a docs page can't `import` or `export`. Its components are+ // registered in components/docs/mdx-page-components.ts.+ dynamic: true,+ // The preset without rehype-toc: the docs read neither its `toc` export+ // nor its `[toc]` heading markers. The export holds each heading as JSX+ // at module level, where a component in a heading+ // (`## The storyboard<GuideCount n={5} />`) has to be an import, and a+ // runtime-compiled page has none.+ mdxOptions: applyMdxPreset({ rehypePlugins: () => [prettyCode] }),schema: pageSchema.safeExtend({...componentMetaSchema.shape,// Shorter label for the sidebar, breadcrumbs and prev/next when the@@ -53,34 +93,11 @@ export const blog = defineCollections({}),});-const transformers: ShikiTransformer[] = [- {- code(node) {- if (node.tagName === "code") {- node.properties.__raw__ = this.source;- if (this.source.split("\n").length > 1) {- node.properties["data-line-numbers"] = "";- }- }- },- },-];-export default defineConfig({mdxOptions: {rehypePlugins: (plugins) => {plugins.shift();- plugins.push([- rehypePrettyCode,- {- theme: {- dark: "vesper",- light: "github-light-default",- },- keepBackground: false,- transformers,- },- ]);+ plugins.push(prettyCode);return plugins;},},diff --git a/source.tsx b/source.tsxindex 1a4d6fe2..7eaa0cc1 100644--- a/source.tsx+++ b/source.tsx@@ -22,7 +22,7 @@ import {} from "@hugeicons/core-free-icons";import { HugeiconsIcon, type IconSvgElement } from "@hugeicons/react";import { loader } from "fumadocs-core/source";-import { docs } from "@/.source/server";+import { docs } from "@/.source/dynamic";/** Sidebar category icons — meta.json `icon` values resolve against this map. */const DOCS_ICONS: Record<string, IconSvgElement> = {