XRDB, eXtended Ratings DataBase, generates poster, backdrop, thumbnail, and logo artwork with dynamic ratings, quality badges, and export ready integrations.
Note
XRDB, eXtended Ratings DataBase, is built by IbbyLabs for artwork workflows, media tools, and addon integrations.
Tip
Changelog: read the full changelog or jump straight to the latest entry.
Current priorities for XRDB, eXtended Ratings DataBase:
- Better quality badges from more providers, not only one source.
- Smarter fallback so images still load when one provider is slow or down.
- UUID account saves with password login so settings can be restored on any device.
- Cache warming for startup and background updates so popular content is ready faster.
- Poster cache warming controls to reduce first load delay.
- More control for output sizes for poster backdrop and logo.
- Ongoing speed and reliability work for public and private setups.
- Release work in clear stages.
- Use safe rollout switches for risky changes.
- Verify both movie and series flows before release.
- Track speed and error rates after each stage.
- Keep rollback paths simple.
git clone https://github.com/IbbyLabs/XRDB
cd XRDBUse Node 22.x locally. The repo now includes .nvmrc and .node-version so native packages such as better-sqlite3 stay aligned with CI and release scripts.
- Install dependencies:
sudo npm install - Build:
npm run build - Start the app:
npm run start - App available at
http://localhost:3000
XRDB is designed with a Bring Your Own Key (BYOK) stateless architecture. This means that the XRDB server itself does not permanently store or centrally manage your TMDB, MDBList, or optional Fanart API keys. Instead:
- Keys are saved locally in your browser's
localStoragewhen using the configurator UI. - Keys are embedded directly into your generated URLs (
tmdbKey=...&mdblistKey=...&fanartKey=...) and Addon proxy Base64 configurations when present. - The server solely reads these keys from incoming requests to fetch source addon metadata on the fly.
This intentional design allows you to host public XRDB proxy instances without paying for massive shared API usage, as every connected addon or user brings their own API key and rate limits. The visibility of keys in URLs and the configurator UI is expected behavior.
The configurator includes an AIOMetadata export section that generates ready to use URL patterns for custom art override fields in AIOMetadata compatible addons. The Hide credentials toggle masks exported AIOMetadata patterns with placeholders without changing live XRDB request URLs. The Poster ID source selector controls whether poster URLs use auto mode (typed TMDB IDs for the broadest coverage), explicit TMDB, or IMDb IDs for compatibility. Background and logo patterns always use type aware TMDB IDs, and episode thumbnails use the selected episode ID mode with season and episode placeholders plus their own thumbnail scoped ratings, artwork, text, and layout settings.
Optional server side client ids can extend a few providers beyond the BYOK flow. XRDB_MAL_CLIENT_ID enables the official MyAnimeList API path for direct myanimelist ratings, XRDB_TRAKT_CLIENT_ID enables direct trakt ratings, and SIMKL_CLIENT_ID (or XRDB_SIMKL_CLIENT_ID) enables direct simkl ratings server wide. A user supplied simklClientId query parameter takes precedence over the server key for SIMKL. When the MAL client id is not configured, XRDB falls back to Jikan for direct myanimelist lookups before falling back to MDBList whenever a mdblistKey is present. Fanart backed artwork can also use a server fallback key from XRDB_FANART_API_KEY or FANART_API_KEY, but a user supplied fanartKey is preferred when available. OMDb poster lookups use the server side OMDB_KEY by default and also accept OMDB_API_KEY or XRDB_OMDB_API_KEY.
For simkl, XRDB resolves a Simkl item id using https://api.simkl.com/redirect and then loads the summary from https://api.simkl.com/movies/{id}, https://api.simkl.com/tv/{id}, or https://api.simkl.com/anime/{id} based on media type hints. Every Simkl request includes client_id, app-name, and app-version query parameters, plus simkl-api-key and a browser style User-Agent header.
These are live requests against production so readers can see current poster, backdrop, and logo output directly inside GitHub.
The gallery is intended to use the optional server side preview env vars XRDB_README_PREVIEW_TMDB_KEY and XRDB_README_PREVIEW_MDBLIST_KEY so the README does not need to expose a raw API key.
Each preview URL includes a cb cache buster token. The release flow refreshes those tokens automatically so GitHub fetches a fresh set of live previews on each tagged release.
| The Boys Glass ratings, stream badges, original text |
Dune Part Two Square ratings, clean text, compact layout |
Attack on Titan Japanese text, anime ratings, poster stack |
| Game of Thrones French backdrop, right side ratings |
Stranger Things Square ratings, stream badges, right side stack |
| The Boys Dark canvas, glass ratings, quality badges |
Attack on Titan Japanese logo with anime ratings and quality badges |
These static comparison boards highlight the newer rendering controls that are easier to evaluate side by side than in a single live card. They cover logoBackground, logoRatingsMax, posterQualityBadgesMax, backdropQualityBadgesMax, and a few layout and style combinations from the local March 27, 2026 build.
The current quality badge behavior uses local asset based artwork for 4K, Bluray, HDR10, Dolby Vision, and Dolby Atmos. Certification badges also include a small AGE label above the rating so age ratings read more clearly at a glance.
Transparent provider icons now stay transparent across every badge style. In glass, icons with transparency such as Kitsu render on a neutral inner chip with an accent ring so the accent color does not bleed through the icon cutouts.
The repo now ships two Docker entrypoints:
- compose.yaml is the VPS stack file. It matches the style used by popular Traefik based stacks much more closely: prebuilt GHCR image,
env_file: .env,expose, Traefik labels, profiles, and a shared external Docker network. - local-compose.yaml is the local source build file. It keeps the simpler direct port mapping path for local testing.
Sources:
- https://github.com/Viren070/docker-compose-template
- https://raw.githubusercontent.com/Viren070/docker-compose-template/main/apps/aiometadata/compose.yaml
- https://raw.githubusercontent.com/Viren070/docker-compose-template/main/apps/aiostreams/compose.yaml
- https://raw.githubusercontent.com/Viren070/docker-compose-template/main/apps/stremio-ai-search/compose.yaml
- https://raw.githubusercontent.com/Viren070/docker-compose-template/main/apps/mediaflow-proxy/compose.yaml
Pushing a version tag that matches v* now starts two independent workflows:
- publishes a GitHub release with notes sourced from the matching changelog entry
- pushes a multi architecture container image to GHCR as
ghcr.io/ibbylabs/xrdb
The GitHub release is no longer blocked on the Docker publish job finishing.
Pull examples:
docker pull ghcr.io/ibbylabs/xrdb:latest
docker pull ghcr.io/ibbylabs/xrdb:v1.0.0Release flow:
npm run release:patchThe release flow also bumps FINAL_IMAGE_RENDERER_CACHE_VERSION automatically so each new release invalidates stale final image renders on first request.
Release automation now regenerates every tracked README doc image and CI fails if the checked in doc assets drift from the generator output.
Store XRDB_README_PREVIEW_TMDB_KEY and XRDB_README_PREVIEW_MDBLIST_KEY in local .env or .env.local if you want the release/doc asset scripts to pick them up automatically. Shell exported vars still win if both are set.
If the GHCR package already existed before it was linked to this repository, open the package in GitHub and:
- connect it to
IbbyLabs/XRDB - allow the package to follow repository permissions
- set visibility to public if you want anonymous pulls
For high performance (on the fly image rendering), a server with a strong CPU and plenty of RAM is recommended.
Minimum recommended:
- CPU: 4 vCPU
- RAM: 4 GB
Local source build:
npm run docker:upExplicit local source build:
npm run docker:up:localVPS stack start:
npm run docker:up:stackThe VPS stack file expects Traefik or another external reverse proxy in front of it. It uses the published image and does not bind a public port directly.
If you use a Traefik style stack, set:
XRDB_HOSTNAME=xrdb.example.com
DOCKER_NETWORK=aio_default
DOCKER_NETWORK_EXTERNAL=true
DOCKER_DATA_DIR=/opt/docker/dataThat makes the VPS file mount /opt/docker/data/xrdb into /app/data, which is closer to the template repo shape.
If you route XRDB through gluetun in your own stack, set:
HTTP_PROXY=http://gluetun:8080
HTTPS_PROXY=http://gluetun:8080The repo compose file does not hard wire a gluetun dependency because that service usually lives in the surrounding VPS stack instead of the app repo itself.
Local custom port:
XRDB_PORT=4000 docker compose -f local-compose.yaml up -d --buildIf you run a shared or public XRDB host, start from a lighter profile before adding more providers or Torrentio badges. This keeps cold renders and Stremio catalog bursts predictable.
Host env preset:
XRDB_SHARP_CONCURRENCY=4
XRDB_SHARP_CACHE_MEMORY_MB=512
XRDB_SHARP_CACHE_ITEMS=2000
XRDB_SHARP_CACHE_FILES=20000
XRDB_TORRENTIO_CACHE_TTL_MS=43200000
XRDB_TORRENTIO_CONCURRENCY=3Recommended proxy or addon settings:
| Setting | Recommended Value | Why |
|---|---|---|
posterRatings |
imdb,tmdb,mdblist |
Good coverage without fetching a long tail of providers on every poster. |
backdropRatings |
imdb,tmdb,mdblist |
Same tradeoff as posters. |
logoRatings |
imdb,tmdb |
Logos usually benefit less from a dense rating stack. |
posterStreamBadges |
off |
Torrentio calls are one of the largest latency spikes on public instances. |
backdropStreamBadges |
off |
Same reason as posters. |
translateMeta |
true |
Keeps proxy metadata improvements on. |
translateMetaMode |
fill-missing |
Conservative proxy behavior that usually helps more than it hurts. |
debugMetaTranslation |
false |
Debug provenance is useful for troubleshooting, but not for normal public traffic. |
If you want the absolute fastest public profile, drop mdblist too and keep
the ratings list to imdb,tmdb.
Main image endpoint:
GET /{type}/{id}.jpg?ratings={providers}&lang={lang}&ratingStyle={style}...
Episode thumbnail endpoint:
GET /thumbnail/{id}/S{season}E{episode}.jpg?thumbnailRatings=tmdb,imdb&lang={lang}...
Response format note:
- Poster and backdrop responses are returned as JPEG.
- Logo requests keep the
.jpgroute shape but may return PNG when transparency is preserved.
- Poster with IMDb and TMDB:
/poster/tt0133093.jpg?ratings=imdb,tmdb&lang=en - Plain backdrop:
/backdrop/tmdb:movie:603.jpg?ratings=mdblist&style=plain&backdropRatingsLayout=right vertical - Backdrop with Bottom Row:
/backdrop/tmdb:tv:1399.jpg?backdropRatings=tmdb,imdb&backdropBottomRatingsRow=true&lang=en - Episode thumbnail with XRDBID:
/thumbnail/xrdbid:tt0944947/S01E01.jpg?thumbnailRatings=tmdb,imdb&lang=en
Episode thumbnails use the dedicated /thumbnail/{id}/S{season}E{episode}.jpg route. They keep their own thumbnail scoped controls for ratings, style, presentation, artwork source, episode artwork mode, image text, layout, badge sizing, quality badges, and side stack placement. thumbnailRatings defaults to tmdb,imdb.
| Parameter | Description | Supported Values | Default |
|---|---|---|---|
type |
Image type (Path) | poster, backdrop, logo (thumbnail uses its own route) |
- |
id |
Media ID (Path) | IMDb (tt...), TMDB (tmdb:id, tmdb:movie:id, tmdb:tv:id), Kitsu (kitsu:id), anime IDs such as anilist:123, mal:456, tvdb:12345, or anidb:6789 |
- |
tmdbIdScope |
TMDB ID collision handling mode | soft, strict |
soft |
lang |
Image language | Any TMDB ISO 639-1 code (e.g. it, en, es, fr, de, ru, ja) |
en |
genreBadge |
Genre badge mode (global fallback) | off, text, icon, both |
off |
posterGenreBadge |
Poster genre badge mode | off, text, icon, both |
off |
backdropGenreBadge |
Backdrop genre badge mode | off, text, icon, both |
off |
logoGenreBadge |
Logo genre badge mode | off, text, icon, both |
off |
genreBadgeStyle |
Genre badge style (global fallback) | glass, square, plain |
glass |
posterGenreBadgeStyle |
Poster genre badge style | glass, square, plain |
glass |
backdropGenreBadgeStyle |
Backdrop genre badge style | glass, square, plain |
glass |
logoGenreBadgeStyle |
Logo genre badge style | glass, square, plain |
glass |
genreBadgePosition |
Genre badge anchor (global fallback) | topLeft, topCenter, topRight, bottomLeft, bottomCenter, bottomRight |
topLeft |
posterGenreBadgePosition |
Poster genre badge anchor | topLeft, topCenter, topRight, bottomLeft, bottomCenter, bottomRight |
topLeft |
backdropGenreBadgePosition |
Backdrop genre badge anchor | topLeft, topCenter, topRight, bottomLeft, bottomCenter, bottomRight |
topLeft |
logoGenreBadgePosition |
Logo genre badge anchor | topLeft, topCenter, topRight, bottomLeft, bottomCenter, bottomRight |
topLeft |
genreBadgeScale |
Genre badge scale (global fallback) | Number (70-200) |
100 |
posterGenreBadgeScale |
Poster genre badge scale | Number (70-200) |
100 |
backdropGenreBadgeScale |
Backdrop genre badge scale | Number (70-200) |
100 |
logoGenreBadgeScale |
Logo genre badge scale | Number (70-200) |
100 |
streamBadges |
Quality badges via Torrentio (global fallback) | auto, on, off |
auto |
posterStreamBadges |
Poster quality badges | auto, on, off |
auto |
backdropStreamBadges |
Backdrop quality badges | auto, on, off |
auto |
qualityBadgesSide |
Quality badges side (poster top bottom layout only) |
left, right |
left |
posterQualityBadgesPosition |
Quality badges side for poster top or bottom layouts |
auto, left, right |
auto |
qualityBadgesStyle |
Quality badges style (global fallback) | glass, square, plain, media, silver |
glass |
posterQualityBadgesStyle |
Poster quality badges style | glass, square, plain, media, silver |
glass |
backdropQualityBadgesStyle |
Backdrop quality badges style | glass, square, plain, media, silver |
glass |
posterQualityBadgeScale |
Poster quality badge scale | Number (70-200) |
100 |
backdropQualityBadgeScale |
Backdrop quality badge scale | Number (70-200) |
100 |
thumbnailQualityBadgeScale |
Thumbnail quality badge scale | Number (70-200) |
100 |
logoQualityBadgeScale |
Logo quality badge scale | Number (70-200) |
100 |
posterQualityBadgesMax |
Poster quality badge limit | Number (1-20) | auto |
backdropQualityBadgesMax |
Backdrop quality badge limit | Number (1-20) | auto |
ratingPresentation |
Rating presentation mode (global fallback) | standard, minimal, average, dual, blockbuster, none |
standard |
aggregateRatingSource |
Aggregate source for minimal and average (global fallback) |
overall, critics, audience |
overall |
aggregateAccentMode |
Aggregate accent source | source, genre, custom |
source |
aggregateAccentColor |
Aggregate accent color when aggregateAccentMode=custom |
Hex color | #a78bfa |
aggregateAccentBarOffset |
Average badge accent bar offset | Number (-12 to 12) | 0 |
ratingXOffsetPillGlass |
X offset for stacked Pill Glass badge layouts | Number (-320 to 320) | 0 |
ratingYOffsetPillGlass |
Y offset for stacked Pill Glass badge layouts | Number (-320 to 320) | 0 |
ratingXOffsetSquare |
X offset for stacked Square Dark badge layouts | Number (-320 to 320) | 0 |
ratingYOffsetSquare |
Y offset for stacked Square Dark badge layouts | Number (-320 to 320) | 0 |
ratings |
Rating providers (global fallback) | tmdb, mdblist, imdb, allocine, allocinepress, tomatoes, tomatoesaudience, letterboxd, metacritic, metacriticuser, trakt, simkl, rogerebert, myanimelist, anilist, kitsu |
all |
posterRatings |
Poster rating providers | tmdb, mdblist, imdb, allocine, allocinepress, tomatoes, tomatoesaudience, letterboxd, metacritic, metacriticuser, trakt, simkl, rogerebert, myanimelist, anilist, kitsu |
all |
backdropRatings |
Backdrop rating providers | tmdb, mdblist, imdb, allocine, allocinepress, tomatoes, tomatoesaudience, letterboxd, metacritic, metacriticuser, trakt, simkl, rogerebert, myanimelist, anilist, kitsu |
all |
thumbnailRatings |
Episode thumbnail rating providers | tmdb, imdb |
tmdb,imdb |
logoRatings |
Logo rating providers | tmdb, mdblist, imdb, allocine, allocinepress, tomatoes, tomatoesaudience, letterboxd, metacritic, metacriticuser, trakt, simkl, rogerebert, myanimelist, anilist, kitsu |
all |
ratingValueMode |
Rating display scaling | native, normalized, normalized100 |
native |
ratingStyle (or posterRatingStyle / backdropRatingStyle / thumbnailRatingStyle / logoRatingStyle, or style legacy) |
Badge style | glass (Pill), square (Dark), plain (No BG), stacked |
glass (poster/backdrop/thumbnail), plain (logo) |
tmdbKey |
TMDB v3 API Key (Stateless) | String (e.g. your_key) |
Required |
mdblistKey |
MDBList API Key (Stateless) | String (e.g. your_key) |
Required for MDBList backed ratings |
fanartKey |
Fanart API Key for fanart poster, backdrop, and logo sources | String (e.g. your_key) |
Server fallback when available |
simklClientId |
SIMKL client id for direct SIMKL ratings | String (e.g. your_client_id) |
None |
imageText |
Image text (global fallback for poster/backdrop/thumbnail) | original, clean, alternative, random |
original (poster), clean (backdrop/thumbnail) |
posterArtworkSource |
Poster artwork source | tmdb, fanart, cinemeta, omdb, random |
tmdb |
backdropArtworkSource |
Backdrop artwork source | tmdb, fanart, cinemeta, random |
tmdb |
posterRatingsLayout |
Poster layout | top, bottom, left, right, top bottom, left right |
top bottom |
posterRatingsMaxPerSide |
Max badges per side | Number (1+) | auto |
backdropRatingsLayout |
Backdrop layout | center, right, right vertical |
center |
backdropBottomRatingsRow |
Force backdrop ratings into one Bottom Row | true, false |
false |
logoRatingsMax |
Logo badge limit | Number (1+) | auto |
logoBottomRatingsRow |
Force logo ratings into one Bottom Row | true, false |
false |
logoBackground |
Logo canvas background | transparent, dark |
transparent |
logoArtworkSource |
Logo artwork source | tmdb, fanart, cinemeta, random |
tmdb |
Thumbnail scoped query params mirror the configurator controls and keep thumbnail output independent from backdrop output:
thumbnailGenreBadge,thumbnailGenreBadgeStyle,thumbnailGenreBadgePosition,thumbnailGenreBadgeScale,thumbnailGenreBadgeAnimeGroupingthumbnailStreamBadges,thumbnailQualityBadges,thumbnailQualityBadgesStyle,thumbnailQualityBadgesMax,thumbnailQualityBadgeScalethumbnailRatingStyle,thumbnailRatingPresentation,thumbnailAggregateRatingSource,thumbnailRatingBadgeScalethumbnailImageText,thumbnailArtworkSource,thumbnailEpisodeArtworkthumbnailRatingsLayout,thumbnailRatingsMax,thumbnailBottomRatingsRow,thumbnailSideRatingsPosition,thumbnailSideRatingsOffset
In the configurator UI, minimal is labeled as Compact Average, average is labeled as Labeled Average, and dual is labeled as Critics + Audience. The underlying query values stay minimal, average, and dual.
RPDB compatibility aliases are accepted where they map cleanly in XRDB: order/ratingOrder (rating provider order), ratingBarPos (mapped to poster/backdrop layout + side position), fontScale (mapped to rating badge scale), imageSize=verylarge (mapped to posterImageSize=4k), and textless/posterType=textless-* (mapped to clean poster text mode).
myanimelist and trakt can render directly when the server has XRDB_MAL_CLIENT_ID or XRDB_TRAKT_CLIENT_ID. Without the MAL client id, XRDB falls back to Jikan for direct myanimelist ratings. When direct lookups are unavailable, XRDB still falls back to MDBList when mdblistKey is present.
allocine and allocinepress add AlloCiné audience and press scores for movie and series titles. They render on the native /5 scale by default and still respect ratingValueMode normalization when you want everything shown on a shared /10 or /100 scale.
tmdbIdScope=soft is the default for compatibility and accepts bare tmdb:id. Set tmdbIdScope=strict to require tmdb:movie:id or tmdb:tv:id for backdrop and logo requests to avoid movie versus TV collisions.
Transparent provider icons stay transparent across glass, square, and plain. In glass, XRDB switches icons with transparency such as Kitsu to a neutral inner chip with an accent ring to avoid accent color bleed through.
Genre badges resolve from a curated family set instead of trying to icon map every TMDB genre. Strong buckets such as horror, comedy, drama, sci fi, fantasy, crime, documentary, animation, and anime render. When a title mixes drama with a stronger supported family, XRDB still prefers the more specific bucket.
fanartKey is optional. If present, XRDB uses your key first for fanart requests. If it is blank, XRDB falls back to XRDB_FANART_API_KEY or FANART_API_KEY when the server has one.
Poster sources support tmdb, fanart, cinemeta, omdb, and random. posterArtworkSource=fanart uses fanart.tv poster art for original, clean, and alternative. Original and clean use the top ranked fanart image. Alternative uses the next ranked fanart image when one exists. posterArtworkSource=cinemeta uses the MetaHub Cinemeta poster when an IMDb id is available. posterArtworkSource=omdb uses the OMDb poster when a server OMDb key and IMDb id are available. posterArtworkSource=random picks a seeded source across TMDB, fanart, Cinemeta, and OMDb when those candidates exist.
Backdrop sources support tmdb, fanart, cinemeta, and random. backdropArtworkSource=fanart uses fanart.tv moviebackground or showbackground art for original, clean, and alternative. Original and clean use the top ranked fanart image. Alternative uses the next ranked fanart image when one exists. backdropArtworkSource=cinemeta uses the MetaHub Cinemeta backdrop when an IMDb id is available. backdropArtworkSource=random picks a seeded source across TMDB, fanart, and Cinemeta when those candidates exist. Logo sources support tmdb, fanart, cinemeta, and random. logoArtworkSource=fanart uses fanart.tv HD or clear logo assets for logo output, logoArtworkSource=cinemeta uses the MetaHub Cinemeta logo when an IMDb id is available, and logoArtworkSource=random picks a seeded source across TMDB, fanart, and Cinemeta when those candidates exist.
Use backdropBottomRatingsRow=true or logoBottomRatingsRow=true to collapse those badges into one Bottom Row. When the backdrop Bottom Row is enabled, XRDB ignores the saved backdrop side layout and side offset controls for rendering and omits those inactive params from lean exports such as AIOMetadata patterns.
Future work: season aware fanart support is a strong next step for TV because fanart.tv exposes seasonposter and seasonthumb assets.
Rendered ratings keep provider native scales by default. Set ratingValueMode=normalized to convert everything to a 0 to 10 display scale, or ratingValueMode=normalized100 to convert everything to a rounded whole number out of 100. Providers that already use /10 are shown without the suffix in ten point mode, percentage sources are converted to decimal (69% -> 6.9) or whole number (69), /5 sources are doubled (4.2/5 -> 8.4) or multiplied by twenty (84), and /4 sources are multiplied by 2.5 (3.5/4 -> 8.8 or 88).
Episode thumbnails now use the episode level TMDB and IMDb ratings instead of inheriting the parent series rating stack. Keep thumbnailRatings=tmdb,imdb if you want the default episode specific pairing.
When no explicit max is set, XRDB now renders all badges that fit the layout instead of applying a fixed poster or logo badge cap. Use the max params only when you want to intentionally tighten the visible badge count.
XRDB supports multiple formats to identify media:
- IMDb:
tt0133093(standardtt+ numbers) - TMDB:
tmdb:603or explicittmdb:movie:603/tmdb:tv:1399 - Kitsu:
kitsu:1(prefixkitsu:followed by the ID) - Anime Mappings:
provider:id(e.g.anilist:123,myanimelist:456) - Episode Thumbnails:
/thumbnail/{episodeBaseId}/S01E01.jpgwhereepisodeBaseIdcan be plain IMDb,xrdbid:{imdb_id},tvdb:{tvdb_id},kitsu:{kitsu_id},anilist:{anilist_id},mal:{mal_id}, oranidb:{anidb_id}
To integrate XRDB into your addon:
- Config String: use a single
xrdbConfigstring (base64url) generated by the XRDB configurator. It containsbaseUrl,tmdbKey,mdblistKey, optionalfanartKey, the per type style/text/layout fields, and any optional overrides currently enabled. Defaults are usually omitted. - Addon UI: show ONLY the toggles to enable/disable
poster,backdrop,thumbnail,logo. No modal and no extra settings panels. - Fallback: if a type is disabled, keep the original artwork (do not call XRDB for that type).
- Decode: decode
xrdbConfig(base64url -> JSON) once and reuse it. - URL build: use
{baseUrl}/{type}/{id}.jpgfor poster, backdrop, and logo, and use{baseUrl}/thumbnail/{episodeBaseId}/S{season}E{episode}.jpgfor episode thumbnails. AddtmdbKeyandmdblistKey, then pass through any optional XRDB fields present incfgsuch asfanartKey,ratings,posterRatings,backdropRatings,thumbnailRatings,logoRatings,lang,ratingValueMode,genreBadge,genreBadgeStyle,genreBadgePosition,genreBadgeScale,posterGenreBadge,backdropGenreBadge,thumbnailGenreBadge,logoGenreBadge,posterGenreBadgeStyle,backdropGenreBadgeStyle,thumbnailGenreBadgeStyle,logoGenreBadgeStyle,posterGenreBadgePosition,backdropGenreBadgePosition,thumbnailGenreBadgePosition,logoGenreBadgePosition,posterGenreBadgeScale,backdropGenreBadgeScale,thumbnailGenreBadgeScale,logoGenreBadgeScale,streamBadges,posterStreamBadges,backdropStreamBadges,thumbnailStreamBadges,qualityBadgesSide,posterQualityBadgesPosition,qualityBadgesStyle,posterQualityBadgesStyle,backdropQualityBadgesStyle,thumbnailQualityBadgesStyle,posterQualityBadgesMax,backdropQualityBadgesMax,thumbnailQualityBadgesMax,ratingPresentation,aggregateRatingSource,ratingXOffsetPillGlass,ratingYOffsetPillGlass,ratingXOffsetSquare,ratingYOffsetSquare,posterRatingsLayout,posterRatingsMaxPerSide,backdropRatingsLayout,backdropBottomRatingsRow,thumbnailRatingsLayout,thumbnailBottomRatingsRow,thumbnailRatingsMax,thumbnailSideRatingsPosition,thumbnailSideRatingsOffset,logoRatingsMax,logoBottomRatingsRow,logoBackground,posterArtworkSource,backdropArtworkSource,thumbnailArtworkSource,thumbnailEpisodeArtwork, andlogoArtworkSource. Then apply the per type config fields:poster:posterRatingStyle,posterImageTextposter artwork source:posterArtworkSourcebackdrop:backdropRatingStyle,backdropImageTextbackdrop artwork source:backdropArtworkSourceepisode thumbnail:thumbnailRatings,thumbnailRatingStyle,thumbnailRatingPresentation,thumbnailAggregateRatingSource,thumbnailImageText,thumbnailArtworkSource,thumbnailEpisodeArtwork,thumbnailRatingsLayout,thumbnailRatingsMax,thumbnailBottomRatingsRow,thumbnailSideRatingsPosition,thumbnailSideRatingsOffset,thumbnailRatingBadgeScale,thumbnailQualityBadges,thumbnailQualityBadgesStyle,thumbnailQualityBadgesMax,thumbnailQualityBadgeScale, andthumbnailStreamBadgeslogo:logoRatingStyle,logoBackground,logoArtworkSource(omitimageText)
The generated configurator payload usually emits the per type fields and omits unchanged defaults. Global fallback params such as ratings, streamBadges, or qualityBadgesStyle are still supported if you build configs manually.
If you are using an AI agent such as Claude or ChatGPT to build an addon, copy this prompt:
Act as an expert addon developer. Implement the XRDB Stateless API in a media center addon.
--- CONFIG INPUT ---
Add a single text field called "xrdbConfig" (base64url). The user will paste it from the XRDB site after configuring there.
Do NOT hardcode API keys or base URL. Always use cfg.baseUrl from xrdbConfig.
--- DECODE ---
Node/JS: const cfg = JSON.parse(Buffer.from(xrdbConfig, 'base64url').toString('utf8'));
--- FULL API REFERENCE ---
Poster, backdrop, and logo endpoint: GET /{type}/{id}.jpg?...queryParams
Episode thumbnail endpoint: GET /thumbnail/{id}/S{season}E{episode}.jpg?...queryParams
Parameter | Values | Default
type (path) | poster, backdrop, logo | -
id (path) | IMDb (tt...), TMDB (tmdb:id / tmdb:movie:id / tmdb:tv:id), Kitsu (kitsu:id), AniList, MAL | -
tmdbIdScope | soft, strict | soft
ratings | tmdb, mdblist, imdb, allocine, allocinepress, tomatoes, | all
| tomatoesaudience, letterboxd, metacritic, metacriticuser, trakt, |
| simkl, rogerebert, myanimelist, |
| anilist, kitsu (global fallback) |
posterRatings | tmdb, mdblist, imdb, allocine, allocinepress, tomatoes, | all
| tomatoesaudience, letterboxd, metacritic, metacriticuser, trakt, |
| simkl, rogerebert, myanimelist, |
| anilist, kitsu (poster only) |
backdropRatings | tmdb, mdblist, imdb, allocine, allocinepress, tomatoes, | all
| tomatoesaudience, letterboxd, metacritic, metacriticuser, trakt, |
| simkl, rogerebert, myanimelist, |
| anilist, kitsu (backdrop only) |
thumbnailRatings | tmdb, imdb (episode thumbnail only) | tmdb,imdb
logoRatings | tmdb, mdblist, imdb, allocine, allocinepress, tomatoes, | all
| tomatoesaudience, letterboxd, metacritic, metacriticuser, trakt, |
| simkl, rogerebert, myanimelist, |
| anilist, kitsu (logo only) |
lang | Any TMDB ISO 639-1 code (en, it, fr, es, de, ja, ko, etc.) | en
genreBadge | off, text, icon, both (global fallback) | off
posterGenreBadge | off, text, icon, both (poster only) | off
backdropGenreBadge | off, text, icon, both (backdrop only) | off
logoGenreBadge | off, text, icon, both (logo only) | off
streamBadges | auto, on, off (global fallback) | auto
posterStreamBadges | auto, on, off (poster only) | auto
backdropStreamBadges | auto, on, off (backdrop only) | auto
qualityBadgesSide | left, right (poster top bottom layout only) | left
posterQualityBadgesPosition | auto, left, right (poster top or bottom only) | auto
qualityBadgesStyle | glass, square, plain, media, silver (global fallback) | glass
posterQualityBadgesStyle| glass, square, plain, media, silver (poster only) | glass
backdropQualityBadgesStyle| glass, square, plain, media, silver (backdrop only) | glass
thumbnailQualityBadgesStyle| glass, square, plain, media, silver (thumbnail only) | glass
posterQualityBadgesMax | Number (1+) | auto
backdropQualityBadgesMax| Number (1+) | auto
thumbnailQualityBadgesMax| Number (1+) | auto
ratingPresentation | standard, minimal, average, dual, blockbuster, none | standard
aggregateRatingSource | overall, critics, audience | overall
ratingXOffsetPillGlass | Number (-320 to 320) | 0
ratingYOffsetPillGlass | Number (-320 to 320) | 0
ratingXOffsetSquare | Number (-320 to 320) | 0
ratingYOffsetSquare | Number (-320 to 320) | 0
ratingStyle | glass, square, plain, stacked | glass
thumbnailRatingStyle | glass, square, plain, stacked | glass
imageText | original, clean, alternative, random | original
thumbnailImageText | original, clean, alternative, random | clean
posterArtworkSource | tmdb, fanart, cinemeta, omdb, random | tmdb
backdropArtworkSource | tmdb, fanart, cinemeta, random | tmdb
thumbnailArtworkSource | tmdb, fanart, cinemeta, random | tmdb
thumbnailEpisodeArtwork | still, series | still
posterRatingsLayout | top, bottom, left, right, top bottom, left right | top bottom
posterRatingsMaxPerSide | Number (1+) | auto
backdropRatingsLayout | center, right, right vertical | center
thumbnailRatingsLayout | center, right, right vertical | center
backdropBottomRatingsRow| true, false | false
thumbnailRatingsMax | Number (1+) | auto
thumbnailBottomRatingsRow| true, false | false
logoRatingsMax | Number (1+) | auto
logoBottomRatingsRow | true, false | false
logoBackground | transparent, dark | transparent
logoArtworkSource | tmdb, fanart, cinemeta, random | tmdb
tmdbKey (REQUIRED) | Your TMDB v3 API Key | -
mdblistKey (REQUIRED) | Your MDBList.com API Key | -
fanartKey | Your Fanart API Key (used first for fanart sources) | server fallback when available
simklClientId | Your SIMKL client id for direct SIMKL ratings | -
TMDB NOTE: Default tmdbIdScope=soft keeps compatibility and accepts tmdb:id. Set tmdbIdScope=strict to require tmdb:movie:id or tmdb:tv:id for backdrop and logo.
STYLE NOTE: Transparent provider icons stay transparent in every style. In glass, icons with transparency such as Kitsu render on a neutral inner chip with an accent ring to avoid accent color bleed through.
FANART NOTE: fanartKey is optional. If present, XRDB uses your key first for fanart poster, backdrop, and logo requests. If fanartKey is blank, XRDB falls back to XRDB_FANART_API_KEY or FANART_API_KEY when the server has one.
POSTER NOTE: `posterArtworkSource` supports `tmdb`, `fanart`, `cinemeta`, `omdb`, and `random`. Fanart uses fanart.tv poster art when a fanart key is available, Cinemeta uses MetaHub when an IMDb id is available, OMDb uses the server OMDb key plus IMDb id, and random picks a seeded source across the available poster candidates.
BACKDROP NOTE: `backdropArtworkSource` supports `tmdb`, `fanart`, `cinemeta`, and `random`. Fanart uses fanart.tv moviebackground or showbackground art when a fanart key is available, Cinemeta uses MetaHub when an IMDb id is available, and random picks a seeded source across the available backdrop candidates.
LOGO NOTE: `logoArtworkSource` supports `tmdb`, `fanart`, `cinemeta`, and `random`. Fanart uses fanart.tv HD or clear logo assets when a fanart key is available, Cinemeta uses MetaHub when an IMDb id is available, and random picks a seeded source across the available logo candidates.
THUMBNAIL NOTE: Episode thumbnails use `/thumbnail/{id}/S{season}E{episode}.jpg`, default to `thumbnailRatings=tmdb,imdb`, accept base ids such as plain IMDb, `xrdbid`, `tvdb`, `kitsu`, `anilist`, `mal`, and `anidb`, and use dedicated thumbnail scoped controls such as `thumbnailRatingStyle`, `thumbnailImageText`, `thumbnailArtworkSource`, `thumbnailEpisodeArtwork`, `thumbnailRatingsLayout`, `thumbnailBottomRatingsRow`, `thumbnailRatingBadgeScale`, `thumbnailQualityBadgesStyle`, `thumbnailQualityBadgesMax`, `thumbnailQualityBadgeScale`, `thumbnailSideRatingsPosition`, and `thumbnailSideRatingsOffset`.
THUMBNAIL PREVIEW NOTE: The Configurator Essentials panel now exposes explicit `Series ID`, `Season`, and `Episode` controls whenever preview type is `thumbnail`. These controls always build a valid episode target and keep preview routing aligned with `/thumbnail/{id}/S{season}E{episode}.jpg`.
THUMBNAIL PARSING NOTE: Standard inputs parse as `{baseId}:{season}:{episode}` with the final two numeric segments mapped to season and episode. Kitsu also supports `{kitsuId}:{episode}` shorthand and treats it as season `1`.
EPISODE THUMBNAIL CAPABILITY MATRIX
| Area | Current behavior |
| --- | --- |
| Preview route | `/thumbnail/{id}/S{season}E{episode}.jpg` |
| Default rating providers | `thumbnailRatings=tmdb,imdb` |
| Accepted base ID families | IMDb, `xrdbid`, `tvdb`, `tmdb:tv`, `kitsu`, `anilist`, `mal`, `anidb` |
| Configurator target controls | Dedicated thumbnail `Series ID`, `Season`, `Episode` fields in Essentials |
| Artwork source control | `thumbnailArtworkSource` per type |
| Episode image mode | `thumbnailEpisodeArtwork=still|series` |
| Layout controls | `thumbnailRatingsLayout`, `thumbnailBottomRatingsRow`, `thumbnailRatingsMax`, `thumbnailSideRatingsPosition`, `thumbnailSideRatingsOffset` |
| Badge sizing controls | `thumbnailRatingBadgeScale`, `thumbnailQualityBadgeScale`, `thumbnailGenreBadgeScale` |
| Export patterns | AIOMetadata export always emits thumbnail scoped route + params |
| Proxy behavior | Proxy image URLs for episodic items resolve through the same thumbnail route and respect thumbnail scoped settings |
BOTTOM ROW NOTE: `backdropBottomRatingsRow=true`, `thumbnailBottomRatingsRow=true`, and `logoBottomRatingsRow=true` collapse those badges into one Bottom Row. The backdrop and thumbnail Bottom Row options intentionally override side stack layout and side offset settings.
ALLOCINE NOTE: `allocine` and `allocinepress` provide AlloCiné audience and press scores on their native `/5` scale unless you normalize them through `ratingValueMode`.
FUTURE NOTE: season aware fanart support is a good next step for TV because fanart.tv exposes seasonposter and seasonthumb assets.
--- INTEGRATION REQUIREMENTS ---
1. Use ONLY the "xrdbConfig" field (no modal and no extra settings panels).
2. Add toggles to enable/disable: poster, backdrop, thumbnail, logo.
3. If a type is disabled, keep the original artwork (do not call XRDB for that type).
4. Build XRDB URLs using the decoded config and inject them into both catalog and meta responses.
--- PER TYPE SETTINGS ---
poster -> ratingStyle = cfg.posterRatingStyle, imageText = cfg.posterImageText
poster artwork source -> use cfg.posterArtworkSource for poster original, clean, or alternative
backdrop -> ratingStyle = cfg.backdropRatingStyle, imageText = cfg.backdropImageText
backdrop artwork source -> use cfg.backdropArtworkSource for backdrop original, clean, or alternative
thumbnail -> ratingStyle = cfg.thumbnailRatingStyle, imageText = cfg.thumbnailImageText, artworkSource = cfg.thumbnailArtworkSource, episodeArtwork = cfg.thumbnailEpisodeArtwork
logo -> ratingStyle = cfg.logoRatingStyle, logoBackground = cfg.logoBackground, logoArtworkSource = cfg.logoArtworkSource
all -> genreBadge = cfg.genreBadge, genreBadgeStyle = cfg.genreBadgeStyle, genreBadgePosition = cfg.genreBadgePosition, genreBadgeScale = cfg.genreBadgeScale (optional global fallbacks)
poster -> genreBadge = cfg.posterGenreBadge, genreBadgeStyle = cfg.posterGenreBadgeStyle, genreBadgePosition = cfg.posterGenreBadgePosition, genreBadgeScale = cfg.posterGenreBadgeScale
backdrop -> genreBadge = cfg.backdropGenreBadge, genreBadgeStyle = cfg.backdropGenreBadgeStyle, genreBadgePosition = cfg.backdropGenreBadgePosition, genreBadgeScale = cfg.backdropGenreBadgeScale
thumbnail -> genreBadge = cfg.thumbnailGenreBadge, genreBadgeStyle = cfg.thumbnailGenreBadgeStyle, genreBadgePosition = cfg.thumbnailGenreBadgePosition, genreBadgeScale = cfg.thumbnailGenreBadgeScale
logo -> genreBadge = cfg.logoGenreBadge, genreBadgeStyle = cfg.logoGenreBadgeStyle, genreBadgePosition = cfg.logoGenreBadgePosition, genreBadgeScale = cfg.logoGenreBadgeScale
Ratings providers can be set per type via cfg.posterRatings / cfg.backdropRatings / cfg.thumbnailRatings / cfg.logoRatings (fallback to cfg.ratings).
Rating presentation can be set per type via cfg.posterRatingPresentation / cfg.backdropRatingPresentation / cfg.thumbnailRatingPresentation / cfg.logoRatingPresentation (fallback to cfg.ratingPresentation).
Aggregate source can be set per type via cfg.posterAggregateRatingSource / cfg.backdropAggregateRatingSource / cfg.thumbnailAggregateRatingSource / cfg.logoAggregateRatingSource (fallback to cfg.aggregateRatingSource).
Use cfg.aggregateAccentMode to keep source colours, match the genre badge, or force a custom aggregate accent through cfg.aggregateAccentColor.
Use cfg.aggregateAccentBarOffset to nudge the average badge accent bar up or down a few pixels in compact, labeled, and dual aggregate layouts.
Use cfg.ratingXOffsetPillGlass / cfg.ratingYOffsetPillGlass and cfg.ratingXOffsetSquare / cfg.ratingYOffsetSquare to nudge stacked Pill Glass and Square Dark rating groups.
Quality badges can be set per type via cfg.posterStreamBadges / cfg.backdropStreamBadges / cfg.thumbnailStreamBadges (fallback to cfg.streamBadges).
Use cfg.qualityBadgesSide for poster top bottom layouts and cfg.posterQualityBadgesPosition for poster top or bottom layouts.
Quality badges style/max can be set per type via cfg.posterQualityBadgesStyle / cfg.backdropQualityBadgesStyle / cfg.thumbnailQualityBadgesStyle and cfg.posterQualityBadgesMax / cfg.backdropQualityBadgesMax / cfg.thumbnailQualityBadgesMax.
Episode thumbnails use /thumbnail/{episodeBaseId}/S{season}E{episode}.jpg and keep their own cfg.thumbnailRatings, cfg.thumbnailRatingStyle, cfg.thumbnailImageText, cfg.thumbnailArtworkSource, cfg.thumbnailEpisodeArtwork, cfg.thumbnailRatingsLayout, cfg.thumbnailBottomRatingsRow, cfg.thumbnailRatingsMax, cfg.thumbnailSideRatingsPosition, cfg.thumbnailSideRatingsOffset, cfg.thumbnailRatingBadgeScale, cfg.thumbnailQualityBadgesStyle, cfg.thumbnailQualityBadgesMax, cfg.thumbnailQualityBadgeScale, and cfg.thumbnailStreamBadges settings.
--- URL BUILD ---
const typeRatingStyle = type === 'poster' ? cfg.posterRatingStyle : type === 'backdrop' ? cfg.backdropRatingStyle : type === 'thumbnail' ? cfg.thumbnailRatingStyle : cfg.logoRatingStyle;
const typeImageText = type === 'backdrop' ? cfg.backdropImageText : type === 'thumbnail' ? cfg.thumbnailImageText : cfg.posterImageText;
${cfg.baseUrl}/${type}/${id}.jpg?tmdbKey=${cfg.tmdbKey}&mdblistKey=${cfg.mdblistKey}&fanartKey=${cfg.fanartKey}&ratings=${cfg.ratings}&posterRatings=${cfg.posterRatings}&backdropRatings=${cfg.backdropRatings}&thumbnailRatings=${cfg.thumbnailRatings}&logoRatings=${cfg.logoRatings}&lang=${cfg.lang}&genreBadge=${cfg.genreBadge}&genreBadgeStyle=${cfg.genreBadgeStyle}&genreBadgePosition=${cfg.genreBadgePosition}&genreBadgeScale=${cfg.genreBadgeScale}&posterGenreBadge=${cfg.posterGenreBadge}&backdropGenreBadge=${cfg.backdropGenreBadge}&thumbnailGenreBadge=${cfg.thumbnailGenreBadge}&logoGenreBadge=${cfg.logoGenreBadge}&posterGenreBadgeStyle=${cfg.posterGenreBadgeStyle}&backdropGenreBadgeStyle=${cfg.backdropGenreBadgeStyle}&thumbnailGenreBadgeStyle=${cfg.thumbnailGenreBadgeStyle}&logoGenreBadgeStyle=${cfg.logoGenreBadgeStyle}&posterGenreBadgePosition=${cfg.posterGenreBadgePosition}&backdropGenreBadgePosition=${cfg.backdropGenreBadgePosition}&thumbnailGenreBadgePosition=${cfg.thumbnailGenreBadgePosition}&logoGenreBadgePosition=${cfg.logoGenreBadgePosition}&posterGenreBadgeScale=${cfg.posterGenreBadgeScale}&backdropGenreBadgeScale=${cfg.backdropGenreBadgeScale}&thumbnailGenreBadgeScale=${cfg.thumbnailGenreBadgeScale}&logoGenreBadgeScale=${cfg.logoGenreBadgeScale}&streamBadges=${cfg.streamBadges}&posterStreamBadges=${cfg.posterStreamBadges}&backdropStreamBadges=${cfg.backdropStreamBadges}&thumbnailStreamBadges=${cfg.thumbnailStreamBadges}&qualityBadgesSide=${cfg.qualityBadgesSide}&posterQualityBadgesPosition=${cfg.posterQualityBadgesPosition}&qualityBadgesStyle=${cfg.qualityBadgesStyle}&posterQualityBadgesStyle=${cfg.posterQualityBadgesStyle}&backdropQualityBadgesStyle=${cfg.backdropQualityBadgesStyle}&thumbnailQualityBadgesStyle=${cfg.thumbnailQualityBadgesStyle}&posterQualityBadgesMax=${cfg.posterQualityBadgesMax}&backdropQualityBadgesMax=${cfg.backdropQualityBadgesMax}&thumbnailQualityBadgesMax=${cfg.thumbnailQualityBadgesMax}&ratingPresentation=${cfg.ratingPresentation}&aggregateRatingSource=${cfg.aggregateRatingSource}&aggregateAccentMode=${cfg.aggregateAccentMode}&aggregateAccentColor=${cfg.aggregateAccentColor}&aggregateAccentBarOffset=${cfg.aggregateAccentBarOffset}&ratingXOffsetPillGlass=${cfg.ratingXOffsetPillGlass}&ratingYOffsetPillGlass=${cfg.ratingYOffsetPillGlass}&ratingXOffsetSquare=${cfg.ratingXOffsetSquare}&ratingYOffsetSquare=${cfg.ratingYOffsetSquare}&ratingStyle=${typeRatingStyle}&imageText=${typeImageText}&posterArtworkSource=${cfg.posterArtworkSource}&backdropArtworkSource=${cfg.backdropArtworkSource}&thumbnailArtworkSource=${cfg.thumbnailArtworkSource}&thumbnailEpisodeArtwork=${cfg.thumbnailEpisodeArtwork}&posterRatingsLayout=${cfg.posterRatingsLayout}&posterRatingsMaxPerSide=${cfg.posterRatingsMaxPerSide}&backdropRatingsLayout=${cfg.backdropRatingsLayout}&thumbnailRatingsLayout=${cfg.thumbnailRatingsLayout}&thumbnailRatingsMax=${cfg.thumbnailRatingsMax}&thumbnailBottomRatingsRow=${cfg.thumbnailBottomRatingsRow}&thumbnailSideRatingsPosition=${cfg.thumbnailSideRatingsPosition}&thumbnailSideRatingsOffset=${cfg.thumbnailSideRatingsOffset}&logoRatingsMax=${cfg.logoRatingsMax}&logoBackground=${cfg.logoBackground}&logoArtworkSource=${cfg.logoArtworkSource}
Omit imageText when type=logo.
Skip any params that are undefined. Keep empty ratings/posterRatings/backdropRatings/logoRatings to disable providers.
XRDB can act as a proxy for any Stremio addon and always replace images (poster, background, logo) with the ones generated by XRDB.
Stremio does not use query params here. Generate the link from the XRDB site using the "Proxy Manifest" section:
https://YOUR_XRDB_HOST/proxy/{config}/manifest.json
{config} is created automatically by the site based on the inserted parameters.
For scripts, testing, or non generated integrations, XRDB also exposes a direct manifest route:
https://YOUR_XRDB_HOST/proxy/manifest.json?url={manifestUrl}&tmdbKey=...&mdblistKey=...&fanartKey=...
The matching query based passthrough routes live under /proxy/catalog/..., /proxy/meta/..., and the other addon resource paths and accept the same query config. The encoded /proxy/{config}/manifest.json form is still the normal Stremio install URL.
- The proxy routes
meta.poster,meta.background, andmeta.logothrough XRDB URLs. - The
urlfield must point to the original addon'smanifest.json. tmdbKeyis required.mdblistKeyis required for MDBList backed ratings and broad fallback coverage.fanartKeyis optional and is recommended when you use fanart sources. When it is missing, XRDB can fall back to the server key if one exists.- For shared/public XRDB instances, start with the Public Fast preset above before enabling long rating lists or Torrentio stream badges.
- Optional proxy metadata translation can localize
meta.name/meta.descriptionand episode text. translateMetaMode=fill-missingis the safe default: keep good addon text and only backfill blanks or placeholders.translateMetaMode=prefer-sourcekeeps any source addon text that is present, even placeholders likeN/A.translateMetaMode=prefer-requested-languagereplaces source addon text only when TMDB has an exact translation for the requested language; anime native fallback can still fill missing fields.translateMetaMode=prefer-tmdbprefers TMDB text whenever it is available.- When
debugMetaTranslation=true, the proxy adds an_xrdbMetaTranslationobject to returned metas so you can inspect field provenance.
Metadata translation only changes text in the proxied addon metadata:
- series and movie titles
- descriptions / overviews
- episode titles and descriptions
It does not change how artwork is rendered. Posters, backdrops, and logos still follow the normal XRDB image settings.
If you just want a sensible default, use this:
| Setting | Recommended Value | Why |
|---|---|---|
Language (lang) |
Your actual viewing language, such as en, it, fr, or fr-BE |
This tells XRDB which language to look for when translating text. |
Translate metadata in the proxy (translateMeta) |
On | Turns on metadata translation for the proxy. |
Merge mode (translateMetaMode) |
fill-missing |
Best default for most people. It fixes empty, blank, or placeholder text without overwriting good text from the addon. |
Attach debug provenance (debugMetaTranslation) |
Off | Keep this off unless you are testing or troubleshooting. |
If you only want one recommendation: use fill-missing. It is the safest option because it improves bad metadata without being aggressive.
| Setting | What It Does | How To Use It | Recommended For |
|---|---|---|---|
Language (lang) |
Chooses the language XRDB tries to use for translated metadata. | Set this to the language you actually want to read in Stremio. If you want wording for a specific region, use a regional code like en-GB or fr-BE instead of just en or fr. |
Anyone using metadata translation. |
Translate metadata in the proxy (translateMeta) |
Turns metadata translation on or off for the proxy. | Enable it if you want XRDB to improve titles, descriptions, and episode text coming from another addon. Leave it off if you want to preserve the addon text exactly as it arrives. | Most users should turn it on. |
Merge mode (translateMetaMode) |
Controls how careful or aggressive XRDB should be when deciding whether to replace addon text. | Pick the mode based on whether you want to preserve existing addon wording, prefer exact localized text, or prefer TMDB as the main source. | See the merge mode table below. |
Attach debug provenance (debugMetaTranslation) |
Adds a debug object to each proxied item showing where the final text came from. | Use it when checking whether text came from the addon itself, TMDB, AniList, or Kitsu. Turn it back off for normal use. | Testing, debugging, and comparing behavior. |
| Mode | What It Feels Like | Best When | Less Ideal When |
|---|---|---|---|
fill-missing |
Conservative and practical. Keeps good addon text, but replaces blanks, empty fields, and obvious placeholders like N/A. |
You want the safest behavior for general use. | You want TMDB wording to win even when the addon already has decent text. |
prefer-source |
Very conservative. If the addon already sent text, XRDB keeps it. | You trust the source addon and only want help when a field is truly absent. | The addon often sends weak placeholders like N/A, unknown, or tbd, because this mode keeps them. |
prefer-requested-language |
Puts language matching first. XRDB replaces existing text only when it finds an exact match for your requested language, then still fills gaps when needed. | You want stronger localization without replacing text with the wrong regional variant. | You want the most aggressive TMDB based behavior, or you do not care about exact language matching. |
prefer-tmdb |
Most opinionated. If TMDB has text, XRDB usually uses it. | You want one consistent source and prefer TMDB wording over addon wording. | You like the addon's custom descriptions, naming, or editorial style. |
Example: if you request fr-BE, prefer-requested-language will not treat fr-FR as the same thing when deciding whether to replace existing text.
| If You Want... | Use This Mode | Why |
|---|---|---|
| The safest overall default | fill-missing |
It improves bad metadata without unnecessarily replacing good text. |
| To keep the source addon mostly untouched | prefer-source |
XRDB only fills fields that are actually missing. |
| Better localization with strict language matching | prefer-requested-language |
It only replaces text when the requested language is a real match, which helps avoid awkward regional substitutions. |
| TMDB wording whenever possible | prefer-tmdb |
It gives you the most consistent TMDB based result. |
- For most users: turn on metadata translation and leave Merge mode on
fill-missing - For people who mainly care about exact localized wording:
prefer-requested-language - For people who trust the source addon more than TMDB:
prefer-source - For people who want TMDB to be the main voice everywhere:
prefer-tmdb
Anime gets extra fallback help when possible. If TMDB is missing good text, XRDB can still use anime mapping plus AniList or Kitsu data to fill gaps.
These screenshots were regenerated from the local March 27, 2026 codebase using deterministic proxy fixtures.
To make each merge mode visible on demand, a local fixture addon returned controlled source addon metadata for three real IDs:
tt0133093(The Matrix) with placeholder movie text (N/A, blank overview)tt0944947(Game of Thrones) with good top level source addon text plus mixed episode textmal:16498(Attack on Titan) with blank anime text so TMDB and anime fallback behavior are both observable
The fixture environment also mocked the TMDB, anime mapping, AniList, and Kitsu lookups needed for those cases so the screenshots stay reproducible and do not expose live API keys in the captured output.
Fill Missing in French (France) replaces placeholder movie fields with TMDB French text.
Prefer Requested Language in French (Belgium) preserves good source addon series text when TMDB does not have an exact regional match, while still filling missing episode fields.
Anime fallback in English (United Kingdom): Prefer Requested Language falls back to anime native text when TMDB only has exact English (United States), and provenance records the fallback source.
Production validation for this feature covered French (France), French (Belgium), English (United States), and English (United Kingdom).
Copy env.template to .env and adjust as needed. All cache TTL values are in milliseconds.
| Variable | Default | Description |
|---|---|---|
XRDB_TRUST_PROXY_HEADERS |
false |
Trust x-forwarded-host / x-forwarded-proto when behind a reverse proxy |
XRDB_PROXY_ALLOWED_ORIGINS |
(empty) | Comma separated CORS allowlist. Empty = * |
XRDB_PREVIEW_ORIGIN |
http://127.0.0.1:3000 |
Preview fetch origin used by /preview/{slug} before falling back to the container hostname and public origin |
XRDB_PORT |
3000 |
Host port used by local-compose.yaml |
XRDB_DATA_DIR |
./data |
Host path mounted to /app/data by local-compose.yaml |
DOCKER_DATA_DIR |
./data |
Root host data path used by compose.yaml, which mounts ${DOCKER_DATA_DIR}/xrdb into /app/data |
DOCKER_NETWORK |
aio_default |
Docker network name used by compose.yaml |
DOCKER_NETWORK_EXTERNAL |
true |
Marks DOCKER_NETWORK as an external network for the VPS stack file |
XRDB_HOSTNAME |
required for compose.yaml |
Host rule value used by the Traefik labels |
XRDB_TRAEFIK_ENTRYPOINTS |
websecure |
Traefik entrypoints label value |
XRDB_TRAEFIK_CERTRESOLVER |
letsencrypt |
Traefik certresolver label value |
XRDB_README_PREVIEW_TMDB_KEY |
(empty) | Optional dedicated TMDB key for the fixed README preview gallery route |
XRDB_README_PREVIEW_MDBLIST_KEY |
(empty) | Optional dedicated MDBList key for the fixed README preview gallery route |
XRDB_TMDB_API_BASE_URL |
https://api.themoviedb.org/3 |
Optional TMDB API base URL override used by image rendering and proxy translation |
XRDB_ANILIST_GRAPHQL_URL |
https://graphql.anilist.co |
Optional AniList GraphQL endpoint override |
XRDB_ANIME_MAPPING_BASE_URL |
https://animemapping.stremio.dpdns.org |
Optional anime mapping service base URL override used by image rendering and proxy translation |
XRDB_KITSU_API_BASE_URL |
https://kitsu.io/api/edge |
Optional Kitsu API base URL override used by image rendering and proxy translation |
XRDB_MAL_CLIENT_ID |
(empty) | Optional MyAnimeList v2 client id used for direct myanimelist ratings |
XRDB_TRAKT_CLIENT_ID |
(empty) | Optional Trakt client id used for direct trakt ratings |
OMDB_KEY |
(empty) | Optional server side OMDb key used for posterArtworkSource=omdb (also OMDB_API_KEY and XRDB_OMDB_API_KEY) |
SIMKL_CLIENT_ID |
(empty) | Optional SIMKL client id used for direct simkl ratings (also XRDB_SIMKL_CLIENT_ID) |
XRDB_SIMKL_APP_NAME |
xrdb |
Simkl app name sent in required app-name query parameter |
XRDB_SIMKL_APP_VERSION |
1.0 |
Simkl app version sent in required app-version query parameter |
XRDB_MAL_API_BASE_URL |
https://api.myanimelist.net/v2 |
Optional MyAnimeList API base URL override |
XRDB_JIKAN_API_BASE_URL |
https://api.jikan.moe/v4 |
Optional Jikan API base URL override for unauthenticated MAL fallback |
XRDB_TRAKT_API_BASE_URL |
https://api.trakt.tv |
Optional Trakt API base URL override |
XRDB_OMDB_API_BASE_URL |
https://www.omdbapi.com |
Optional OMDb API base URL override used for OMDb poster lookups |
When these vars are unset, XRDB uses the runtime defaults shown below. The
bundled docker compose setup now defers to those app defaults instead of
hardcoding separate cache TTL values.
| Variable | Default | Min | Max | Description |
|---|---|---|---|---|
XRDB_TMDB_CACHE_TTL_MS |
3 days | 10 min | 30 days | TMDB metadata |
XRDB_MDBLIST_CACHE_TTL_MS |
3 days | 10 min | 30 days | MDBList ratings |
XRDB_KITSU_CACHE_TTL_MS |
3 days | 10 min | 30 days | Kitsu anime |
XRDB_OMDB_CACHE_TTL_MS |
3 days | 10 min | 30 days | OMDb poster lookups |
XRDB_SIMKL_CACHE_TTL_MS |
3 days | 10 min | 30 days | SIMKL ratings |
XRDB_SIMKL_ID_CACHE_TTL_MS |
30 days | 10 min | 30 days | Simkl id resolution cache |
XRDB_SIMKL_ID_EMPTY_CACHE_TTL_MS |
1 day | 10 min | 30 days | Simkl empty id lookup cache |
XRDB_TORRENTIO_CACHE_TTL_MS |
6 hours | 10 min | 7 days | Torrentio stream badges |
XRDB_PROVIDER_ICON_CACHE_TTL_MS |
7 days | 1 hour | 30 days | Rating provider icons |
XRDB_IMDB_DATASET_CACHE_TTL_MS |
7 days | 1 hour | 365 days | Local IMDb dataset |
XRDB_MDBLIST_OLD_MOVIE_CACHE_TTL_MS |
7 days | 1 hour | 30 days | Extended cache for old media |
XRDB_MDBLIST_OLD_MOVIE_AGE_DAYS |
365 | 30 | 3,650 | Age threshold for "old media" logic |
XRDB_MDBLIST_RATE_LIMIT_COOLDOWN_MS |
1 day | 30 sec | 7 days | Cooldown after MDBList rate limit |
| Variable | Default | Description |
|---|---|---|
XRDB_IMDB_DATASET_AUTO_DOWNLOAD |
true |
Automatically download the IMDb ratings dataset when it is missing or stale |
XRDB_IMDB_DATASET_AUTO_IMPORT |
true |
Automatically import downloaded IMDb ratings into the local SQLite cache |
XRDB_IMDB_RATINGS_DATASET_PATH |
./data/imdb/title.ratings.tsv.gz |
Local path for the IMDb ratings dataset |
XRDB_IMDB_DATASET_REFRESH_MS |
259200000 |
Refresh interval for the IMDb dataset sync job |
XRDB_IMDB_DATASET_CHECK_INTERVAL_MS |
900000 |
Poll interval used to decide whether a refresh is due |
XRDB_IMDB_DATASET_BASE_URL |
https://datasets.imdbws.com |
Base URL used for ratings dataset downloads |
XRDB_IMDB_RATINGS_DATASET_URL |
https://datasets.imdbws.com/title.ratings.tsv.gz |
Override URL for the IMDb ratings dataset |
XRDB_IMDB_DATASET_IMPORT_BATCH |
5000 |
Batch size used during SQLite imports |
XRDB_IMDB_DATASET_IMPORT_PROGRESS |
0 |
Optional persisted import progress marker for resumable imports |
XRDB_IMDB_DATASET_LOG |
false |
Enable verbose IMDb dataset sync logging |
| Variable | Default | Description |
|---|---|---|
XRDB_TORRENTIO_BASE_URL |
https://torrentio.strem.fun |
Custom Torrentio instance URL |
XRDB_TORRENTIO_CONCURRENCY |
2 |
Max parallel Torrentio badge fetches. Higher can improve throughput, but also increases the chance of source rate limiting. |
XRDB_TORRENTIO_RATE_LIMIT_COOLDOWN_MS |
900000 |
Cooldown window after Torrentio responds with rate limiting. |
Note: Torrentio requests use
HTTP_PROXY/HTTPS_PROXYenv vars (viaundici ProxyAgent) when set.
When the Sharp env vars are unset, XRDB currently applies conservative
app defaults instead of deferring to Sharp's own library defaults:
concurrency 2, cache memory 128 MB, cache items 100, and cache files 200.
| Variable | Default | Description |
|---|---|---|
XRDB_SHARP_CONCURRENCY |
2 |
Max Sharp threads |
XRDB_SHARP_CACHE_MEMORY_MB |
128 |
Memory (MB) for the Sharp cache |
XRDB_SHARP_CACHE_ITEMS |
100 |
Max cached items |
XRDB_SHARP_CACHE_FILES |
200 |
Max cached files/handles |
| Live Configurator Workspace The current configurator and preview workspace running on `xrdb.ibbylabs.dev`. |
Live Proxy Workspace The current proxy panel and export flow running on `xrdb.ibbylabs.dev`. |
![]() |
![]() |
© 2026 XRDB Project








