Le catalogue commun de GameDeck et ROMDeck : jeux PC, consoles, BIOS et liens résolus.
  • Python 90.7%
  • JavaScript 6.4%
  • CSS 1.7%
  • HTML 1.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
ReleaseHub 34b6fbdc21 GameSourceHub 0.1.442 via ReleaseHub
ReleaseHub-Job: 8a723433fea5
Source-SHA256: 0d7652c4e783f99039e5bcf6f2f09e9a50862dd1d7b020ab7b3e2bc0b63a7ec3
2026-12-04 00:58:12 +01:00
app GameSourceHub 0.1.442 via ReleaseHub 2026-12-04 00:58:12 +01:00
deployment GameSourceHub 0.1.411 via ReleaseHub 2026-11-30 16:18:20 +01:00
docs GameSourceHub 0.1.442 via ReleaseHub 2026-12-04 00:58:12 +01:00
tests GameSourceHub 0.1.442 via ReleaseHub 2026-12-04 00:58:12 +01:00
tools GameSourceHub 0.1.411 via ReleaseHub 2026-11-30 16:18:20 +01:00
.dockerignore GameSourceHub 0.1.175 via ReleaseHub 2026-10-31 18:06:49 +01:00
.editorconfig GameSourceHub 0.1.275 via ReleaseHub 2026-11-14 00:16:55 +01:00
.gitignore GameSourceHub 0.1.275 via ReleaseHub 2026-11-14 00:16:55 +01:00
.pytest.ini GameSourceHub 0.1.276 via ReleaseHub 2026-11-14 00:45:04 +01:00
bootstrap.py GameSourceHub 0.1.395 via ReleaseHub 2026-11-29 00:36:04 +01:00
CHANGELOG.en.md GameSourceHub 0.1.442 via ReleaseHub 2026-12-04 00:58:12 +01:00
CHANGELOG.md GameSourceHub 0.1.442 via ReleaseHub 2026-12-04 00:58:12 +01:00
docker-compose.yml GameSourceHub 0.1.397 via ReleaseHub 2026-11-29 02:41:38 +01:00
Dockerfile GameSourceHub 0.1.407 via ReleaseHub 2026-11-30 13:05:36 +01:00
README.en.md GameSourceHub 0.1.442 via ReleaseHub 2026-12-04 00:58:12 +01:00
README.md GameSourceHub 0.1.442 via ReleaseHub 2026-12-04 00:58:12 +01:00
requirements.txt GameSourceHub 0.1.185 via ReleaseHub 2026-11-01 08:51:37 +01:00

GameSourceHub — the shared catalogue of GameDeck and ROMDeck

Version Python 3.12 FastAPI Docker Console FR / EN

Installation · Documentation · Writing a source · API · Changelog · Français


GameSourceHub gathers PC and console game sources into one clean catalogue that clients query through an API. It ties each record to the right game, enriches it (covers, dates, genres), tracks the state of every link and prepares what a client needs to install: download methods, BIOS, firmware and emulation components.

It is the provider of two clients: GameDeck for PC games and ROMDeck for consoles. A web console, in French or English, drives everything.

Ships without any source. Each source is an extension you install yourself: a small folder of code that reads a site, a feed or an API. Extensions are exported and imported from one installation to another, one at a time or all together.

The detailed documentation (docs/) exists in French and English; this page summarises it.

Contents

At a glance

  • Sources as extensions. The server loads the extensions installed in data/sources. The console exports them (.gshsource, without secret settings), imports, renames and removes them. The repository contains none, only a documented example.
  • One catalogue, many sources. Records from every source are grouped per game. Regions, languages, versions and formats are kept, along with where each link comes from.
  • Complete records. Identities are matched to IGDB and Steam with strict rules. Covers come from IGDB, Steam or libretro-thumbnails, and each image states where it comes from.
  • Honest links. Each method says up front whether it is direct, resolved by the server, resolved by the client or needs a person. Dead links are reported and go last.
  • Game, updates and DLC kept apart. For consoles such as the Switch, each update or DLC is described on its own, with its version and Title ID when the source gives them.
  • Emulation ready to use. BIOS, firmware and keys are described per emulator, with versions, hashes and download candidates, plus checked MAME sets, libretro cores and pinned standalone emulators.
  • An API made for clients. Search, filters, paging and revisions spare clients from downloading the whole catalogue. Every response that is not ready gives its reason.
  • A bilingual console. French or English, picked from the system language and switched with one click.

Screenshots

Taken on an isolated demo instance: two example extensions, a few open-source games, no private data.

Overview: API health, requests, image cache, memory, storage, alerts and latest jobs.

Overview — server health, client activity, latest jobs.

