🎥 Make videos programmatically with React
move stats
Jonny Burger70f8d58e1fcc
diff --git a/packages/STATS.md b/packages/STATS.mdindex ef300ee719..a4915b6da6 100644--- a/packages/STATS.md+++ b/packages/STATS.md@@ -1,3 +1,44 @@# Download statisticsMonthly downloads of Remotion packages-[](https://npmcharts.com/compare/@remotion/compositor-darwin-x64?minimal=true) ,[](https://npmcharts.com/compare/@remotion/skia?minimal=true) ,[](https://npmcharts.com/compare/@remotion/compositor-win32-x64-msvc?minimal=true) ,[](https://npmcharts.com/compare/@remotion/astro-example?minimal=true) ,[](https://npmcharts.com/compare/@remotion/lambda-go-example?minimal=true) ,[](https://npmcharts.com/compare/@remotion/animation-utils?minimal=true) ,[](https://npmcharts.com/compare/@remotion/studio?minimal=true) ,[](https://npmcharts.com/compare/@remotion/renderer?minimal=true) ,[](https://npmcharts.com/compare/@remotion/test-utils?minimal=true) ,[](https://npmcharts.com/compare/@remotion/example-without-zod?minimal=true) ,[](https://npmcharts.com/compare/@remotion/compositor-linux-arm64-gnu?minimal=true) ,[](https://npmcharts.com/compare/remotion?minimal=true) ,[](https://npmcharts.com/compare/@remotion/motion-blur?minimal=true) ,[](https://npmcharts.com/compare/@remotion/lambda-go?minimal=true) ,[](https://npmcharts.com/compare/@remotion/example?minimal=true) ,[](https://npmcharts.com/compare/@remotion/lambda-php?minimal=true) ,[](https://npmcharts.com/compare/@remotion/compositor-darwin-arm64?minimal=true) ,[](https://npmcharts.com/compare/@remotion/zod-types?minimal=true) ,[](https://npmcharts.com/compare/@remotion/install-whisper-cpp?minimal=true) ,[](https://npmcharts.com/compare/@remotion/bugs?minimal=true) ,[](https://npmcharts.com/compare/@remotion/paths?minimal=true) ,[](https://npmcharts.com/compare/@remotion/rive?minimal=true) ,[](https://npmcharts.com/compare/@remotion/video-parser?minimal=true) ,[](https://npmcharts.com/compare/@remotion/shapes?minimal=true) ,[](https://npmcharts.com/compare/@remotion/compositor-linux-x64-musl?minimal=true) ,[](https://npmcharts.com/compare/@remotion/docs?minimal=true) ,[](https://npmcharts.com/compare/@remotion/cli?minimal=true) ,[](https://npmcharts.com/compare/@remotion/three?minimal=true) ,[](https://npmcharts.com/compare/@remotion/streaming?minimal=true) ,[](https://npmcharts.com/compare/@remotion/tailwind?minimal=true) ,[](https://npmcharts.com/compare/@remotion/cloudrun?minimal=true) ,[](https://npmcharts.com/compare/@remotion/it-tests?minimal=true) ,[](https://npmcharts.com/compare/@remotion/eslint-config?minimal=true) ,[](https://npmcharts.com/compare/@remotion/google-fonts?minimal=true) ,[](https://npmcharts.com/compare/@remotion/media-utils?minimal=true) ,[](https://npmcharts.com/compare/@remotion/studio-shared?minimal=true) ,[](https://npmcharts.com/compare/@remotion/noise?minimal=true) ,[](https://npmcharts.com/compare/@remotion/lambda-python?minimal=true) ,[](https://npmcharts.com/compare/@remotion/create-video?minimal=true) ,[](https://npmcharts.com/compare/@remotion/lambda?minimal=true) ,[](https://npmcharts.com/compare/@remotion/lottie?minimal=true) ,[](https://npmcharts.com/compare/@remotion/studio-server?minimal=true) ,[](https://npmcharts.com/compare/@remotion/enable-scss?minimal=true) ,[](https://npmcharts.com/compare/@remotion/player-example?minimal=true) ,[](https://npmcharts.com/compare/@remotion/ai-improvements?minimal=true) ,[](https://npmcharts.com/compare/@remotion/compositor-linux-arm64-musl?minimal=true) ,[](https://npmcharts.com/compare/@remotion/transitions?minimal=true) ,[](https://npmcharts.com/compare/@remotion/fonts?minimal=true) ,[](https://npmcharts.com/compare/@remotion/babel-loader?minimal=true) ,[](https://npmcharts.com/compare/@remotion/preload?minimal=true) ,[](https://npmcharts.com/compare/@remotion/compositor-linux-x64-gnu?minimal=true) ,[](https://npmcharts.com/compare/@remotion/discord-poster?minimal=true) ,[](https://npmcharts.com/compare/@remotion/cli-autocomplete?minimal=true) ,[](https://npmcharts.com/compare/@remotion/bundler?minimal=true) ,[](https://npmcharts.com/compare/@remotion/layout-utils?minimal=true) ,[](https://npmcharts.com/compare/@remotion/eslint-plugin?minimal=true) ,[](https://npmcharts.com/compare/@remotion/player?minimal=true) ,[](https://npmcharts.com/compare/@remotion/gif?minimal=true)+[](https://npmcharts.com/compare/@remotion/compositor-darwin-x64?minimal=true)+[](https://npmcharts.com/compare/@remotion/skia?minimal=true)+[](https://npmcharts.com/compare/@remotion/animation-utils?minimal=true)+[](https://npmcharts.com/compare/@remotion/studio?minimal=true)+[](https://npmcharts.com/compare/@remotion/renderer?minimal=true)+[](https://npmcharts.com/compare/@remotion/compositor-linux-arm64-gnu?minimal=true)+[](https://npmcharts.com/compare/remotion?minimal=true)+[](https://npmcharts.com/compare/@remotion/motion-blur?minimal=true)+[](https://npmcharts.com/compare/@remotion/compositor-darwin-arm64?minimal=true)+[](https://npmcharts.com/compare/@remotion/zod-types?minimal=true)+[](https://npmcharts.com/compare/@remotion/install-whisper-cpp?minimal=true)+[](https://npmcharts.com/compare/@remotion/paths?minimal=true)+[](https://npmcharts.com/compare/@remotion/rive?minimal=true)+[](https://npmcharts.com/compare/@remotion/video-parser?minimal=true)+[](https://npmcharts.com/compare/@remotion/shapes?minimal=true)+[](https://npmcharts.com/compare/@remotion/compositor-linux-x64-musl?minimal=true)+[](https://npmcharts.com/compare/@remotion/cli?minimal=true)+[](https://npmcharts.com/compare/@remotion/three?minimal=true)+[](https://npmcharts.com/compare/@remotion/streaming?minimal=true)+[](https://npmcharts.com/compare/@remotion/tailwind?minimal=true)+[](https://npmcharts.com/compare/@remotion/cloudrun?minimal=true)+[](https://npmcharts.com/compare/@remotion/eslint-config?minimal=true)+[](https://npmcharts.com/compare/@remotion/google-fonts?minimal=true)+[](https://npmcharts.com/compare/@remotion/media-utils?minimal=true)+[](https://npmcharts.com/compare/@remotion/studio-shared?minimal=true)+[](https://npmcharts.com/compare/@remotion/noise?minimal=true)+[](https://npmcharts.com/compare/@remotion/create-video?minimal=true)+[](https://npmcharts.com/compare/@remotion/lambda?minimal=true)+[](https://npmcharts.com/compare/@remotion/lottie?minimal=true)+[](https://npmcharts.com/compare/@remotion/studio-server?minimal=true)+[](https://npmcharts.com/compare/@remotion/enable-scss?minimal=true)+[](https://npmcharts.com/compare/@remotion/compositor-linux-arm64-musl?minimal=true)+[](https://npmcharts.com/compare/@remotion/transitions?minimal=true)+[](https://npmcharts.com/compare/@remotion/fonts?minimal=true)+[](https://npmcharts.com/compare/@remotion/babel-loader?minimal=true)+[](https://npmcharts.com/compare/@remotion/preload?minimal=true)+[](https://npmcharts.com/compare/@remotion/compositor-linux-x64-gnu?minimal=true)+[](https://npmcharts.com/compare/@remotion/bundler?minimal=true)+[](https://npmcharts.com/compare/@remotion/layout-utils?minimal=true)+[](https://npmcharts.com/compare/@remotion/eslint-plugin?minimal=true)+[](https://npmcharts.com/compare/@remotion/player?minimal=true)+[](https://npmcharts.com/compare/@remotion/gif?minimal=true)diff --git a/packages/it-tests/src/monorepo/get-all-packages.ts b/packages/it-tests/src/monorepo/get-all-packages.tsindex 292a07e4e6..a13fce9b5d 100644--- a/packages/it-tests/src/monorepo/get-all-packages.ts+++ b/packages/it-tests/src/monorepo/get-all-packages.ts@@ -112,3 +112,130 @@ export const updatePackageJson = (const updatedPkg = updater(pkg);writeFileSync(json, JSON.stringify(updatedPkg, null, '\t') + '\n');};++export const descriptions: {[key in Pkgs]: string | null} = {+ player: 'React component for embedding a Remotion preview into your app',+ cloudrun: 'Render Remotion videos on Google Cloud Run',+ renderer: 'Render Remotion videos using Node.js or Bun',+ cli: 'Control Remotion features using the `npx remotion` command',+ core: 'Make videos programmatically',+ lambda: 'Render Remotion videos on AWS Lambda',+ bundler: 'Bundle Remotion compositions using Webpack',+ 'studio-server': 'Run a Remotion Studio with a server backend',+ 'install-whisper-cpp': 'Helpers for installing and using Whisper.cpp',+ 'google-fonts': 'Use Google Fonts in Remotion',+ 'media-utils': 'Utilities for working with media files',+ lottie: 'Include Lottie animations in Remotion',+ 'layout-utils': 'Utilities for working with layouts',+ noise: 'Noise generation functions',+ 'motion-blur': 'Motion blur effect for Remotion',+ preload: 'Preloads assets for use in Remotion',+ shapes: 'Generate SVG shapes',+ 'zod-types': 'Zod types for Remotion',+ gif: 'Embed GIFs in a Remotion video',+ 'eslint-plugin': 'Rules for writing Remotion code',+ 'eslint-config': 'Default configuration for Remotion templates',+ 'compositor-linux-x64-gnu': 'Linux x64 binary for the Remotion Rust code',+ 'compositor-linux-x64-musl': 'Linux x64 binary for the Remotion Rust code',+ 'compositor-darwin-x64': 'MacOS x64 binary for the Remotion Rust code',+ 'compositor-darwin-arm64':+ 'MacOS Apple Silicon binary for the Remotion Rust code',+ 'compositor-linux-arm64-gnu': 'Linux ARM64 binary for the Remotion Rust code',+ 'compositor-linux-arm64-musl':+ 'Linux ARM64 binary for the Remotion Rust code',+ 'babel-loader': 'Babel loader for Remotion',+ fonts: 'Helpers for loading local fonts into Remotion',+ transitions: 'Library for creating transitions in Remotion',+ 'enable-scss': 'Enable SCSS support in Remotion',+ 'create-video': 'Create a new Remotion project',+ 'studio-shared':+ 'Internal package for shared objects between the Studio backend and frontend',+ tailwind: 'Enable TailwindCSS support in Remotion',+ streaming: 'Utilities for streaming data between programs',+ 'video-parser': 'A JavaScript parser for .mp4, .mov, .webm and .mkv files',+ rive: 'Embed Rive animations in a Remotion video',+ paths: 'Utilities for working with SVG paths',+ studio: 'APIs for interacting with the Remotion Studio',+ skia: 'Include React Native Skia components in a Remotion video',+ three: 'Include React Three Fiber components in a Remotion video',+ 'astro-example': null,+ 'lambda-go-example': null,+ 'compositor-win32-x64-msvc': null,+ 'animation-utils': 'Helpers for animating CSS properties',+ 'test-utils': null,+ 'example-without-zod': null,+ 'lambda-go': null,+ example: null,+ 'lambda-php': null,+ bugs: null,+ docs: null,+ 'it-tests': null,+ 'lambda-python': null,+ 'player-example': null,+ 'ai-improvements': null,+ 'discord-poster': null,+ 'cli-autocomplete': null,+};++export const apiDocs: {[key in Pkgs]: string | null} = {+ player: 'https://www.remotion.dev/docs/player',+ cloudrun: 'https://www.remotion.dev/docs/cloudrun',+ renderer: 'https://www.remotion.dev/docs/renderer',+ cli: 'https://www.remotion.dev/docs/cli',+ core: 'https://www.remotion.dev/docs/remotion',+ lambda: 'https://www.remotion.dev/docs/lambda',+ bundler: 'https://www.remotion.dev/docs/bundler',+ 'studio-server': null,+ 'install-whisper-cpp': 'https://www.remotion.dev/docs/install-whisper-cpp',+ 'google-fonts': 'https://www.remotion.dev/docs/google-fonts',+ 'media-utils': 'https://www.remotion.dev/docs/media-utils',+ lottie: 'https://www.remotion.dev/docs/lottie',+ 'layout-utils': 'https://www.remotion.dev/docs/layout-utils',+ noise: 'https://www.remotion.dev/docs/noise',+ 'motion-blur': 'https://www.remotion.dev/docs/motion-blur',+ preload: 'https://www.remotion.dev/docs/preload',+ shapes: 'https://www.remotion.dev/docs/shapes',+ 'zod-types': 'https://www.remotion.dev/docs/zod-types',+ gif: 'https://www.remotion.dev/docs/gif',+ 'eslint-plugin':+ 'https://www.remotion.dev/docs/brownfield#install-the-eslint-plugin',+ 'eslint-config':+ 'https://www.remotion.dev/docs/brownfield#install-the-eslint-plugin',+ 'compositor-linux-x64-gnu': null,+ 'compositor-linux-x64-musl': null,+ 'compositor-darwin-x64': null,+ 'ai-improvements': null,+ 'discord-poster': null,+ 'cli-autocomplete': null,+ 'animation-utils': null,+ 'example-without-zod': null,+ 'lambda-go': null,+ example: null,+ 'lambda-php': null,+ bugs: null,+ docs: null,+ 'it-tests': null,+ 'lambda-python': null,+ 'player-example': null,+ 'astro-example': null,+ 'lambda-go-example': null,+ 'test-utils': null,+ 'babel-loader': 'https://www.remotion.dev/docs/legacy-babel',+ 'compositor-darwin-arm64': null,+ 'compositor-linux-arm64-gnu': null,+ 'compositor-linux-arm64-musl': null,+ 'compositor-win32-x64-msvc': null,+ 'enable-scss': 'https://www.remotion.dev/docs/enable-scss/overview',+ 'create-video': 'https://remotion.dev/templates',+ 'studio-shared': null,+ 'video-parser': null,+ fonts: 'https://www.remotion.dev/docs/fonts-api',+ paths: 'https://www.remotion.dev/paths',+ rive: 'https://www.remotion.dev/docs/rive',+ tailwind: 'https://www.remotion.dev/docs/tailwind/tailwind',+ skia: 'https://www.remotion.dev/docs/skia',+ three: 'https://www.remotion.dev/docs/three',+ streaming: null,+ studio: null,+ transitions: 'https://www.remotion.dev/transitions',+};diff --git a/packages/it-tests/src/monorepo/package-metadata.test.ts b/packages/it-tests/src/monorepo/package-metadata.test.tsindex e2fce24a31..42b12b0691 100644--- a/packages/it-tests/src/monorepo/package-metadata.test.ts+++ b/packages/it-tests/src/monorepo/package-metadata.test.ts@@ -1,134 +1,13 @@import {expect, test} from 'bun:test';import {writeFileSync} from 'fs';import {join} from 'path';-import {Pkgs, getAllPackages, updatePackageJson} from './get-all-packages';--const descriptions: {[key in Pkgs]: string | null} = {- player: 'React component for embedding a Remotion preview into your app',- cloudrun: 'Render Remotion videos on Google Cloud Run',- renderer: 'Render Remotion videos using Node.js or Bun',- cli: 'Control Remotion features using the `npx remotion` command',- core: 'Make videos programmatically',- lambda: 'Render Remotion videos on AWS Lambda',- bundler: 'Bundle Remotion compositions using Webpack',- 'studio-server': 'Run a Remotion Studio with a server backend',- 'install-whisper-cpp': 'Helpers for installing and using Whisper.cpp',- 'google-fonts': 'Use Google Fonts in Remotion',- 'media-utils': 'Utilities for working with media files',- lottie: 'Include Lottie animations in Remotion',- 'layout-utils': 'Utilities for working with layouts',- noise: 'Noise generation functions',- 'motion-blur': 'Motion blur effect for Remotion',- preload: 'Preloads assets for use in Remotion',- shapes: 'Generate SVG shapes',- 'zod-types': 'Zod types for Remotion',- gif: 'Embed GIFs in a Remotion video',- 'eslint-plugin': 'Rules for writing Remotion code',- 'eslint-config': 'Default configuration for Remotion templates',- 'compositor-linux-x64-gnu': 'Linux x64 binary for the Remotion Rust code',- 'compositor-linux-x64-musl': 'Linux x64 binary for the Remotion Rust code',- 'compositor-darwin-x64': 'MacOS x64 binary for the Remotion Rust code',- 'compositor-darwin-arm64':- 'MacOS Apple Silicon binary for the Remotion Rust code',- 'compositor-linux-arm64-gnu': 'Linux ARM64 binary for the Remotion Rust code',- 'compositor-linux-arm64-musl':- 'Linux ARM64 binary for the Remotion Rust code',- 'babel-loader': 'Babel loader for Remotion',- fonts: 'Helpers for loading local fonts into Remotion',- transitions: 'Library for creating transitions in Remotion',- 'enable-scss': 'Enable SCSS support in Remotion',- 'create-video': 'Create a new Remotion project',- 'studio-shared':- 'Internal package for shared objects between the Studio backend and frontend',- tailwind: 'Enable TailwindCSS support in Remotion',- streaming: 'Utilities for streaming data between programs',- 'video-parser': 'A JavaScript parser for .mp4, .mov, .webm and .mkv files',- rive: 'Embed Rive animations in a Remotion video',- paths: 'Utilities for working with SVG paths',- studio: 'APIs for interacting with the Remotion Studio',- skia: 'Include React Native Skia components in a Remotion video',- three: 'Include React Three Fiber components in a Remotion video',- 'astro-example': null,- 'lambda-go-example': null,- 'compositor-win32-x64-msvc': null,- 'animation-utils': 'Helpers for animating CSS properties',- 'test-utils': null,- 'example-without-zod': null,- 'lambda-go': null,- example: null,- 'lambda-php': null,- bugs: null,- docs: null,- 'it-tests': null,- 'lambda-python': null,- 'player-example': null,- 'ai-improvements': null,- 'discord-poster': null,- 'cli-autocomplete': null,-};--const apiDocs: {[key in Pkgs]: string | null} = {- player: 'https://www.remotion.dev/docs/player',- cloudrun: 'https://www.remotion.dev/docs/cloudrun',- renderer: 'https://www.remotion.dev/docs/renderer',- cli: 'https://www.remotion.dev/docs/cli',- core: 'https://www.remotion.dev/docs/remotion',- lambda: 'https://www.remotion.dev/docs/lambda',- bundler: 'https://www.remotion.dev/docs/bundler',- 'studio-server': null,- 'install-whisper-cpp': 'https://www.remotion.dev/docs/install-whisper-cpp',- 'google-fonts': 'https://www.remotion.dev/docs/google-fonts',- 'media-utils': 'https://www.remotion.dev/docs/media-utils',- lottie: 'https://www.remotion.dev/docs/lottie',- 'layout-utils': 'https://www.remotion.dev/docs/layout-utils',- noise: 'https://www.remotion.dev/docs/noise',- 'motion-blur': 'https://www.remotion.dev/docs/motion-blur',- preload: 'https://www.remotion.dev/docs/preload',- shapes: 'https://www.remotion.dev/docs/shapes',- 'zod-types': 'https://www.remotion.dev/docs/zod-types',- gif: 'https://www.remotion.dev/docs/gif',- 'eslint-plugin':- 'https://www.remotion.dev/docs/brownfield#install-the-eslint-plugin',- 'eslint-config':- 'https://www.remotion.dev/docs/brownfield#install-the-eslint-plugin',- 'compositor-linux-x64-gnu': null,- 'compositor-linux-x64-musl': null,- 'compositor-darwin-x64': null,- 'ai-improvements': null,- 'discord-poster': null,- 'cli-autocomplete': null,- 'animation-utils': null,- 'example-without-zod': null,- 'lambda-go': null,- example: null,- 'lambda-php': null,- bugs: null,- docs: null,- 'it-tests': null,- 'lambda-python': null,- 'player-example': null,- 'astro-example': null,- 'lambda-go-example': null,- 'test-utils': null,- 'babel-loader': 'https://www.remotion.dev/docs/legacy-babel',- 'compositor-darwin-arm64': null,- 'compositor-linux-arm64-gnu': null,- 'compositor-linux-arm64-musl': null,- 'compositor-win32-x64-msvc': null,- 'enable-scss': 'https://www.remotion.dev/docs/enable-scss/overview',- 'create-video': 'https://remotion.dev/templates',- 'studio-shared': null,- 'video-parser': null,- fonts: 'https://www.remotion.dev/docs/fonts-api',- paths: 'https://www.remotion.dev/paths',- rive: 'https://www.remotion.dev/docs/rive',- tailwind: 'https://www.remotion.dev/docs/tailwind/tailwind',- skia: 'https://www.remotion.dev/docs/skia',- three: 'https://www.remotion.dev/docs/three',- streaming: null,- studio: null,- transitions: 'https://www.remotion.dev/transitions',-};+import {+ Pkgs,+ apiDocs,+ descriptions,+ getAllPackages,+ updatePackageJson,+} from './get-all-packages';test('All packages should have a repository field', () => {const dirs = getAllPackages();diff --git a/packages/it-tests/src/monorepo/statistics-file.test.ts b/packages/it-tests/src/monorepo/statistics-file.test.tsindex a5cb0b76c8..21920a4594 100644--- a/packages/it-tests/src/monorepo/statistics-file.test.ts+++ b/packages/it-tests/src/monorepo/statistics-file.test.ts@@ -1,7 +1,7 @@import {expect, test} from 'bun:test';import {writeFileSync} from 'fs';import {join} from 'path';-import {getAllPackages} from './get-all-packages';+import {Pkgs, descriptions, getAllPackages} from './get-all-packages';test('All packages should have a README.md file', () => {const dirs = getAllPackages();@@ -14,11 +14,18 @@ test('All packages should have a README.md file', () => {[`# Download statistics`,'Monthly downloads of Remotion packages',- dirs.map(({pkg}) => {- const name = pkg === 'core' ? 'remotion' : `@remotion/${pkg}`;+ dirs+ .map(({pkg}) => {+ const name = pkg === 'core' ? 'remotion' : `@remotion/${pkg}`;+ const description = descriptions[pkg as Pkgs];+ if (!description) {+ return null;+ }- return `[](https://npmcharts.com/compare/${name}?minimal=true) `;- }),+ return `[](https://npmcharts.com/compare/${name}?minimal=true) `;+ })+ .filter(Boolean)+ .join('\n'),].filter(Boolean).join('\n') + '\n';