Skip to content

Adding new media hosts

larsjohnsen edited this page May 31, 2019 · 4 revisions

So you want to add a new media hosting upload service to RES? Great, here's what you do. First, make sure you meet the requirements:

  1. You have a public API that is rate-limited per-user, rather than per-application (or you can provide an unlimited API key)
  2. Files hosted on your website have RES expando support (or native Reddit expando support)
  3. Users who click links to your files on Reddit can view them in the browser (rather than triggering a download)

Sounds good? Great, here's what you do. First, make sure you have a GitHub account and are familiar with git and the GitHub pull request workflow. Fork RES and get started by...

Adding your host file

Copy the example host to lib/modules/hosts/yourwebsite.js.

You are encouraged to read through the code for other hosts in lib/modules/hosts/ for reference.

Submit your pull request

That's all you have to do! Test it and submit a pull request.