Skip to content

🎥 Make videos programmatically with React

author a remotion library

Jonny Burger7755c4b446b6
diff --git a/bun.lockb b/bun.lockb
deleted file mode 100755
index e41bfb69d3..0000000000
Binary files a/bun.lockb and /dev/null differ
diff --git a/packages/docs/docs/contributing/library.md b/packages/docs/docs/contributing/library.md
deleted file mode 100644
index b42f6a3593..0000000000
--- a/packages/docs/docs/contributing/library.md
+++ /dev/null
@@ -1,15 +0,0 @@
----
-image: /generated/articles-docs-contributing-library.png
-title: Create libraries or components for Remotion
-sidebar_label: Libraries
-crumb: Contributing
----
-
-Building libraries and components for the remotion ecosystem is a great way to contribute to remotion.
-
-We suggest starting from Remotion's library/component starter template which has all the best practices to create libraries and components for remotion.
-
-## See also
-
-- [NPM Kiosk](https://remotion.pro/npm-kiosk) to sell your npm package
-- [Remotion Store](https://remotion.pro/) to list your package for sale
diff --git a/packages/docs/docs/creating-a-library.md b/packages/docs/docs/creating-a-library.md
index 31d6ffd06f..b986591d11 100644
--- a/packages/docs/docs/creating-a-library.md
+++ b/packages/docs/docs/creating-a-library.md
@@ -1,10 +1,26 @@
---
image: /generated/articles-docs-creating-a-library.png
-id: creating-a-library
-title: Create a library/component pack for Remotion
+id: authoring-packages
+title: Authoring a Remotion library
+sidebar_label: Authoring a library
crumb: "How to"
---
-[Remotion's library starter template](https://github.com/remotion-dev/library-template/) is the recommended way to get to speed with building packages and components for the remotion ecosystem.
+Authoring a Remotion library works the same as authoring a normal React library. Usually, it is being published to GitHub and NPM.
-Remotion's library starter template is the official turborepo-based monorepo designed to be be easily cloned and contains scripts to publish, bundle, prettify, and so on. It has example repository with good defaults, and related docs.
+## Starter template
+
+[Remotion's library starter template](https://github.com/remotion-dev/library-starter/) is the recommended way to create a library or a component to be used with Remotion. It:
+
+- correctly packages your library as ESM + CJS
+- has an Remotion Studio instance built in for testing your library
+- correctly defines Remotion as a peer dependency
+- has TypeScript, ESLint and Turborepo configured
+
+## Publishing
+
+You have three options to publish your library:
+
+- **Publishing it for free to NPM**: The default for the starter template.
+- **Selling it yourself via the NPM Kiosk**: See [NPM Kiosk](https://remotion.pro/npm-kiosk) for more info.
+- **Apply to be listed in the [Remotion Store](https://www.remotion.pro/store)**: E-Mail [[email protected]](mailto:[email protected]) to pitch.
diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.js
index bb49e379c4..ed2862a0a2 100644
--- a/packages/docs/sidebars.js
+++ b/packages/docs/sidebars.js
@@ -459,7 +459,7 @@ module.exports = {
"overlay",
"docker",
"javascript",
- "creating-a-library",
+ "authoring-packages",
],
},
diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.ts
index 058e30812c..1ce727a8c8 100644
--- a/packages/docs/src/data/articles.ts
+++ b/packages/docs/src/data/articles.ts
@@ -538,6 +538,13 @@ export const articles = [
compId: "articles-docs-contributing-rust",
crumb: "Contributing",
},
+ {
+ id: "authoring-packages",
+ title: "Authoring a Remotion library",
+ relativePath: "docs/creating-a-library.md",
+ compId: "articles-docs-creating-a-library",
+ crumb: "How to",
+ },
{
id: "data-fetching",
title: "Data fetching",
diff --git a/packages/docs/static/generated/articles-docs-creating-a-library.png b/packages/docs/static/generated/articles-docs-creating-a-library.png
new file mode 100644
index 0000000000..283a1b7bab
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-creating-a-library.png differ