HexGuardSec/playroom-selfhosted
Acerca de
Self-hosted video game collection: Steam, PlayStation, Xbox and Nintendo in one place
Juegos y emulaciónWhat you can do
- Every platform together: Steam, PlayStation (PS4, PS5 and older trophy lists), Xbox, your retro games from RomM, GOG, Epic and the rest through a Playnite import, and Nintendo games you add by hand. PS4 and PS5 versions of the same game are merged automatically.
- Real covers: official Steam artwork, with IGDB filling in for the other platforms. A wrong cover can be fixed in two clicks.
- Stats that matter: hours played, achievements and trophies, 100% completions, platinum trophies and Gamerscore.
- Activity: GitHub-style calendar, hours per week, streaks and the games of the month.
Crecimiento de estrellas medido
- in 24h
- +2
- in 7 days
- +4
- in 15 days
- Recopilando historial
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
OriginalPlayroom
Your whole video game collection, on your own server.
Steam, PlayStation, Xbox and Nintendo in one place: covers, playtime, achievements, an activity calendar and the pile of games you never started.
▶ Try the live demo · 💬 Give your feedback on nillume.com · Français
[!TIP] Tried Playroom? Tell me what you think. Comments are open on the Playroom page on nillume.com: what works, what is missing, what you would like next. Your feedback decides what goes into the next release, and no GitHub account is needed.
Features
- Every platform together: Steam, PlayStation (PS4, PS5 and older trophy lists), Xbox, your retro games from RomM, GOG, Epic and the rest through a Playnite import, and Nintendo games you add by hand. PS4 and PS5 versions of the same game are merged automatically.
- Real covers: official Steam artwork, with IGDB filling in for the other platforms. A wrong cover can be fixed in two clicks.
- Stats that matter: hours played, achievements and trophies, 100% completions, platinum trophies and Gamerscore.
- Activity: GitHub-style calendar, hours per week, streaks and the games of the month.
- Pile of shame: games you bought and never launched, how long they take to beat, and a roulette for when you cannot decide.
- Ratings: S-to-D tier list, score out of 10 and short reviews.
- Notifications: new achievements, platinum trophies, 100% completions and sync failures sent to Discord, ntfy, Gotify or any webhook.
- Your data stays yours: export to JSON or CSV, and a one-file backup you can restore on a new server.
- Now playing: a live badge when you are in game on Steam, PlayStation or Xbox.
- Online games (MMOs, competitive games) kept apart from the solo ones, detected automatically.
- 15 languages: English, French, Spanish, German, Italian, Portuguese (Brazil), Dutch, Polish, Russian, Turkish, Arabic, Japanese, Korean, Simplified and Traditional Chinese.
- Your account, your rules: sign in with a password, and choose whether visitors can see your collection.
- Light and self-contained: Node.js only, zero npm dependencies, one Docker container.
| Game page | Activity | Phone |
|---|---|---|
![]() |
![]() |
![]() |
| Consoles | PC | Emulators |
|---|---|---|
![]() |
![]() |
![]() |
A Nillume project
Playroom is part of Nillume, my collection of open source self-hosting tools designed with security first. nillume.com is the place to:
- give your feedback: comment on the Playroom page with a free account, with two-factor authentication available;
- follow what is coming: the journal has release notes and behind the scenes;
- discover the next tools, which are announced there first.
Quick start
With Docker and the prebuilt image (amd64 and arm64, so a Raspberry Pi works too):
mkdir playroom && cd playroom
curl -o compose.yaml https://raw.githubusercontent.com/HexGuardSec/playroom-selfhosted/main/docker-compose.example.yml
mkdir data && sudo chown 1000:1000 data # the container runs as user 1000
docker compose up -d
docker compose logs | grep -i "setup code"
Prefer to build it yourself? git clone this repository, run mkdir -p data && sudo chown 1000:1000 data, then docker compose up -d --build.
Open http://YOUR-SERVER:8080. The setup page asks for:
- The setup code printed in the server logs. It proves the server is yours: without it, whoever opened the site first could create the account.
- A username and a password (at least 10 characters).
- Your API keys. Each one is optional and comes with a link explaining how to get it. You can add or change them later in Settings.
- The site name and who can see it: everyone (read only) or only you.
Your first sync starts right away.