Source extensions in English: export all or a selection, import a .gshsource or .zip file, list of installed extensions. Catalogue in English: records as clients get them, with covers, versions and filters.
Extensions — export all or a selection, import, reload Catalogue — records as GameDeck and ROMDeck get them
A source's settings: editable display name, extension export, the source's own settings. BIOS and firmware: filters by console, source, emulator and type, with sourced versions and dates.
A source's settings — rename, export, configure BIOS & firmware — needs per emulator, versions and sources

What GameSourceHub does

Collecting

  • Runs scans of the installed sources: incremental (what is new) or full (the whole site), by hand or on a schedule (interval, day, week, month, with a steady offset).
  • Resumes an interrupted scan where it stopped when the source allows it; a job cancels cleanly at the next safe point.
  • Follows each site's pace: one shared interval between requests, automatic slowdown on 429 responses, bounded retries on network errors.
  • Protects the published catalogue: an empty or abnormally short full scan does not replace the previous one; the last valid state is kept.
  • Keeps a log per job (steps, warnings, errors) and diagnostics exportable as a ZIP.

Building the catalogue

  • Groups the records of all sources per game, without merging what must stay apart (editions, demos, hacks, translations, updates, DLC).
  • Matches each game to IGDB and Steam: title, year, platform and ids must agree; a doubtful match stays "to check" instead of being forced.
  • Lets you fix things by hand (Catalogue → Identities): link, unlink, change a cover or a screenshot. Corrections are applied again at every rebuild.
  • Enriches records: covers, banners, screenshots, dates, genres mapped to IGDB names, game modes, descriptions per language.
  • Serves images from a local cache with a quota, revalidation and optional WebP conversion.
  • Publishes ready-to-use catalogues (unified format, compact index for GameDeck, ROM catalogue for ROMDeck) on disk, and optionally to a Forgejo or GitHub repository.
  • Sorts each link by its host: resolved by the server, by the client, needing a person, or not handled (see below).
  • Resolves on demand the links it knows how to follow (public APIs, redirects, link shorteners), when the client clicks, never ahead of time for the whole catalogue.
  • Checks the state of links in the background, a few at a time: a link known to be unusable is removed from the published catalogues; a link whose state is unknown is still offered.
  • Accepts reports from clients (dead link, link replaced at the source) and checks them again before setting the link aside for 30 days.
  • Describes multi-part downloads and their mirrors, part by part.

Preparing emulation

  • Keeps a console catalogue by families and editions: region, language, format, revision, declared size, hashes when the source gives them.
  • Describes BIOS, firmware and keys per emulator and profile, with versions, sourced dates, hashes and pinned download candidates.
  • Provides checked libretro cores (hash, architecture), MAME sets checked against the drivers and standalone emulators pinned to a version.
  • Keeps game, updates and DLC apart, with the version and Title ID when known.
  • Answers preflights: "what does this game need with this emulator?", with the exact reason when something is missing.

Serving clients

  • Exposes the Discovery API for PC and ROM games: bootstrap, search, filters, facets, paging, catalogue revisions.
  • Announces its capabilities and versioned contracts, so GameDeck and ROMDeck adapt without guessing.
  • Gives every error a trace to find it in the log.
  • Offers federated catalogues: other public catalogues GameDeck can add, once the player confirms.

Administering

  • Web console in French or English, keyboard friendly (Ctrl K to jump to a page).
  • Health and maintenance: each source's state, metadata quality, purge of old jobs and diagnostics.
  • Backup and restore of the results (ZIP), with size checks and an automatic safety backup.
  • Updates of GameSourceHub from the published releases, with a way back to the previous version.

What it does not do

GameSourceHub… Why
does not download games Downloading, installing and launching are done by the client, on the player's machine.
provides no source The repository ships empty; everyone installs the extensions they choose, at their own responsibility.
gets around nothing No CAPTCHA, forced wait, anti-bot check or access control is bypassed. Such links are announced as needing a person.
uses no debrid service No debrid service or premium host account is built in.
creates no account For a site with accounts, you sign in once with your own account; nothing is posted or written on the site.
hosts no games or BIOS No game, BIOS, firmware or key: it serves metadata and links to the sources. Only checked libretro cores are served by the server.
makes up no value An unknown size, version, hash or compatibility stays unknown.
does not certify compatibility It depends on the emulator, its version, the region and the game; the client confirms it by launching.
does not translate data The console is bilingual, but titles, game descriptions and logs stay as the sources and the server write them.

Each known link domain has a status, which GameDeck and ROMDeck also read in the server's capabilities. The full list, domain by domain, is in docs/HEBERGEURS.en.md, generated from the registry in the code.

