🎥 Make videos programmatically with React
dependencies and copy editor
JonnyBurgerc94418c56839
diff --git a/packages/docs/docs/editor-starter/dependencies.mdx b/packages/docs/docs/editor-starter/dependencies.mdxnew file mode 100644index 0000000000..462a4cd44c--- /dev/null+++ b/packages/docs/docs/editor-starter/dependencies.mdx@@ -0,0 +1,51 @@+---+image: /generated/articles-docs-editor-starter-dependencies.png+title: Dependencies of the Editor Starter+sidebar_label: Dependencies+crumb: Editor Starter+---++The Editor Starter is built in [React 19](https://react.dev/) and [Remotion](https://www.remotion.dev/).+The reference implementation is built in [React Router v7](https://reactrouter.com/) with the goal of being easily portable to other frameworks.+[Tailwind CSS v4](https://tailwindcss.com/) is used for styling.++## Captions++The [OpenAI](https://platform.openai.com/docs/guides/speech-to-text) API is used for captioning.+Captioning is optional, but it is enabled by default and an OpenAI API key is required to use it.++## Asset uploads++Assets are uploaded by default to AWS S3.+This means that in order for asset uploads to work, an AWS account is required and AWS S3 needs to be set up.++## Rendering++[Remotion Lambda](https://www.remotion.dev/docs/lambda) is used for rendering.+This means that in order for rendering to work, an AWS account is required and AWS Lambda needs to be set up.++## Google Fonts++Fonts are loaded from [Google Fonts](https://fonts.google.com/).+No API key is required for this.++## NPM packages++- "@aws-sdk/s3-request-presigner": "^3.787.0",+- "@radix-ui/react-context-menu": "^2.2.15",+- "@radix-ui/react-popover": "^1.1.14",+- "@radix-ui/react-select": "^2.2.5",+- "@remotion/captions": "4.0.331",+- "@remotion/cli": "4.0.331",+- "@remotion/gif": "4.0.331",+- "@remotion/google-fonts": "4.0.331",+- "@remotion/lambda": "4.0.331",+- "@remotion/layout-utils": "4.0.331",+- "@remotion/media-parser": "4.0.331",+- "@remotion/openai-whisper": "4.0.331",+- "@remotion/player": "4.0.331",+- "@remotion/shapes": "4.0.331",+- "@tanstack/react-virtual": "^3.13.10",+- "remotion": "4.0.331",+- "openai": "^4.67.3",+- "zod": "^3.24.3"diff --git a/packages/docs/docs/editor-starter/setup.mdx b/packages/docs/docs/editor-starter/setup.mdxindex 025e8c4690..f3f3eaa5fc 100644--- a/packages/docs/docs/editor-starter/setup.mdx+++ b/packages/docs/docs/editor-starter/setup.mdx@@ -10,6 +10,10 @@ After obtaining the Editor Starter, you should [fork](https://github.com/remotioAfter cloning the repository, you can install the dependencies by running:+## Start a new project++If you are starting a new project, you can stay in your repository and install dependencies:+```npm i```@@ -22,6 +26,40 @@ npm run devThe app may be deployed like any other React Router 7 app, for example by connecting the repository to [Vercel](https://vercel.com).+## Copying into an existing project++If you already have a project, you can copy the `src/editor` folder into your existing project.+The following instructions were tested on a new Next.js project with Tailwind and TypeScript enabled, but it should work with any React framework.++<div>+ <div>+ <Step>1</Step> Install the [dependencies](/docs/editor-starter/dependencies).+ </div>+ <div>+ <Step>2</Step> Copy the `src/editor` folder into your existing project.+ </div>+ <div>+ <Step>3</Step> Mount the editor in your app. For example, in Next.js, in `page/app.tsx`:++ ```ts title="page/app.tsx"+ import { Editor } from "./editor/editor";++ export default function Home() {+ return <Editor />;+ }+ ```++ </div>+</div>+## Setting up asset uploadsIf the user drops in any assets, you can configure them to be uploaded to an S3 bucket. See [Asset uploads](/docs/editor-starter/asset-uploads) for more information.++## Setting up rendering++TODO++## Setting up captions++TODOdiff --git a/packages/docs/sidebars.ts b/packages/docs/sidebars.tsindex d2f4ad257a..79abed8f41 100644--- a/packages/docs/sidebars.ts+++ b/packages/docs/sidebars.ts@@ -1350,6 +1350,7 @@ const sidebars: SidebarsConfig = {},items: ['editor-starter/setup',+ 'editor-starter/dependencies','editor-starter/features','editor-starter/fonts','editor-starter/asset-uploads',diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.tsindex c9f3261f47..7426b30c07 100644--- a/packages/docs/src/data/articles.ts+++ b/packages/docs/src/data/articles.ts@@ -1295,6 +1295,15 @@ export const articles = [noAi: false,slug: 'editor-starter/backend-routes',},+ {+ id: 'editor-starter/dependencies',+ title: 'Dependencies of the Editor Starter',+ relativePath: 'docs/editor-starter/dependencies.mdx',+ compId: 'articles-docs-editor-starter-dependencies',+ crumb: 'Editor Starter',+ noAi: false,+ slug: 'editor-starter/dependencies',+ },{id: 'features-not-included',title: 'Features not included in the Editor Starter',diff --git a/packages/docs/static/generated/articles-docs-editor-starter-dependencies.png b/packages/docs/static/generated/articles-docs-editor-starter-dependencies.pngnew file mode 100644index 0000000000..cc61c808c3Binary files /dev/null and b/packages/docs/static/generated/articles-docs-editor-starter-dependencies.png differ