🎥 Make videos programmatically with React
Keep the vibe-code template internal for now
Jonny Burger33209847c71f
diff --git a/packages/create-video/src/templates.ts b/packages/create-video/src/templates.tsindex 36294b0d95..d7c2b90099 100644--- a/packages/create-video/src/templates.ts+++ b/packages/create-video/src/templates.ts@@ -44,7 +44,6 @@ export type Template = {| 'render-server'| 'recorder'| 'prompt-to-motion-graphics'- | 'vibe-code'| 'electron'| 'vercel';defaultBranch: string;@@ -258,30 +257,6 @@ export const FEATURED_TEMPLATES: Template[] = [contributedBy: 'ASchwad',showStackblitz: false,},- {- homePageLabel: 'Vibe Code',- shortName: 'Vibe Code (Next.js)',- org: 'remotion-dev',- repoName: 'template-vibe-code',- description: 'A motion graphics editor that runs in the browser',- longerDescription:- 'Write Remotion code and watch it compile instantly in the browser, then edit the result on the canvas, in the timeline and in the inspector. Built with <code>@remotion/browser-bundler</code>, <code>@remotion/canvas</code>, <code>@remotion/codemods</code> and <code>@remotion/web-renderer</code>.',- promoBanner: {- width: 1920,- height: 1080,- src: '/img/template-vibe-code.png',- },- cliId: 'vibe-code' as const,- type: 'image' as const,- defaultBranch: 'main',- featuredOnHomePage: null,- previewURL: null,- previewLabel: null,- templateInMonorepo: 'template-vibe-code',- allowEnableTailwind: false,- contributedBy: null,- showStackblitz: false,- },{homePageLabel: 'JavaScript',shortName: 'Hello World (JavaScript)',diff --git a/packages/docs/docs/browser-bundler/index.mdx b/packages/docs/docs/browser-bundler/index.mdxindex d9c642d195..9032173857 100644--- a/packages/docs/docs/browser-bundler/index.mdx+++ b/packages/docs/docs/browser-bundler/index.mdx@@ -260,14 +260,6 @@ Coalesce pending source edits before compilation, but apply every successfully cThis package does not export a video file. See [client-side rendering](/docs/client-side-rendering) for video export APIs and their separate requirements.-## Template--The [Vibe Code template](/templates/vibe-code) is a complete motion graphics editor built on this package together with [`@remotion/canvas`](/docs/canvas), [`@remotion/codemods`](/docs/codemods) and [`@remotion/web-renderer`](/docs/web-renderer): Fast Refresh in an isolated preview, a timeline, an inspector that writes edits back to the source, and rendering in the browser.--```bash-npx create-video@latest --template vibe-code-```-## APIsimport {TableOfContents} from './table-of-contents';diff --git a/packages/docs/docs/canvas/index.mdx b/packages/docs/docs/canvas/index.mdxindex 52c933f552..2788865536 100644--- a/packages/docs/docs/canvas/index.mdx+++ b/packages/docs/docs/canvas/index.mdx@@ -124,10 +124,6 @@ The built-in [`getCanvasSequenceNodePathInfo()`](/docs/canvas/get-canvas-sequencAn outline requires a registered DOM element. A `<Sequence layout="none">` has no outline of its own.-## Template--The [Vibe Code template](/templates/vibe-code) uses `<Canvas>` for a browser-based motion graphics editor with a timeline, an inspector and a code editor, and shows how to map layers to source nodes with a custom `resolveSequenceNodePathInfo`.-## APIsimport {TableOfContents} from './table-of-contents';diff --git a/packages/docs/src/components/IconForTemplate.tsx b/packages/docs/src/components/IconForTemplate.tsxindex a38604745a..532ad56b94 100644--- a/packages/docs/src/components/IconForTemplate.tsx+++ b/packages/docs/src/components/IconForTemplate.tsx@@ -19,7 +19,6 @@ import {StillIcon} from './icons/still';import {TikTok} from './icons/tiktok';import {TypeScriptIcon} from './icons/ts';import {VercelIcon} from './icons/vercel';-import {VibeCodeIcon} from './icons/vibe-code';import {Waveform} from './icons/waveform';export const IconForTemplate: React.FC<{@@ -161,10 +160,6 @@ export const IconForTemplate: React.FC<{return <BrainIcon style={{height: scale * 36}} />;}- if (template.cliId === 'vibe-code') {- return <VibeCodeIcon style={{height: scale * 36}} />;- }-if (template.cliId === 'vercel') {return <VercelIcon style={{height: scale * 28}} />;}diff --git a/packages/docs/src/components/icons/vibe-code.tsx b/packages/docs/src/components/icons/vibe-code.tsxdeleted file mode 100644index 8bfd40b63a..0000000000--- a/packages/docs/src/components/icons/vibe-code.tsx+++ /dev/null@@ -1,29 +0,0 @@-import type {SVGProps} from 'react';-import React from 'react';--// Lucide "square-dashed-mouse-pointer"-export const VibeCodeIcon: React.FC<SVGProps<SVGSVGElement>> = (props) => {- return (- <svg- xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- strokeWidth="2"- strokeLinecap="round"- strokeLinejoin="round"- {...props}- >- <path d="M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z" />- <path d="M5 3a2 2 0 0 0-2 2" />- <path d="M19 3a2 2 0 0 1 2 2" />- <path d="M5 21a2 2 0 0 1-2-2" />- <path d="M9 3h1" />- <path d="M9 21h2" />- <path d="M14 3h1" />- <path d="M3 9v1" />- <path d="M21 9v2" />- <path d="M3 14v1" />- </svg>- );-};diff --git a/packages/docs/static/img/template-vibe-code.png b/packages/docs/static/img/template-vibe-code.pngdeleted file mode 100644index 44c5165277..0000000000Binary files a/packages/docs/static/img/template-vibe-code.png and /dev/null differdiff --git a/packages/promo-pages/src/components/homepage/IconForTemplate.tsx b/packages/promo-pages/src/components/homepage/IconForTemplate.tsxindex 95cb114de8..393d373ef6 100644--- a/packages/promo-pages/src/components/homepage/IconForTemplate.tsx+++ b/packages/promo-pages/src/components/homepage/IconForTemplate.tsx@@ -19,7 +19,6 @@ import {StillIcon} from '../icons/still';import {TikTok} from '../icons/tiktok';import {TypeScriptIcon} from '../icons/ts';import {VercelIcon} from '../icons/vercel';-import {VibeCodeIcon} from '../icons/vibe-code';import {Waveform} from '../icons/waveform';export const IconForTemplate: React.FC<{@@ -161,10 +160,6 @@ export const IconForTemplate: React.FC<{return <BrainIcon style={{height: scale * 36}} />;}- if (template.cliId === 'vibe-code') {- return <VibeCodeIcon style={{height: scale * 36}} />;- }-if (template.cliId === 'vercel') {return <VercelIcon style={{height: scale * 28}} />;}diff --git a/packages/promo-pages/src/components/icons/vibe-code.tsx b/packages/promo-pages/src/components/icons/vibe-code.tsxdeleted file mode 100644index 940a1c188f..0000000000--- a/packages/promo-pages/src/components/icons/vibe-code.tsx+++ /dev/null@@ -1,28 +0,0 @@-import type {SVGProps} from 'react';--// Lucide "square-dashed-mouse-pointer"-export const VibeCodeIcon: React.FC<SVGProps<SVGSVGElement>> = (props) => {- return (- <svg- xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- strokeWidth="2"- strokeLinecap="round"- strokeLinejoin="round"- {...props}- >- <path d="M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z" />- <path d="M5 3a2 2 0 0 0-2 2" />- <path d="M19 3a2 2 0 0 1 2 2" />- <path d="M5 21a2 2 0 0 1-2-2" />- <path d="M9 3h1" />- <path d="M9 21h2" />- <path d="M14 3h1" />- <path d="M3 9v1" />- <path d="M21 9v2" />- <path d="M3 14v1" />- </svg>- );-};