Just looking?
DEMO=true node server.js
This starts a read-only fake collection on http://localhost:8080, with nothing to configure.
Without a server: portable version (Windows and Linux)
Download Playroom-<version>-windows-x64.zip or Playroom-<version>-linux-x64.tar.gz from the releases, unzip, then double-click Playroom.exe (Windows) or run ./playroom.sh (Linux). Nothing to install, no account to create anywhere, and your data stays on your computer. Details in portable/GUIDE.md.
Without Docker
Requires Node.js 22 or newer, on Debian or Ubuntu:
sudo ./deploy/install.sh # installs Node 22, copies to /opt/playroom, creates a systemd service
journalctl -u playroom | grep -i "setup code"
Unraid, CasaOS and Proxmox
- Unraid: in the Docker tab, Add Container, then paste this template URL in Template repositories (Docker settings) or import it directly:
https://raw.githubusercontent.com/HexGuardSec/playroom-selfhosted/main/deploy/unraid/playroom.xml - CasaOS: App Store → Custom Install → Import, and paste
deploy/casaos/docker-compose.yml. - Proxmox VE: run the Docker compose file in an LXC container or a VM with Docker, or use
deploy/install.shin a Debian container.
Getting the API keys
| Platform | Where | Notes |
|---|---|---|
| Steam | steamcommunity.com/dev/apikey | Any domain name works. Your profile and Game details must be public (Steam profile, privacy settings). The profile field accepts a SteamID64, a custom URL name or a profile link. |
| PlayStation | Sign in on playstation.com, then open ca.account.sony.com/api/v1/ssocookie | Copy the npsso value (64 characters). It expires after about two months. |
| Xbox | xbl.io | Free OpenXBL key tied to your Microsoft account. Playtime costs one request per game, so it fills in over a few syncs. |
| IGDB | dev.twitch.tv/console/apps | Optional but recommended: covers, time to beat and online game detection. Use http://localhost as the OAuth redirect. |
| Nintendo | No API | Add your games with + Add a game on the Nintendo page. Playtime is shown on the console. |
| RomM | Your RomM server (how to create a token) | Create a token with only roms.read and platforms.read, plus roms.user.read and devices.read for playtime (all read only; RomM ticks every permission by default: untick the others), then enter the server address and the token in Settings. The games land in an Emulators tab, filtered by source. Covers come from RomM. Playtime and the activity calendar come from RomM's play sessions (RomM 4.9 or later, only what your RomM apps report); without the last two permissions, games sync without playtime. |
| Playnite | Playnite on your PC | Install the Library Exporter Advanced extension, export your library to CSV, then import the file in Settings. The games land in a PC tab, next to your Steam games, filtered by store (Steam, GOG, Epic Games, EA app, Ubisoft Connect, itch.io, other). Import it again whenever you want to refresh. |
PlayStation has no public API. Playroom uses the same endpoints as the official mobile app, like the open source psn-api project. They may change without notice.
Configuration
Everything you need is set from the website. The optional .env file only holds technical settings. Copy .env.example to .env to change them:
| Variable | Default | Purpose |
|---|---|---|
PORT |
8080 |
Port the server listens on |
TZ |
system | Time zone used to split days in the calendar |
SYNC_INTERVAL_HOURS |
6 |
Automatic sync interval, 0 to disable |
PRESENCE_INTERVAL_SECONDS |
120 |
"Now playing" check interval, 0 to disable |
TRUST_PROXY |
false |
Set to true behind a reverse proxy that handles HTTPS |
DEMO |
false |
Fake read-only collection |
UPDATE_CHECK |
true |
Once a day, ask GitHub whether a newer release exists (shown to you only), false to disable |
API keys can also be set there (STEAM_API_KEY, PSN_NPSSO, ROMM_URL, ROMM_TOKEN, WEBHOOK_TYPE, WEBHOOK_URL, WEBHOOK_EVENTS…). Values saved from the website take precedence.
Notifications
In Settings › Notifications, pick a service and paste its address:
| Service | Address |
|---|---|
| Discord | Channel settings › Integrations › Webhooks › Copy webhook URL |
| ntfy | The topic address, for example https://ntfy.sh/my-playroom-topic |
| Gotify | https://gotify.example.com/message?token=<app token> |
| JSON | Any URL that accepts a POST with a JSON body (app, title, text, events) |
Messages are sent after a sync, only for changes: new achievements and trophies, platinum trophies, games reaching 100%, and platforms that failed to sync. The first sync never sends anything. Send a test checks the address right away.
Security
Playroom is meant to run on your own network, or behind HTTPS if you open it to the internet.
- Passwords are hashed with scrypt and never stored in clear text. Sessions use an
HttpOnly,SameSite=Strictcookie, plusSecureover HTTPS, valid for 30 days. Changing the password signs out every other device. - Brute force: 10 failed attempts within 15 minutes block the IP address.
- CSRF: changes must come from the site itself.
- Headers: strict Content Security Policy (no third-party scripts), no framing,
nosniff,no-referrer. - API keys never leave the server: Settings only shows their last four characters, and they are stripped from logs and error messages.
- Container: runs as a non-root user, with a read-only file system except
data/, no capabilities andno-new-privileges. - Data at rest:
data/account.json,data/sessions.jsonanddata/settings.jsonare only readable by the server user (mode 600), but they are not encrypted. Protect access to the server and to its backups.
Exposing it to the internet
Put it behind a reverse proxy with HTTPS and set TRUST_PROXY=true. With Caddy:
playroom.example.com {
reverse_proxy 192.168.1.10:8080
}
Found a vulnerability? See SECURITY.md.
Dashboard widget
GET /api/widget returns a flat summary (games, hours, achievements, completions, status) for dashboards such as Homepage, Homarr or Dashy. If your collection is private, use the address with its key, shown in Settings. Example for Homepage:
- Playroom:
icon: mdi-gamepad-variant
href: http://playroom.lan:8080
widget:
type: customapi
url: http://playroom.lan:8080/api/widget
mappings:
- field: games
label: Games
- field: hours
label: Hours
- field: status
label: Status
Backups and maintenance
- Back up from Settings › Your data. Download a backup saves everything needed to rebuild the installation (account, keys, ratings, Nintendo games, Playnite import, history) in one
.json.gzfile. Restore loads it on a new server and asks for the current password first. The file contains your API keys: keep it somewhere safe. - Export: Download JSON or Download CSV gives your collection with ratings and notes, without any key, to keep or open in a spreadsheet.
- Or back up the
data/folder directly. History cannot be rebuilt, so keep a copy. - Update:
docker compose pull && docker compose up -d(orgit pull && docker compose up -d --buildif you build it yourself). - Forgot your password? Stop the server, delete
data/account.jsonanddata/sessions.json, then start it again. A new setup code appears in the logs. Your collection and keys are kept.
How it works
server.js HTTP server, API, security, scheduled sync
src/auth.js account, password hashing, sessions, setup code
src/settings.js settings and API keys saved from the website
src/sync.js platform sync, writes data/library.json
src/connectors/ steam, playstation, xbox, nintendo, romm, playnite, igdb
src/notify.js notifications after each sync
src/portability.js export, backup and restore
src/history.js activity history (playtime per day)
src/notes.js ratings, picked covers, hidden games
src/presence.js "now playing"
public/ the website: index.html, app.js, styles.css, i18n.js, lang/
test/ automated tests
Each sync compares playtime with the previous one and credits the difference to the day the game was last played, so the calendar gets more precise with more frequent syncs. Steam achievements carry their own unlock dates and fill in the past.
Contributing
Bug reports, translations and pull requests are welcome. Questions, ideas or just want to chat? Join the Discord server, or leave a comment on nillume.com if you do not use GitHub. Start with CONTRIBUTING.md. Before opening a pull request, run:
npm run check && npm test
Roadmap
What comes next, with target dates: ROADMAP.md.
Policies
- Security policy: how to report a vulnerability privately.
- Privacy: what Playroom stores, and which services it contacts. No telemetry.
- Legal notice: trademarks, third-party API terms, no piracy, no warranty.
- Code of conduct and getting help.
Code signing policy
Free code signing provided by SignPath.io, certificate by SignPath Foundation (application pending: downloads are not signed yet). Roles and details: CODE_SIGNING_POLICY.md. Privacy: PRIVACY.md.
Disclaimer
Playroom is an independent project, not affiliated with or endorsed by Valve, Sony Interactive Entertainment, Microsoft, Nintendo, Twitch or Playnite. Game names, covers and logos belong to their respective owners.
AI declaration
Playroom was built with significant help from an AI assistant. AI-DECLARATION.md says what the AI did and what a human did.
License
GNU Affero General Public License v3.0. You may use, study, modify and share Playroom. If you run a modified version for other people, including over a network, you must publish your changes under the same license.
Explorar proyectos relacionados
Cargando…






