Skip to content

🎥 Make videos programmatically with React

`@remotion/canvas`: Generate README from package metadata

Jonny Burgerfafcf7465b5d
diff --git a/packages/canvas/README.md b/packages/canvas/README.md
index ad3817065d..f32ad2a9f5 100644
--- a/packages/canvas/README.md
+++ b/packages/canvas/README.md
@@ -1,7 +1,18 @@
# @remotion/canvas
-Experimental primitives for building a Remotion authoring interface around [`@remotion/player`](https://www.remotion.dev/docs/player/player).
+Experimental primitives for building Remotion authoring interfaces
-See the [Canvas documentation](https://www.remotion.dev/docs/canvas) for installation, a complete example, and the supported API.
+[![NPM Downloads](https://img.shields.io/npm/dm/@remotion/canvas.svg?style=flat&color=black&label=Downloads)](https://npmcharts.com/compare/@remotion/canvas?minimal=true)
-`CanvasInternals` is used by Remotion Studio and may change without notice.
+## Installation
+
+```bash
+npm install @remotion/canvas --save-exact
+```
+
+When installing a Remotion package, make sure to align the version of all `remotion` and `@remotion/*` packages to the same version.
+Remove the `^` character from the version number to use the exact version.
+
+## Usage
+
+See the [documentation](https://www.remotion.dev/docs/canvas) for more information.
diff --git a/packages/canvas/package.json b/packages/canvas/package.json
index 478f8e1c7b..3b7ad368b7 100644
--- a/packages/canvas/package.json
+++ b/packages/canvas/package.json
@@ -4,7 +4,7 @@
},
"name": "@remotion/canvas",
"version": "4.0.527",
- "description": "Headless primitives for Remotion authoring interfaces",
+ "description": "Experimental primitives for building Remotion authoring interfaces",
"main": "dist/index.cjs",
"types": "dist/index.d.ts",
"module": "dist/esm/index.mjs",
@@ -56,5 +56,6 @@
],
"publishConfig": {
"access": "public"
- }
+ },
+ "homepage": "https://www.remotion.dev/docs/canvas"
}
diff --git a/packages/studio-shared/src/package-info.ts b/packages/studio-shared/src/package-info.ts
index 5a54e6dac9..b3b2309c44 100644
--- a/packages/studio-shared/src/package-info.ts
+++ b/packages/studio-shared/src/package-info.ts
@@ -189,7 +189,7 @@ export const descriptions: {[key in Pkgs]: string | null} = {
bundler: 'Bundle Remotion compositions using Webpack',
'browser-bundler': 'Compile virtual Remotion projects in the browser',
'browser-studio': 'Run Remotion Studio in the browser',
- canvas: 'Headless primitives for Remotion authoring interfaces',
+ canvas: 'Experimental primitives for building Remotion authoring interfaces',
codemods: 'Codemods for Remotion projects',
'studio-server': 'Run a Remotion Studio with a server backend',
'install-whisper-cpp': 'Helpers for installing and using Whisper.cpp',
@@ -431,7 +431,7 @@ export const apiDocs: {[key in Pkgs]: string | null} = {
bundler: 'https://www.remotion.dev/docs/bundler',
'browser-bundler': 'https://www.remotion.dev/docs/browser-bundler',
'browser-studio': null,
- canvas: null,
+ canvas: 'https://www.remotion.dev/docs/canvas',
codemods: 'https://www.remotion.dev/docs/codemods',
'lambda-client': null,
'serverless-client': null,