Remotion Studio Protocolv4.0.502
A versioned protocol for connecting websites to Remotion Studio.
Protocol v1 supports delivering Remotion Elements and setting a public Company License key from trusted origins.
- Remotion CLI
- npm
- bun
- pnpm
- yarn
npx remotion add @remotion/studio-protocol
This assumes you are currently using v4.0.503 of Remotion.npm i --save-exact @remotion/studio-protocol@4.0.503
Also update
remotion and all `@remotion/*` packages to the same version.Remove all
^ character in front of the version numbers of it as it can lead to a version conflict.This assumes you are currently using v4.0.503 of Remotion.pnpm i @remotion/studio-protocol@4.0.503
Also update
remotion and all `@remotion/*` packages to the same version.Remove all
^ character in front of the version numbers of it as it can lead to a version conflict.This assumes you are currently using v4.0.503 of Remotion.bun i @remotion/studio-protocol@4.0.503
Also update
remotion and all `@remotion/*` packages to the same version.Remove all
^ character in front of the version numbers of it as it can lead to a version conflict.This assumes you are currently using v4.0.503 of Remotion.yarn --exact add @remotion/studio-protocol@4.0.503
Also update
remotion and all `@remotion/*` packages to the same version.Remove all
^ character in front of the version numbers of it as it can lead to a version conflict.Usage
element.tsimport {createElementPayload ,installInStudio , } from '@remotion/studio-protocol'; constpayload =createElementPayload ({displayName : 'Lower Third',slug : 'lower-third',sourceCode : 'export const LowerThird = () => null;',dependencies : [],dimensions : {width : 900,height : 260},durationInFrames : 90, }); constresult = awaitinstallInStudio ({payload }); if (result .success ) {console .log (result .status ); // "awaiting-confirmation" }
A successful request means Studio received the Element and is awaiting confirmation. It does not mean dependencies or source files were installed.
APIs
Supported origins
Any HTTPS website can request an Element installation confirmation. HTTP is supported on localhost and 127.0.0.1 for local development.
setLicenseKeyInStudio() immediately changes a project config and therefore uses a stricter allowlist: remotion.pro, www.remotion.pro, and loopback development origins.
Compatibility
Remotion Studio 4.0.502 or newer is required for Element installation. setLicenseKeyInStudio() requires Remotion 4.0.504 or newer. Browser Studio is not supported in protocol v1.