OpenGame Linux tells a player whether a Windows game runs on Linux, based only on community test reports that a reviewer approved. A visitor searches the catalog, which forgives typos, and opens a game's page to see its computed state, the environments that were tested, and how each Wine or Proton version fared over time. They can run a detector script to compare their computer with a game's known conditions, and follow a step-by-step configuration profile for Wine or Proton. Signed-in users report results, propose solutions and configuration profiles, request games the catalog lacks, follow the review of each one under "Mis aportes", and can follow a game to see on "Seguidos" what changed since they last looked. A game's state can also leave the app, as a status badge to embed on another site and as the preview image of a shared link. Reviewers approve reports, solutions and profiles before they count, write the adoption guides, and add requested games, filling them from the Steam store. The interface is in Spanish and English.
Created in T3 Code.
- Node.js 24.22.1 or later (the scripts run TypeScript directly; 24.22.1 fixes CVE-2026-111497 in Brotli).
- pnpm.
- Docker with Compose, for the local PostgreSQL 18 container.
-
Install the dependencies.
pnpm install
-
Copy
.env.exampleto.env.DATABASE_URLis the dev database, andDATABASE_URL_TESTmust name a database that ends in_test. SetBETTER_AUTH_SECRETto a long random string, for example the output ofopenssl rand -base64 32.BETTER_AUTH_URLis the address you open in the browser. -
Start the database container. It listens on port 55432 and creates the
opengameandopengame_testdatabases on first start.pnpm db:up
-
Apply the migrations. A second run applies nothing. The search needs PostgreSQL's
pg_trgmextension, which the migration creates; it ships with thepostgresimage and needs no superuser.pnpm db:migrate
-
Load the demo catalog, profiles, guides, accounts and reports. A second run adds nothing.
pnpm db:seed
-
Start the dev server and open http://localhost:3000.
pnpm dev
pnpm db:reset <database> empties and migrates the database in DATABASE_URL. It runs only when <database> is that database's name.
The seed creates four accounts. They all use the password opengame-demo.
| Account | Role |
|---|---|
[email protected] |
revisor |
[email protected] |
administrador |
[email protected] |
usuario |
[email protected] |
usuario |
Content written by these accounts shows the "Datos de ejemplo" stamp. You can also create your own account at /registro.
On a freshly seeded database, demo_ana's diagnosis "PC familiar de Ana" is saved with a Steam library, so its page opens with the library summary: how many of her games have evidence that they work on Linux, and which ones hold her back.
An administrador changes roles at /admin/usuarios, and can deactivate an account there. Deactivating signs the account out everywhere, and it cannot sign in again until it is reactivated. Because the demo password is public, demo_admin sees and changes only the demo accounts. To make the first administrador, or to change a role from a terminal, run pnpm set-role <email> <usuario|revisor|administrador>, which also reactivates the account. Neither demotes or deactivates the last active administrador, and an administrador cannot remove their own access. A change applies on the account's next request.
pnpm set-role [email protected] revisorA game's page can also show aggregate numbers from ProtonDB, in their own section. They never change the state that OpenGame computes from approved reports. ProtonDB publishes a monthly export at github.com/bdefore/protondb-data: one reports/reports_<month><day>_<year>.tar.gz file holding a single reports_piiremoved.json.
To import the newest export, run the import with --latest. It finds the newest file in the reports/ folder of that repository, downloads it and reads the JSON out of the archive as it arrives, so nothing is extracted to disk. A download that is not the exact file GitHub lists fails and changes nothing. If that export was already imported and no Steam game was added to the catalog since, it stops after one small request and downloads nothing.
pnpm db:protondb --latestTo import an export you already have, pipe the JSON in. The command reads standard input when the argument is -. You can also pass the path of an extracted reports_piiremoved.json.
tar -xzOf reports_oct1_2026.tar.gz | pnpm db:protondb -The import keeps one row of counts per catalog game with a Steam edition, matched by the edition's store identifier (the Steam appId). It stores no individual report. It reads the whole file before it changes the database, then replaces the previous import in one transaction. Importing the same export again leaves the same rows. An empty or truncated file, or an export older than the one already imported, fails and changes nothing. "Last year" on the page means the 12 months before the export's newest report.
A game a reviewer adds gets its row at the next import. The scheduled import below notices the new Steam game and imports again the next day. To import an export again anyway, for example after a change to what the counts mean, pass the file or -, because --latest skips an export it already imported.
The data is licensed under the Open Database License (ODbL) 1.0. Every page that shows it carries the attribution "Datos de ProtonDB, licencia ODbL" with links to ProtonDB and the license. The license's share-alike terms apply if you publish a database derived from it.
A game's page also shows what AreWeAntiCheatYet says about the game's anti-cheat on Linux: its status (Supported, Running, Planned, Broken or Denied), the anti-cheats it uses and the date the list last changed the entry. AreWeAntiCheatYet is a community list kept in one games.json file at github.com/AreWeAntiCheatYet/AreWeAntiCheatYet. Like ProtonDB, it never changes the state that OpenGame computes. The catalog uses it in two places. The "Sin bloqueo anti-cheat" filter also hides games the list marks Broken or Denied, and their cards say so, with the list's name.
pnpm db:anticheat --latest--latest downloads games.json only when it changed since the last import, or when a Steam game was added to the catalog. You can also pass a path to a games.json, or - to read it from standard input. The import matches entries by the Steam edition's appId, as the ProtonDB import does. When two entries name the same appId, the one the list changed most recently wins. It replaces the previous import in one transaction. An empty, truncated or unreadable file fails and changes nothing, and so does a download that is not the exact file GitHub lists.
The list is published under the MIT License, Copyright © 2021 Starz0r and Curve, which allows reuse as long as the copyright and permission notice go with it. Every page that shows the data carries "Datos de AreWeAntiCheatYet, licencia MIT", with links to the site and to that license.
The Docker deployment below runs both imports by itself. Its imports service waits until app has applied the migrations, then runs pnpm db:anticheat --latest and pnpm db:protondb --latest once a day, starting when the container starts. Each import runs in its own process in its own container, so a failed or slow import never reaches the app. A failure is logged and tried again the next day. An unchanged source costs one request to the GitHub API, and the service makes two a day, well under GitHub's limit of 60 an hour without a token.
Read what the last runs did in the service's logs, in Coolify's Logs tab for imports or with docker compose ... logs imports.
To run an import by hand, open a terminal in the app or imports container and run either command above, for example pnpm db:protondb --latest. With plain Docker, pipe a local export into the running app container. The -T flag lets standard input through.
tar -xzOf reports_oct1_2026.tar.gz | docker compose -p opengame-prod --env-file .env.prod -f compose.prod.yaml -f compose.local.yaml exec -T app pnpm db:protondb -To turn the schedule off, set SCHEDULED_IMPORTS=off and deploy again. The imports container then logs that it is off and does nothing. The data already imported stays.
Every page lives under a language: http://localhost:3000/es and http://localhost:3000/en, /en/juegos/12 beside /es/juegos/12. The path after the language stays Spanish in both. A link without a language, such as /juegos/12?x=1, an old bookmark or the /diagnostico/importar#d=… of a detector downloaded before the scripts named a language, redirects to the same path and query in the visitor's language: the one they last picked with the header's language link (a lang cookie), else the first of Spanish or English their browser asks for, else Spanish. The #fragment survives the redirect. /api/auth/*, the detector scripts and the images never take a language prefix.
Content people write (game descriptions, reports, solutions, profile steps, guides) shows as written, in both interfaces.
To add a string:
- Add it to the page area's Spanish dictionary in
src/ui/i18n/es/(for examplecatalog.tsx), which is the source. A plural or an interpolation is a function:games: (n: number) => count(n, 'juego', 'juegos'). - Run
pnpm exec tsc --noEmit. It now fails on the same key insrc/ui/i18n/en/until you add the English text there. - Read it in the component with
const t = useT(), ast.catalog.games(n).
A message the server or a Schema produces travels as a code (Rule, CheckMessage in src/domain/checks.ts), and each dictionary words it. src/ui/i18n/copy.test.ts fails when Spanish text lands in a component instead of a dictionary.
The detector reads the hardware and the installed Steam games, without root or admin rights. It opens the app's import page with the result in the URL fragment. Nothing is saved until you choose to save it, and the Steam game list is saved only if you check its box.
On Linux, run the Bash script with --open.
curl -fsSL http://localhost:3000/opengame-detect.sh | bash -s -- --openTo print the URL instead of opening a browser, set OPENGAME_DRY=1.
curl -s http://localhost:3000/opengame-detect.sh | OPENGAME_DRY=1 bash -s -- --openOn Windows 10 or 11, run the PowerShell script in a PowerShell window.
irm http://localhost:3000/opengame-detect.ps1 | iexTo read the script before you run it, download http://localhost:3000/opengame-detect.ps1 (the page links it as "Descargar opengame-detect.ps1"), then run the file.
powershell -ExecutionPolicy Bypass -File .\opengame-detect.ps1If the result is too long for a URL, the Windows script copies it to the clipboard and opens /es/diagnostico?pegar=1 (or /en/…), where you paste it. The Linux script prints it for you to paste instead. Both scripts accept OPENGAME_DRY=1.
The /diagnostico page shows both commands, and it also accepts the pasted output or a manual form. The scripts print their instructions in Spanish and open the Spanish pages, unless their address asks for English with ?lang=en, as the English page's commands, download links and the game page's --game command do. The commands quote that address, because zsh reads ? as a wildcard. OPENGAME_LANG=en does the same for a script already downloaded.
On a Steam Deck, the Linux script reads the model (LCD or OLED) from the firmware, and the diagnosis says so. The manual form has the same choice.
To report a game you played through Steam on Linux, run the Linux script with --game and the game's Steam app id. A game's page shows this command with its id filled in.
curl -fsSL http://localhost:3000/opengame-detect.sh | bash -s -- --game 1245620Besides the hardware, the script reads which compatibility tool last ran that game and its exact release (for example Proton 9.0-2), the game's launch options and its build id. The import page then asks you to save the diagnosis, signing you in first if needed, and opens the game's report form already filled in. You review every field and send it yourself. Launch options go into the observations, because a report has no field for them. The Windows script has no report mode, because a report needs a diagnosis made on Linux.
Each game has two images, computed from its approved reports on every request like its page:
/juegos/<id>/badge.svgis a badge that reads "OpenGame Linux | " in the state's color. The game page's "Compartir" section shows it with its Markdown and HTML codes, ready to paste into a README, a forum or a website./juegos/<id>/og.pngis a 1200×630 preview with the game's title over its cover art, its state and its number of approved reports.
When a demo account's report counts toward the state, both images and the link preview carry the "Datos de ejemplo" stamp, as the game page does.
Both answer 404 for an id that names no game, and let caches keep them for five minutes, so a new approval shows within that time. Their text is Spanish unless the URL asks for English with ?lang=en, as the English game page and its badge codes do. The codes link to the game's page without a language, so each reader opens it in their own. Every page carries Open Graph and Twitter card tags, so a shared link unfurls with a preview: a game's page uses its own image, and every other page uses /og.png. The badge codes and the tags use absolute URLs built from BETTER_AUTH_URL.
The diagnosis projects what a GPU can do on Linux from its PCI id. The id table, src/server/gpu/families.generated.ts, is generated from pinned Mesa, Linux and pci.ids sources. Do not edit it by hand. The Steam Deck's APUs come from pci.ids by codename, because the Linux driver matches them by PCI class and lists no id for them.
To recognize newer GPUs, bump the pins in scripts/generate-gpus.ts, then regenerate the table. Review the printed counts and the diff before you commit.
pnpm gpu:generateThe run downloads the sources and fails if a source has a line or a chip it cannot read, or fewer ids than expected.
pnpm checkThis runs route generation, tsc, oxlint, Vitest, vite build and a guard that keeps server code out of the browser bundle. The tests in tests/ need the database container. They empty and migrate DATABASE_URL_TEST once per run. The PowerShell detector tests need pwsh on the PATH or Docker with the mcr.microsoft.com/powershell image pulled. Without either, Vitest skips them and names the reason.
The parity harness is a visual and markup regression test for any two versions of the app. It proves that a change, such as a refactor or a dependency upgrade, leaves everything a player sees and sends exactly as it was. It builds the two versions, gives each its own database, and compares what each one serves.
-
Start the database container with
pnpm db:up. -
Install the browser that the harness uses. Run this command once per machine.
pnpm exec playwright-core install chromium-headless-shell -
Compare your working tree, uncommitted edits included, with a base ref.
pnpm parity compare --base main
To compare two commits, pass both.
pnpm parity compare --base main --head my-branch
--base and --head each take a git ref or a directory, and --head defaults to the current directory. --out names the output directory, and the default is a new directory in the system temporary directory. Each side runs in a temporary copy, with its own database named opengame_parity_* and its own port. The harness deletes both when the run ends.
Each side seeds its database with a frozen clock and seeded randomness. Then demo_ana files a report and demo_revisor approves it. The harness requests every route in scripts/parity/capture.ts as an anonymous visitor, as demo_ana and as demo_revisor. It saves the following:
- The status, the
Locationheader and the content type. - The HTML, or the body of a response that is not HTML, such as the two detector scripts.
- Full-page screenshots at 1280 px and 390 px wide.
- The sign-in JSON.
The comparison passes only when every check below passes:
-
Screenshots are identical pixel for pixel. ImageMagick measures a pair whose files differ.
-
The HTML is byte-identical after the harness removes every
<script>element and replaces/assets/file names. Before it compares, the harness changes each renamed name in the head back to the old name, asscripts/parity/markup-map.jsonlists it. Each section of the map applies to one place only:classesapplies to names inclass.idsapplies toid,for, thearia-*attributes that refer to anid, such asaria-labelledby, andurl(#…)references infill,stroke,clip-path,maskandfilter. It never applies tohref. An id that starts with a ReactuseIdprefix, such as_R_15iq_, maps by the name after the prefix.customPropertiesapplies to--names instyle.dataAttributesapplies to the names ofdata-*attributes. Their values are not changed.formFieldsapplies tonameoninput,select,textareaandbutton.
URLs, query strings, form values and text are never changed, so a map entry cannot hide a change to them.
-
The router data in the page has the same values in the same order, with the same number of object keys. Most key names can differ. These keys must match, because they carry data:
- Numeric keys.
- Route ids, which start with
/. Route param names such as$gameIdcan differ. - Values that a CHECK constraint in the base database allows, such as
funciona. The harness reads them from the base database intofrozen-literals.json.
-
The sign-in JSON is byte-identical after the harness replaces each
tokenorsecretvalue with its length. A token depends on how many random values the app drew before sign-in. -
Every other file is byte-identical.
The command prints one block for each difference, then one line like parity: 0 differences across 506 captures. The next line, harness: <hash>, is the SHA-256 of the files in scripts/parity/, so a reviewer can see when a change edits the harness. It exits with 1 if it finds a difference. The output directory keeps both captures, the logs, and a diff image for each screenshot that differs. To capture a side once and reuse it, run pnpm parity capture --ref <ref> --out <dir>, then pass that directory as --base or --head.
pnpm build
pnpm startpnpm build produces a Node server in .output/, built by Nitro. pnpm start runs it on port 3000 and reads .env; variables already set in the environment win. Set PORT to use another port, and set BETTER_AUTH_URL to the public address, because sign-in accepts only requests from that origin, and the detector command, the badge codes and the link preview tags are built from it. Extra origins go in BETTER_AUTH_TRUSTED_ORIGINS, comma-separated. The badge and preview images read their fonts from node_modules, so run the server where pnpm install ran, as the Docker image does.
The server makes one outbound request: when a reviewer presses "Rellenar desde Steam" on /catalogo/nuevo, it asks https://store.steampowered.com/api/appdetails for that game, with a 5-second timeout. If the host cannot reach the Steam store, the form says so and the reviewer fills it by hand.
compose.prod.yaml runs the app, PostgreSQL 18 and the daily scheduled imports in Docker. The app container applies pending migrations on every start, then serves on port 3000. No container publishes a port to the host, so a reverse proxy must front the app. The database lives in the datos volume.
The stack reads five variables, listed in .env.prod.example:
POSTGRES_PASSWORD. Useopenssl rand -hex 32, because the app puts it in a database URL.BETTER_AUTH_SECRET. Useopenssl rand -base64 32.BETTER_AUTH_URL. The public https address, for examplehttps://opengame.example.com. Sign-in accepts only this origin, and the detector command, the badge codes and the link preview tags are built from it.BETTER_AUTH_TRUSTED_ORIGINS. Optional extra origins, comma-separated.SCHEDULED_IMPORTS. Optional.offturns the scheduled imports off.
- In Coolify, select New Resource, then Public Repository, and enter
https://github.com/StivenKN/open-game-linux. Select the branch. - Set Build Pack to Docker Compose and the compose location to
/compose.prod.yaml. - In Environment Variables, fill in the variables above. Coolify blocks the deploy until the required ones have a value.
- Set the domain of the
appservice tohttps://<domain>:3000. The:3000tells Coolify which container port receives the requests. You can also let Coolify generate an sslip.io domain. SetBETTER_AUTH_URLto the same https address, without the port. - Deploy.
- Load the demo data once. Open the
appcontainer's Terminal tab in Coolify and runpnpm db:seed. Make your own account administrador from the same terminal withpnpm set-role <email> administrador, then manage the other roles at/admin/usuarios.
Every later deploy rebuilds the image and keeps the database.
-
Clone the repository on the server, copy
.env.prod.exampleto.env.prod, and fill it in. -
Publish the app on the loopback interface with a
compose.local.yamlnext to it:services: app: ports: ["127.0.0.1:3000:3000"]
-
Start the stack, then load the demo data once. To update, run
git pulland the first command again.docker compose -p opengame-prod --env-file .env.prod -f compose.prod.yaml -f compose.local.yaml up -d --build docker compose -p opengame-prod --env-file .env.prod -f compose.prod.yaml -f compose.local.yaml exec app pnpm db:seed -
Serve it over https from the host's reverse proxy. With Caddy, the whole site entry is
opengame.example.com { reverse_proxy 127.0.0.1:3000 }.
docs/architecture/ holds the design. Start with ARCHITECTURE.md. MODULES.md maps the directories, PLAN.md lists the build units and cuts, RATIONALE.md records the decisions, and cobertura.md maps each requirement to its route, server program, tests and screenshots. The interface is in Spanish and English, and the code is in English. GLOSSARY.md maps each Spanish term to its English code name and to its word in the English interface, and lists the Spanish names that stay because they are URLs, stored data or other contracts.