Status What happens Domains
✅ Resolved by GameSourceHub The server follows the public path (API, redirects, button, mirror list) and returns a direct link. 12
🟦 Resolved by the client Public path without CAPTCHA, but tied to the client (wait, button, visit from the source's page): GameDeck or ROMDeck does it. 5
🟨 Human step A person must act in a browser (CAPTCHA, checkbox, site check). GameSourceHub does not get around it. 13
⬜ Not handled No free path that can be automated (premium account, encrypted download, private API). These links only work with a host account or a third-party service set up in the client. 9

A link to an unknown domain is offered as it is, with no promise: the client opens it and sees.

Source extensions

An extension is a folder (manifest.json + plugin/) installed in data/sources. It declares one or more sources; GameSourceHub does the rest (grouping, identities, images, links, catalogues).

Action In the console On the command line
List Sources → Source extensions python -m app.source_packages list
Export one source Source settings → Export the extension python -m app.source_packages export ID
Export a selection Tick, then Export selection python -m app.source_packages export ID ID …
Export everything Export all sources python -m app.source_packages export-all
Import (.gshsource or .zip) Import, with the install token python -m app.source_packages import FILE [--replace] [--settings missing|all|none]
Remove Remove python -m app.source_packages remove ID
Pick up a change Reload extensions python -m app.source_packages reload
  • What an export holds: the extension's code, its translations and its settings, never secret settings (passwords, cookies, tokens). A source exported alone brings the libraries it needs.
  • Libraries: code shared by several sources, in a separate extension (kind: library), loaded before the ones that use it and impossible to remove while in use.
  • Renaming: each source can take any name in the console. Since 0.1.411 this name is also the one GameDeck and ROMDeck see (API answers, downloaded and published catalogues); the ids (source_id, release ids) do not change, so installed games keep their source. The chosen name travels with the export.
  • Sites with accounts: a source can offer "Sign in"; you enter your own account once, GameSourceHub keeps the session up to date at every scan and does not store the password. When the site's form asks for a CAPTCHA, the console shows it and the person answers it: GameSourceHub never solves it for them.
  • Security: importing installs code that runs on the server. Console import stays closed until GSH_SOURCE_INSTALL_TOKEN (or the GSH_AUTH_TOKEN protection) is set; the command line always works.

→ Writing a source: structure, manifest, source class, SDK, libraries, account sign-in, click-time resolution, API routes, tests, translations.

The console: sections and languages

Section What for
Overview Server health, recent scans, client activity
Sources Install, export, import, rename extensions; set up each source, run a scan
Automation Schedule scans, without duplicates or overlap with a source that is busy
Jobs & logs Follow a scan, understand a failure, cancel
Catalogue Browse records as clients see them; review identities; set up enrichment
Clients & API GameDeck integration, public URLs, federated catalogues, request log
BIOS & firmware Look up an emulator's needs, their versions and sources
Exports Build the catalogues, back up and restore the results
Health & maintenance Check each source, purge, diagnose
Publishing Publish the catalogues, update GameSourceHub

Languages. The console is written in French and translated into English in the browser. On first display it follows the browser's language, which usually follows the system's: French when it is French, English otherwise. The FR / EN buttons at the top right switch the language, remembered by that browser. Numbers, dates and sizes follow the chosen language. Game titles and source data are not translated; an extension can ship the English of its own texts (i18n/en.json).

Installation

With Docker (recommended):

# 1. Get the source ZIP of the latest release and check its hash
sha256sum -c GameSourceHub-vX.Y.Z-source.zip.sha256
unzip GameSourceHub-vX.Y.Z-source.zip -d GameSourceHub && cd GameSourceHub

# 2. Pick an admin password (private .env file)
echo "GSH_AUTH_TOKEN=$(openssl rand -hex 24)" > .env

# 3. Build and start
docker compose build
docker compose up -d

Open http://localhost:8787: the token is the password, any user name works. The data/ and exports/ folders hold all the data, extensions included; keep them across updates.

In the container the server runs as a dedicated user (10001), not root; the container log is bounded and a memory ceiling is offered (GSH_MEMORY_LIMIT).

Install a first source: Sources → Source extensions → Import a .gshsource file. Or, on the command line, with the repository's example:

(cd docs/examples/example-json-feed && zip -r /tmp/example-json-feed.gshsource .)
docker compose cp /tmp/example-json-feed.gshsource gamesourcehub:/tmp/
docker compose exec -u 10001:10001 gamesourcehub python -m app.source_packages import /tmp/example-json-feed.gshsource

then "Reload extensions" in the console.

→ Full installation, reverse proxy and updates · Operations

For development:

python3.12 -m venv .venv && . .venv/bin/activate
pip install -r requirements.txt -r tests/requirements.txt
GSH_ROOT="$PWD/.local-state" uvicorn app.main:app --host 127.0.0.1 --port 8787

Python alone does not provide the native tools the Docker image installs, Chromium and aria2 in particular. GSH_SOURCES_DIR can point to a folder of extensions being written, loaded on top of data/sources.

Configuration and security

The main variables (full list: docs/ENVIRONMENT.md):

Variable Role
GSH_AUTH_TOKEN Password of the console and admin APIs. Set it before any network exposure.
GSH_SOURCE_INSTALL_TOKEN Opens extension import from the console (otherwise: command line only).
GSH_IGDB_CLIENT_ID · GSH_IGDB_CLIENT_SECRET Twitch Developer application for IGDB (identities, covers, rankings).
GSH_STEAM_WEB_API_KEY Steam Web API key, optional, for the full Steam index.
GSH_DISCOVERY_PUBLIC_URL · GSH_RESOLVER_PUBLIC_URL Public URLs announced to clients (HTTPS).
GSH_PUBLIC_DISCOVERY · GSH_PUBLIC_MEDIA · GSH_PUBLIC_RESOLVER Public read access, without a token, to the client APIs.
GSH_MEDIA_CACHE_MAX_GIB Image cache quota.
GSH_MEMORY_LIMIT · GSH_MEMORY_SWAP_LIMIT Container memory ceilings.

Secrets (tokens, passwords, cookies) stay in .env and in the instance's database; they never leave with an exported extension. To report a security problem: SECURITY, without publishing any secret.

The API in 30 seconds

curl http://localhost:8787/healthz                                   # health
curl http://localhost:8787/api/discovery/bootstrap                   # PC store: capabilities and revision
curl 'http://localhost:8787/api/discovery/games?q=carrion'           # search a PC game
curl http://localhost:8787/api/rom-discovery/bootstrap               # ROM store: capabilities and revision
curl 'http://localhost:8787/api/rom-discovery/games?platform=snes'   # browse a console
curl 'http://localhost:8787/api/rom-discovery/system-assets?platform=ps2'   # BIOS and firmware
curl 'http://localhost:8787/api/rom-discovery/games/<id>/supplements'      # a game's updates and DLC

A client starts with the bootstrap, follows the announced paths and sends back the revision it got, to page and choose consistently. Interactive documentation is served under /docs (OpenAPI).

→ API and integrations · PC Discovery · ROM content · Client contract (living log)

A catalogue without an extension. You can also produce, with your own tool, a catalogue that GameDeck reads as if it came from GameSourceHub: format and example · differences with GameSourceHub's export.

What GameSourceHub checks, and what it does not

Information What it guarantees
Certified provider GameSourceHub is the trusted provider set up for these clients
Link ready (ready) The response is the file; a page or a mirror list is never announced ready
Hash and size They cover the bytes named: an archive's hash is not its contents'
Compatibility It depends on the emulator, its version, the region and the game; the client confirms it by launching

An unknown value stays unknown: no size, version or hash is made up.

How it fits together

flowchart LR
  subgraph Extensions
    S1[PC sources]
    S2[ROM sources]
  end
  subgraph References
    S3[IGDB · Steam · libretro]
    S4[RetroBIOS · MAME]
  end
  Extensions --> G((GameSourceHub))
  References --> G
  G -->|PC Discovery| D[GameDeck]
  G -->|ROM Discovery · BIOS · cores| R[ROMDeck]
  D --> L[Install and launch on the console]
  R --> L
Project Role
GameSourceHub Collect, match, enrich, check links, publish catalogues and contracts
GameDeck PC store: choose a method, resolve it, install and launch
ROMDeck Console store: prepare the emulator and its dependencies, install and launch

The repository

app/                  FastAPI application
  plugins/            source extension SDK (no source shipped)
  source_packages.py  loading, export, import and translations of extensions
  services/           identities, Discovery, media, links, BIOS, client contracts
  static/             console: scripts, styles, English dictionary (i18n_en.js)
  static/brand/       logo and icon
  templates/          console page
docs/                 guides, API references, per-version notes (French and English)
  examples/           example source extension (JSON feed)
  images/             README screenshots
deployment/           ARM64, systemd and Python launcher examples
tests/                isolated tests (temporary state)
tools/                utilities, including the hosts page
bootstrap.py          launcher and version activation
Dockerfile · docker-compose.yml · requirements.txt

Secrets, instance data, installed extensions, downloads and backups are not part of the repository.

Tests and contributing

python -m pytest -q

Tests use a temporary state, apart from any instance. CONTRIBUTING describes the setup and the expected checks; docs/README.en.md lists all the documentation.

Licence and provenance

This repository does not publish a general licence for GameSourceHub's code yet. Third-party components and metadata keep their own licences and notices: Provenance and licences. The example extension (docs/examples/example-json-feed) is under the MIT licence.


GameSourceHub · Maritime2890/GameSourceHub · Documentation · Changelog · Français