~/t/g/streaming $

Stremio add-ons missing in Jellyfin apps? Set up Rill

gist Deploy Rill to your free Cloudflare account, paste your add-on links into it, then sign in from any Jellyfin app as if it were a Jellyfin server.

contents
  1. Which copy of Rill
  2. What you need
  3. Step 1: Make two secrets
  4. Step 2: Deploy to your Cloudflare account
  5. Step 3: Open your Rill address
  6. Step 4: Claim it
  7. Step 5: Add your add-ons
  8. Step 6: Choose your rows
  9. Step 7: Sign in from your Jellyfin app
  10. Keeping it running

If your Stremio add-ons do not appear in Infuse or Jellyfin apps, use Rill on your Cloudflare account to present their catalogs as a Jellyfin library.

There’s no computer to leave on at home. It runs on Cloudflare’s free plan, and you own every piece of it: the code sits in your GitHub account, and the server and its data sit in your Cloudflare account.

Rill doesn’t come with any add-ons. You bring the ones you’re allowed to use.

Which copy of Rill

Rill is an open-source project by mrtxiv. When I set it up for myself, a security review found problems I didn’t want on a server that holds my add-on keys:

  • Add-on artwork could be an SVG file that takes over the settings page.
  • Saved add-on keys were stored in a form anyone with the link could reverse.
  • Nothing slowed down password guessing.
  • Each deploy pulled the newest upstream code without anyone reviewing it.

This guide uses a hardened copy that fixes those. It’s the same Rill with the changes listed in its HARDENING.md, under the same MIT license. One gap is still open, and that file says so: Cloudflare can’t pin a checked DNS answer, so an add-on whose owner controls its DNS could still slip past the address checks.

What you need

  • A free Cloudflare account
  • A free GitHub account
  • Terminal on a Mac or Linux machine, for two commands
  • A Jellyfin app: Infuse, Swiftfin or Jellyfin
  • The manifest links of the Stremio add-ons you want. They end in /manifest.json.

It takes about 15 minutes.

Step 1: Make two secrets

Run both commands in Terminal and save the random strings in your password manager. You’ll need both in step 2, and the first again if you move Rill.

openssl rand -base64 32
openssl rand -hex 16

The first is your data key (RILL_DATA_KEY). Rill encrypts your saved add-on keys with it. If it’s lost or changed, Rill can’t read them and you’ll have to enter them again.

The second is your setup token (RILL_SETUP_TOKEN), a one-time code that proves you’re the owner the first time you open Rill. Without it, anyone who found the address first could claim your server.

Step 2: Deploy to your Cloudflare account

Open the hardened Rill page on GitHub and press Deploy to Cloudflare.

  1. Sign in to Cloudflare and pick your account.
  2. Connect GitHub when asked, and allow Cloudflare Workers and Pages. Cloudflare copies Rill into a new repository in your GitHub account; that copy is the code your server runs.
  3. Keep the suggested names for the Worker, the database and the queue, or pick your own. The database binding must stay DB.
  4. Paste the data key into RILL_DATA_KEY and the setup token into RILL_SETUP_TOKEN.
  5. Press Deploy and wait for it to finish. It takes a couple of minutes, because the build runs Rill’s tests before anything goes live.

Cloudflare creates the database and the background queue for you. There’s no SQL to import.

Step 3: Open your Rill address

In the Cloudflare dashboard, go to Workers & Pages and select your Worker. Its address is under Settings › Domains & Routes and looks like https://rill.your-name.workers.dev. Open it and bookmark it.

You don’t need a domain name. The workers.dev address works everywhere.

Step 4: Claim it

The first page asks for the setup token and a new account.

Rill's first page: a Provisioning token field above the Rill logo, then Create your account with Username, Password and Confirm password fields and a Create account button
Step 4: paste the setup token into Provisioning token, then make your account.
  1. Paste the setup token from step 1 into Provisioning token.
  2. Choose a username and a password of at least 8 characters. This account is only for Rill; it isn’t your Cloudflare or GitHub login. Your Jellyfin apps will sign in with it.
  3. Press Create account.

Step 5: Add your add-ons

Open the Add-ons tab, paste a manifest link into Manifest link, and press Add add-on. To add several at once, put each link on its own line. Leave Use for on Detect automatically.

Rill's Add-ons tab with a manifest link pasted into the Manifest link box, Use for set to Detect automatically, and the Add add-on button
Step 5: paste the add-on's manifest link and press Add add-on.

Rill lists what the add-on provides. Cinemeta, Stremio’s own catalog and metadata add-on, provides catalogs and metadata but no streams.

The Added add-ons list showing Cinemeta from v3-cinemeta.strem.io, tagged Catalogs and Metadata, with Check and Remove buttons
Each added add-on shows what Rill will use it for. Check tests the connection.

If an add-on needs its own settings or an account, configure it on the add-on’s own site first, then paste the manifest link it gives you. Rill encrypts any keys inside that link and never shows them again.

Step 6: Choose your rows

The Catalogs tab lists every catalog your add-ons offer. Each one becomes a row or library in your Jellyfin app. Turn off the ones you don’t want, and use the arrows to put the rest in order.

Rill's Catalogs tab listing Cinemeta's Popular, New and Featured catalogs for movies and series, each with an on switch and up and down arrows
Step 6: switch catalogs on or off and order them with the arrows.

Step 7: Sign in from your Jellyfin app

Open the Connect tab. It shows the server address to use and the username to sign in with.

Rill's Connect tab: a Jellyfin server box showing https://rill.your-name.workers.dev with a Copy button and the line Sign in as "me" with your password
Step 7: copy this address into your Jellyfin app.

Add a Jellyfin server in Jellyfin or Swiftfin. In Infuse, use Add Files › Jellyfin.

Paste the address, then sign in with your Rill username and password. Your add-ons’ catalogs show up as the server’s libraries.

Keeping it running

It costs nothing on the free plan. Workers Free covers 100,000 requests a day. Rill’s background queue fits inside Cloudflare Queues’ free 10,000 operations a day, and its once-a-minute background timer adds about 1,440 runs a day.

It never updates itself. Nothing new runs on your server unless you put it in your GitHub copy. To take a newer version, read what changed and merge it into your copy; Cloudflare then rebuilds and deploys it. The checklist at the end of HARDENING.md lists what to look for before you merge anything from upstream.

Keep the data key. If you redeploy to a new account or rebuild from scratch, set the same RILL_DATA_KEY, or you’ll have to enter your add-on keys again.

If the password leaks, change it. A new password signs every app and browser out at once.

../streaming/ every Streaming guide