Skip to content

🎥 Make videos programmatically with React

progress docs

JonnyBurgerc92d5e2facff
diff --git a/packages/docs/docs/editor-starter/TableOfContents.tsx b/packages/docs/docs/editor-starter/TableOfContents.tsx
index 2d39d9c03c..e4852f2634 100644
--- a/packages/docs/docs/editor-starter/TableOfContents.tsx
+++ b/packages/docs/docs/editor-starter/TableOfContents.tsx
@@ -6,18 +6,50 @@ export const TableOfContents: React.FC = () => {
return (
<div>
<Grid>
+ <TOCItem link="/docs/editor-starter/before-you-buy">
+ <strong>Before you buy</strong>
+ <div>What to consider before buying</div>
+ </TOCItem>
+ <TOCItem link="/docs/editor-starter/buy">
+ <strong>Buy</strong>
+ <div>How to buy the Editor Starter</div>
+ </TOCItem>
<TOCItem link="/docs/editor-starter/setup">
<strong>Setup</strong>
<div>Installation and configuration guide</div>
</TOCItem>
+ <TOCItem link="/docs/editor-starter/dependencies">
+ <strong>Dependencies</strong>
+ <div>Required dependencies for Editor Starter</div>
+ </TOCItem>
<TOCItem link="/docs/editor-starter/features">
<strong>Features</strong>
<div>Features included in the Editor Starter</div>
</TOCItem>
+ <TOCItem link="/docs/editor-starter/state-management">
+ <strong>State Management</strong>
+ <div>How state is managed in the Editor Starter</div>
+ </TOCItem>
+ <TOCItem link="/docs/editor-starter/tracks-items-assets">
+ <strong>Tracks, Items &amp; Assets</strong>
+ <div>Managing tracks, items, and assets</div>
+ </TOCItem>
+ <TOCItem link="/docs/editor-starter/undo-redo">
+ <strong>Undo and Redo</strong>
+ <div>Undo and Redo functionality in the Editor Starter</div>
+ </TOCItem>
<TOCItem link="/docs/editor-starter/fonts">
<strong>Fonts</strong>
<div>How fonts work and which ones are included</div>
</TOCItem>
+ <TOCItem link="/docs/editor-starter/asset-uploads">
+ <strong>Asset Uploads</strong>
+ <div>Asset upload functionality in the Editor Starter</div>
+ </TOCItem>
+ <TOCItem link="/docs/editor-starter/persistance">
+ <strong>Persistance</strong>
+ <div>How data is persisted in the Editor Starter</div>
+ </TOCItem>
<TOCItem link="/docs/editor-starter/captioning">
<strong>Captioning</strong>
<div>How to setup captions and how they work</div>
@@ -26,13 +58,9 @@ export const TableOfContents: React.FC = () => {
<strong>Rendering</strong>
<div>How to setup exports and how they work</div>
</TOCItem>
- <TOCItem link="/docs/editor-starter/asset-uploads">
- <strong>Asset Uploads</strong>
- <div>Asset upload functionality in the Editor Starter</div>
- </TOCItem>
- <TOCItem link="/docs/editor-starter/undo-redo">
- <strong>Undo and Redo</strong>
- <div>Undo and Redo functionality in the Editor Starter</div>
+ <TOCItem link="/docs/editor-starter/backend-routes">
+ <strong>Backend Routes</strong>
+ <div>Backend routes used by the Editor Starter</div>
</TOCItem>
<TOCItem link="/docs/editor-starter/features-not-included">
<strong>Features not included</strong>
diff --git a/packages/docs/docs/editor-starter/before-you-buy.mdx b/packages/docs/docs/editor-starter/before-you-buy.mdx
new file mode 100644
index 0000000000..9fd2681880
--- /dev/null
+++ b/packages/docs/docs/editor-starter/before-you-buy.mdx
@@ -0,0 +1,41 @@
+---
+image: /generated/articles-docs-editor-starter-before-you-buy.png
+title: Before you buy the Editor Starter
+sidebar_label: Before you buy
+id: before-you-buy
+crumb: Editor Starter
+---
+
+Is the Editor Starter for you?
+
+### You want to make a video editor
+
+You don't want to edit a video for yourself, you want to make a video editor.
+You are a developer or have access to a developer.
+
+### You want to build it with React 19
+
+The Editor Starter is built with React 19.
+Your application is on React 19 already or you are willing to start your app from scratch using our template.
+
+### You want to use Remotion
+
+Remotion is used for playback and for rendering videos.
+You are fine with using Remotion and are okay with its [license](/license).
+
+### You want to use Tailwind v4
+
+The Editor Starter uses Tailwind v4.
+You are fine with using our starter template or the app you want to integrate it in can use Tailwind v4.
+
+### You want to use TypeScript
+
+The Editor Starter is built with TypeScript.
+You are fine with using TypeScript.
+
+### You want to iterate on the editor
+
+The Editor Starter is only a starter template.
+We assume you will want to put a twist on it, add features or integrate it with AI.
+
+You are capable of doing so and are aware of the [features that are not included in the Editor Starter](/docs/editor-starter/features-not-included).
diff --git a/packages/docs/docs/editor-starter/buy.mdx b/packages/docs/docs/editor-starter/buy.mdx
new file mode 100644
index 0000000000..8153a18f73
--- /dev/null
+++ b/packages/docs/docs/editor-starter/buy.mdx
@@ -0,0 +1,19 @@
+---
+image: /generated/articles-docs-editor-starter-buy.png
+title: Buy the Editor Starter
+sidebar_label: Buy
+id: buy
+crumb: Editor Starter
+---
+
+To buy the Editor Starter, visit **[remotion.pro/editor-starter](https://www.remotion.pro/editor-starter)**.
+
+### Upgrading from the Timeline
+
+If you have already bought the [Timeline](/docs/timeline) and are buying the Editor Starter, you are eligible for a full refund on the Timeline component.
+Buy from the same email address and then contact us at [[email protected]](mailto:[email protected]) from the email address you used to buy the Timeline.
+
+### For Enterprise License holders
+
+The Editor Starter is included in the Enterprise License.
+Provide a list of GitHub users you would like to invite in our private channel with us to get access to the Editor Starter.
diff --git a/packages/docs/docs/editor-starter/dependencies.mdx b/packages/docs/docs/editor-starter/dependencies.mdx
index 462a4cd44c..f154624e48 100644
--- a/packages/docs/docs/editor-starter/dependencies.mdx
+++ b/packages/docs/docs/editor-starter/dependencies.mdx
@@ -35,6 +35,7 @@ No API key is required for this.
- "@radix-ui/react-context-menu": "^2.2.15",
- "@radix-ui/react-popover": "^1.1.14",
- "@radix-ui/react-select": "^2.2.5",
+- "sonner": "^2.0.7",
- "@remotion/captions": "4.0.331",
- "@remotion/cli": "4.0.331",
- "@remotion/gif": "4.0.331",
diff --git a/packages/docs/docs/editor-starter/index.mdx b/packages/docs/docs/editor-starter/index.mdx
index 77e21e9fcc..f3237e0549 100644
--- a/packages/docs/docs/editor-starter/index.mdx
+++ b/packages/docs/docs/editor-starter/index.mdx
@@ -5,6 +5,10 @@ sidebar_label: Editor Starter
crumb: Editor Starter
---
+:::info
+Coming soon: We expect to release the Editor Starter mid-August.
+:::
+
A template containing the most essential elements of a video editor.
- **Save dozens of hours** by leveraging our pre-made controls for canvas items, timeline, font picker, asset uploader, etc.
diff --git a/packages/docs/docs/editor-starter/persistance.mdx b/packages/docs/docs/editor-starter/persistance.mdx
new file mode 100644
index 0000000000..e8824c7783
--- /dev/null
+++ b/packages/docs/docs/editor-starter/persistance.mdx
@@ -0,0 +1,7 @@
+---
+image: /generated/articles-docs-editor-starter-persistance.png
+title: Persistance in the Editor Starter
+sidebar_label: Persistance
+id: persistance
+crumb: Editor Starter
+---
diff --git a/packages/docs/docs/editor-starter/state-management.mdx b/packages/docs/docs/editor-starter/state-management.mdx
new file mode 100644
index 0000000000..b5a33a32cb
--- /dev/null
+++ b/packages/docs/docs/editor-starter/state-management.mdx
@@ -0,0 +1,87 @@
+---
+image: /generated/articles-docs-editor-starter-state-management.png
+title: State management in the Editor Starter
+sidebar_label: State management
+id: state-management
+crumb: Editor Starter
+---
+
+State in the [Editor Starter](/docs/editor-starter) is managed with the built-in React state management utilities: [`useState()`](https://react.dev/reference/react/useState) and [`useContext()`](https://react.dev/reference/react/useContext).
+
+<details>
+ <summary>Why?</summary>
+ <p>The Editor Starter was built in a way that as many different teams can adopt it as easily as possible.</p>
+ <p>While the default React state management utilities are controversial for some, any React application can make use of them and developers are most familiar with them.</p>
+</details>
+
+## Shape
+
+The whole state of the Editor Starter is stored in a single object with the shape defined by the [`EditorState`](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20type%20EditorState&type=code).
+
+```ts title="src/editor/state/types.ts"
+export type UndoableState = {
+ tracks: TrackType[];
+ assets: Record<string, EditorStarterAsset>;
+ items: Record<string, EditorStarterItem>;
+ fps: number;
+ compositionWidth: number;
+ compositionHeight: number;
+};
+
+export type EditorState = {
+ undoableState: UndoableState;
+ selectedItems: string[];
+ textItemEditing: string | null;
+ textItemHoverPreview: TextItemHoverPreview | null;
+ rendering: RenderState;
+ captions: CaptionState;
+ initialized: boolean;
+ itemsBeingTrimmed: ItemBeingTrimmed[];
+ loop: boolean;
+};
+```
+
+- [`undoableState`](#undoable-state) - State that is affected by the undo stack
+ - `tracks`: An array of [timeline tracks](/docs/editor-starter/tracks-items-assets), the last ones are the ones rendered in the back.
+ - `assets`: A map of all [assets](/docs/editor-starter/tracks-items-assets) that have been uploaded to the editor.
+ - `items`: A map of all [items](/docs/editor-starter/tracks-items-assets) that have been added to the editor.
+ - `fps`: The frame rate (kept in state, [but no UI is exposed to change it](/docs/editor-starter/features-not-included#multiple-frame-rates))
+ - `compositionWidth`: The width of the canvas
+ - `compositionHeight`: The height of the canvas
+- `selectedItems`: An array of item IDs that are currently selected
+- `textItemEditing`: The ID of the text item that is currently being edited, if there is one
+- `textItemHoverPreview`: Preview updates of a text item (for example if a font is hovered in the font picker, the text will render temporarily with the font hovered)
+- `rendering`: The state of the rendering process
+- `captions`: The state of captioning process
+- `initialized`: Whether the editor has been initialized, if not initialized, canvas will not be visible
+- `itemsBeingTrimmed`: An array of items that are currently being trimmed, to show an indication of the maximum trim that is possible
+- `loop`: Whether the playback should loop
+
+## Undoable state
+
+State is separated into undoable and non-undoable parts.
+Undoable state is located within the `undoableState` object of the root state.
+
+**Undoable state** may be:
+
+- Position, size and other properties of an item
+- Assets and tracks
+- Video properties like dimensions and frame rate
+
+**Non-undoable state** may be:
+
+- Asset upload progress
+- Captioning progress
+- Zoom level
+- Rendering state
+- Selection state
+
+See also: [Undo and Redo](/docs/editor-starter/undo-redo)
+
+## Contexts
+
+In [`src/editor-context-provider.tsx`](https://github.com/remotion-dev/editor-starter/blob/main/src/editor/context-provider.tsx), you will see a very deeply nested tree of various context providers.
+
+This is intentional and achieves that when updating a portion of the state, only the components that are dependent on that portion of the state will re-render, while the rest of the components will not.
+
+For the best performance, we recommend that you continue to use this pattern in your own application.
diff --git a/packages/docs/docs/editor-starter/tracks-items-assets.mdx b/packages/docs/docs/editor-starter/tracks-items-assets.mdx
index d09c336b13..a98516931b 100644
--- a/packages/docs/docs/editor-starter/tracks-items-assets.mdx
+++ b/packages/docs/docs/editor-starter/tracks-items-assets.mdx
@@ -1,4 +1,5 @@
---
+image: /generated/articles-docs-editor-starter-tracks-items-assets.png
title: Tracks, items and assets in the Editor Starter
sidebar_label: Tracks, items, assets
id: tracks-items-assets
diff --git a/packages/docs/docs/editor-starter/undo-and-redo.mdx b/packages/docs/docs/editor-starter/undo-and-redo.mdx
index 40bfb883d4..65364380fe 100644
--- a/packages/docs/docs/editor-starter/undo-and-redo.mdx
+++ b/packages/docs/docs/editor-starter/undo-and-redo.mdx
@@ -6,28 +6,8 @@ id: undo-redo
crumb: Editor Starter
---
-The Editor Starter implemnts a basic Undo and Redo feature.
-It works by keeping an array of snapshots of the state of the editor in memory.
-
-## Undoable state
-
-State is separated into undoable and non-undoable parts.
-Undoable state is located within the `undoableState` object of the root state.
-
-**Undoable state** may be:
-
-- Position, size and other properties of an item
-- Track position and arrangement
-- Video properties like dimensions and frame rate
-
-**Non-undoable state** may be:
-
-- Asset upload progress
-- Zoom level
-- Captioning progress
-- Clipboard state
-- Rendering state
-- Selection state
+The Editor Starter implements a basic Undo and Redo feature.
+It works by keeping an array of snapshots of the [undoable state](/docs/editor-starter/state-management#undoable-state) of the editor in memory.
## Undo stack
diff --git a/packages/docs/docusaurus.config.ts b/packages/docs/docusaurus.config.ts
index 2e9352411c..52a3ad0bb4 100644
--- a/packages/docs/docusaurus.config.ts
+++ b/packages/docs/docusaurus.config.ts
@@ -55,6 +55,7 @@ const config: Config = {
{to: '/docs/media-parser', label: 'Media Parser'},
{to: '/docs/webcodecs', label: 'WebCodecs'},
{to: '/docs/recorder', label: 'Recorder'},
+ {to: '/docs/editor-starter', label: 'Editor Starter'},
{to: '/docs/timeline', label: 'Timeline'},
],
},
diff --git a/packages/docs/sidebars.ts b/packages/docs/sidebars.ts
index f295c3151d..ab9e1d9b78 100644
--- a/packages/docs/sidebars.ts
+++ b/packages/docs/sidebars.ts
@@ -1349,16 +1349,22 @@ const sidebars: SidebarsConfig = {
id: 'editor-starter/index',
},
items: [
+ 'editor-starter/before-you-buy',
+ 'editor-starter/buy',
'editor-starter/setup',
'editor-starter/dependencies',
'editor-starter/features',
+ 'editor-starter/state-management',
+ 'editor-starter/tracks-items-assets',
+ 'editor-starter/undo-redo',
'editor-starter/fonts',
'editor-starter/asset-uploads',
- 'editor-starter/undo-redo',
- 'editor-starter/tracks-items-assets',
- 'editor-starter/faq',
+ 'editor-starter/persistance',
+ 'editor-starter/captioning',
+ 'editor-starter/rendering',
'editor-starter/backend-routes',
'editor-starter/features-not-included',
+ 'editor-starter/faq',
],
},
{
diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.ts
index c5cccf3432..7729528809 100644
--- a/packages/docs/src/data/articles.ts
+++ b/packages/docs/src/data/articles.ts
@@ -1295,6 +1295,24 @@ export const articles = [
noAi: false,
slug: 'editor-starter/backend-routes',
},
+ {
+ id: 'before-you-buy',
+ title: 'Before you buy the Editor Starter',
+ relativePath: 'docs/editor-starter/before-you-buy.mdx',
+ compId: 'articles-docs-editor-starter-before-you-buy',
+ crumb: 'Editor Starter',
+ noAi: false,
+ slug: 'editor-starter/before-you-buy',
+ },
+ {
+ id: 'buy',
+ title: 'Buy the Editor Starter',
+ relativePath: 'docs/editor-starter/buy.mdx',
+ compId: 'articles-docs-editor-starter-buy',
+ crumb: 'Editor Starter',
+ noAi: false,
+ slug: 'editor-starter/buy',
+ },
{
id: 'editor-starter/captioning',
title: 'Captioning in the Editor Starter',
@@ -1358,6 +1376,15 @@ export const articles = [
noAi: false,
slug: 'editor-starter/index',
},
+ {
+ id: 'persistance',
+ title: 'Persistance in the Editor Starter',
+ relativePath: 'docs/editor-starter/persistance.mdx',
+ compId: 'articles-docs-editor-starter-persistance',
+ crumb: 'Editor Starter',
+ noAi: false,
+ slug: 'editor-starter/persistance',
+ },
{
id: 'rendering',
title: 'Rendering',
@@ -1376,6 +1403,24 @@ export const articles = [
noAi: false,
slug: 'editor-starter/setup',
},
+ {
+ id: 'state-management',
+ title: 'State management in the Editor Starter',
+ relativePath: 'docs/editor-starter/state-management.mdx',
+ compId: 'articles-docs-editor-starter-state-management',
+ crumb: 'Editor Starter',
+ noAi: false,
+ slug: 'editor-starter/state-management',
+ },
+ {
+ id: 'tracks-items-assets',
+ title: 'Tracks, items and assets in the Editor Starter',
+ relativePath: 'docs/editor-starter/tracks-items-assets.mdx',
+ compId: 'articles-docs-editor-starter-tracks-items-assets',
+ crumb: 'Editor Starter',
+ noAi: false,
+ slug: 'editor-starter/tracks-items-assets',
+ },
{
id: 'undo-redo',
title: 'Undo and Redo',
diff --git a/packages/docs/static/generated/articles-docs-editor-starter-before-you-buy.png b/packages/docs/static/generated/articles-docs-editor-starter-before-you-buy.png
new file mode 100644
index 0000000000..08e0564e91
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-editor-starter-before-you-buy.png differ
diff --git a/packages/docs/static/generated/articles-docs-editor-starter-buy.png b/packages/docs/static/generated/articles-docs-editor-starter-buy.png
new file mode 100644
index 0000000000..6439d0a4a7
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-editor-starter-buy.png differ
diff --git a/packages/docs/static/generated/articles-docs-editor-starter-persistance.png b/packages/docs/static/generated/articles-docs-editor-starter-persistance.png
new file mode 100644
index 0000000000..aaaaaa6a78
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-editor-starter-persistance.png differ
diff --git a/packages/docs/static/generated/articles-docs-editor-starter-state-management.png b/packages/docs/static/generated/articles-docs-editor-starter-state-management.png
new file mode 100644
index 0000000000..d9127f5c76
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-editor-starter-state-management.png differ
diff --git a/packages/docs/static/generated/articles-docs-editor-starter-tracks-items-assets.png b/packages/docs/static/generated/articles-docs-editor-starter-tracks-items-assets.png
new file mode 100644
index 0000000000..04fb4e8ac7
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-editor-starter-tracks-items-assets.png differ
diff --git a/packages/promo-pages/src/components/homepage/FreePricing.tsx b/packages/promo-pages/src/components/homepage/FreePricing.tsx
index f5caa99c5b..04e7a484c1 100644
--- a/packages/promo-pages/src/components/homepage/FreePricing.tsx
+++ b/packages/promo-pages/src/components/homepage/FreePricing.tsx
@@ -100,11 +100,25 @@ export const EnterpriseLicense: React.FC = () => {
<Audience>For advanced needs</Audience>
<Title>Enterprise License</Title>
<PricingBulletPoint text="Everything in Company License" checked />
+ <PricingBulletPoint text="Private Slack or Discord" checked />
+ <PricingBulletPoint text="Monthly consulting session" checked />
<PricingBulletPoint text="Custom terms, billing and pricing" checked />
<PricingBulletPoint text="Compliance forms" checked />
<PricingBulletPoint text="Prioritized feature requests" checked />
- <PricingBulletPoint text="Private Slack or Discord" checked />
- <PricingBulletPoint text="Monthly consulting session" checked />
+ <PricingBulletPoint
+ text={
+ <span>
+ <a
+ href="https://www.remotion.dev/editor-starter"
+ className="underline underline-offset-4 text-inherit"
+ >
+ Editor Starter
+ </a>{' '}
+ included
+ </span>
+ }
+ checked
+ />
<div style={{height: 30}} />
<div className={'flex flex-row justify-end'}>
<div