Skip to content

🎥 Make videos programmatically with React

contribution guide for implementing a new feature

Jonny Burger261f01445391
diff --git a/packages/docs/docs/contributing/index.md b/packages/docs/docs/contributing/index.md
new file mode 100644
index 0000000000..adf1902c62
--- /dev/null
+++ b/packages/docs/docs/contributing/index.md
@@ -0,0 +1,29 @@
+---
+title: Implementing a new feature
+---
+
+We are happy to accept contributions to the Remotion project that implement new features.
+
+## Setup
+
+See the [CONTRIBUTING.md](https://github.com/remotion-dev/remotion/blob/main/CONTRIBUTING.md) file for instructions on how to set up the project.
+
+## What's important to us
+
+- **Planning**: Signal beforehand that you would like to propose the feature by opening an issue and mentioning that you would like to work on it.
+ This gives us the chance to comment on whether we like the feature and lets us discuss the architecture.
+- **Generic:** The feature should be as unopinionated as possible. Instead of making decisions that are specific to your usecase, try to make the feature as generic as possible so that it can be used by everyone.
+- **Size**: The feature should not bloat lightweight packages by adding dependencies that can be avoided. Consider if the feature should be a new package in a monorepo if there are a lot of dependencies that are not needed by everyone.
+- **Documentation:** The feature should be documented and the documentation should have the same level of quality as the rest docs.
+
+## Technical standards
+
+- **TypeScript or Rust**: The code should be written in one of these two languages.
+- **Tests**: Add tests if you think it makes sense.
+- **Forward-compatibility**: Be mindful of how the feature might evolve in the future. Using objects in the input and output of an API makes it easier to add new properties in the future.
+- **Backwards-compatibility**: Your feature cannot break existing code if Remotion is upgraded, unless the feature lands in a major version.
+- **Naming conventions**: Use `camelCase` for variables. If the API interfaces with numeric values, the unit should be included. For example `durationInFrames` instead of `duration` or `timeoutInMilliseconds` instead of `timeout`.
+
+## Communicate with us
+
+Use the `#development` channel on [Discord](https://remotion.dev/discord) to quickly ask questions and get feedback.
diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.js
index 5a28217aca..3d89d6ae7b 100644
--- a/packages/docs/sidebars.js
+++ b/packages/docs/sidebars.js
@@ -499,6 +499,11 @@ module.exports = {
"miscellaneous/changing-temp-dir",
],
},
+ {
+ type: "category",
+ label: "Contributing",
+ items: ["contributing/index"],
+ },
"license",
],
};