Skip to content

🎥 Make videos programmatically with React

finish

Jonny Burger98147ced443e
diff --git a/packages/create-video/src/list-of-remotion-packages.ts b/packages/create-video/src/list-of-remotion-packages.ts
index e6592207b7..976095c890 100644
--- a/packages/create-video/src/list-of-remotion-packages.ts
+++ b/packages/create-video/src/list-of-remotion-packages.ts
@@ -16,6 +16,7 @@ export const listOfRemotionPackages = [
'@remotion/noise',
'@remotion/paths',
'@remotion/babel-loader',
+ '@remotion/licensing',
'@remotion/lambda',
'@remotion/player',
'@remotion/preload',
diff --git a/packages/docs/docs/licensing/index.mdx b/packages/docs/docs/licensing/index.mdx
index a457e71fef..ce92fc4ed2 100644
--- a/packages/docs/docs/licensing/index.mdx
+++ b/packages/docs/docs/licensing/index.mdx
@@ -2,6 +2,7 @@
image: /generated/articles-docs-licensing-index.png
sidebar_label: Overview
title: '@remotion/licensing'
+crumb: API
---
_available from v4.0.237_
@@ -13,10 +14,38 @@ This package allows holders of the [company license](https://remotion.pro/licens
Also, it offers an API to programmatically check the usage in order to implement spend controls.
+### How do I use this package?
+
+On your company license dashboard on [remotion.pro](https://remotion.pro), you can find your public and secret API key.
+You can use the public API key to register usage points and the secret API key to get the current usage.
+
+### Do I need to use this package?
+
+**For Remotion, the framework**: It is voluntary to use this package.
+If you are not eligible for the free license, you need to get a company license and are required to keep your seat count up to date to cover all your renders.
+
+This package makes it easier to count the number of Remotion renders without having to set up any infrastructure yourself.
+
+**For [`@remotion/webcodecs`](/docs/webcodecs)**: This package is a dependency and conversions will trigger a call to [`registerUsagePoint()`](/docs/licensing/register-usage-point) automatically.
+
+### Can I use this package to count renders if I am eligible for the free license?
+
+Yes, you may still create a project on [remotion.pro](https://remotion.pro) and use this package to count renders and WebCodecs conversions.
+You do not have to pay anything for the renders. This package is only used to count the number of renders, not for billing.
+
+### Will I get charged based on the usage?
+
+This package currently only counts renders, it does not bill you based on them.
+If you are a company license holder, you need to manually adjust your seat count on [remotion.pro](https://remotion.pro) to cover all your renders.
+
+However, the plan is to introduce a system that automatically bills you based on the usage, eliminating the need for you to manually adjust the seat count.
+
## Installation
<Installation pkg="@remotion/licensing" />
+## API
+
import {TableOfContents} from './TableOfContents';
<TableOfContents />
diff --git a/packages/docs/docs/licensing/register-usage-point.mdx b/packages/docs/docs/licensing/register-usage-point.mdx
index 6190f37414..5aa66b13d5 100644
--- a/packages/docs/docs/licensing/register-usage-point.mdx
+++ b/packages/docs/docs/licensing/register-usage-point.mdx
@@ -53,6 +53,21 @@ If the host is `localhost` or similar, it will be registered as non-billable.
Whether the event was successful or not.
If the event was not successful, it will be registered as a non-billable event.
+## Return value
+
+A promise that resolves when the event was successfully registered.
+
+The resolved object contains two properties:
+
+### `billable`
+
+Whether this was an event that should be billed.
+
+### `classification`
+
+Either, `"billable"`, `"development"` or `"failed"`.
+You do not have to pay for failed renders or renders doing development.
+
## See also
- [`@remotion/licensing`](/docs/licensing)
diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.ts
index 4d9e37ada1..cb05d80a7c 100644
--- a/packages/docs/src/data/articles.ts
+++ b/packages/docs/src/data/articles.ts
@@ -3464,7 +3464,7 @@ export const articles = [
title: '@remotion/licensing',
relativePath: 'docs/licensing/index.mdx',
compId: 'articles-docs-licensing-index',
- crumb: null,
+ crumb: 'API',
},
{
id: 'react-18',
diff --git a/packages/docs/static/generated/articles-docs-licensing-index.png b/packages/docs/static/generated/articles-docs-licensing-index.png
index c5b80c278b..0f0c0f9b82 100644
Binary files a/packages/docs/static/generated/articles-docs-licensing-index.png and b/packages/docs/static/generated/articles-docs-licensing-index.png differ
diff --git a/packages/licensing/eslint.config.mjs b/packages/licensing/eslint.config.mjs
new file mode 100644
index 0000000000..04fd4fac11
--- /dev/null
+++ b/packages/licensing/eslint.config.mjs
@@ -0,0 +1,7 @@
+import {remotionFlatConfig} from '@remotion/eslint-config-internal';
+
+const config = remotionFlatConfig({react: false});
+
+export default {
+ ...config,
+};