Thank you for considering contributing to the oEmbed! Your help is essential for keeping the provider registry up-to-date and the project healthy.
This document provides a set of guidelines for contributing to this repository.
There are many ways to contribute to the project, and we appreciate all of them.
- Reporting Bugs: If you find a bug in the website or the validation scripts, please open a bug report.
- Suggesting Enhancements: If you have an idea for a new feature or an improvement to the project, please open a feature request.
- Adding New Providers: This is the most common way to contribute! If you know of an oEmbed provider that is not yet in our registry, please submit a provider request.
- Pull Requests: If you're able to fix a bug or implement a feature yourself, we welcome pull requests.
To add a new provider to the live registry, please follow these steps:
-
Create a New File: Create a new
.ymlfile in the/providersdirectory. The filename should be the provider's name in lowercase (e.g.,provider.yml). -
Fill out the Details: The YAML file must contain the provider's information. Use the following template:
- provider_name: Example Provider provider_url: https://www.example.com/ endpoints: - schemes: - https://www.example.com/media/* - http://example.com/photos/* url: https://www.example.com/oembed discovery: true example_urls: - https://www.example.com/oembed?url=https%3A%2F%2Fwww.example.com%2Fmedia%2F123 - https://www.example.com/oembed?url=http%3A%2F%2Fexample.com%2Fphotos%2Fabc
-
Provide Example URLs: The
example_urlsare critical. Our automated GitHub Action uses these URLs to continuously validate that the provider's endpoint is working correctly. Please provide at least one full, working example URL. -
Submit a Pull Request: Once you have created your new
.ymlfile, submit it as a pull request. The validation workflow will automatically run and test your new provider.
- Create a new branch for your changes (
git checkout -b your-branch-name). - Make your changes and commit them with a clear, descriptive message.
- Push your branch to your fork on GitHub.
- Open a pull request to the
masterbranch of the original repository. - Provide a clear title and description for your pull request, explaining the "what" and "why" of your changes.
- The automated workflows will run. Make sure all checks pass.
Thank you for your contribution!