Case study · Setlist · setlist.gg

Runningan online game,alone.

Setlist is a passion project. It is my first game. I am not presenting it for its player count, but for what it taught me: designing an experience, making game design decisions, and keeping an online service running with no team behind me.

  • 99.97%uptime over 29 days (internal probe every 30 s: 21 failures out of almost 77,000)
  • 0.03%server errors: 376 out of 1.13 million requests, 284 of them in two episodes
  • 97%of requests served in under 300 ms, 85% in under 100 ms
  • 1 smaximum data loss in normal operation (continuous replication)
  • 3.4 sto restore the full database (118 MB), a real, timed restore
  • €8a month for the whole production infrastructure

Measured on 9 November 2026 over the 29 days since launch, read-only (Prometheus, Traefik, Litestream). The two error episodes: launch afternoon and the morning of season 2.

The game in two sentences

Every card is a real piece of music, with its artwork, a 30-second preview and a rarity from Common to Legendary. You dig through crates like at a record shop, complete albums, trade, and face your friends in blind tests. A catalog of about 25,000 tracks, refreshed automatically every week, in French and English.

My personal goal: helping people discover music and other cultures. Every week the game highlights three albums, two classics and one discovery, each with its story.

First lines of code on 25 September 2026, version 1.0 live on setlist.gg on 11 October, 16 days later. Since then, one production release a week, on Wednesday at 2 am.

My role: setting the direction

I held every role of a small studio: game designer, architect, ops and support.

I wrote the code with an AI assistant (Claude Code), and I say so openly. What the AI does not do for me is decide: what the game should be, what is fair for players, what ships to production and when. Every feature starts from an intent I formulate, and every release goes through my approval.

I also set up a systematic review: a second agent reads every batch of changes before release, for security, performance and regressions. On an October version, four review passes produced fourteen fixes, all merged before shipping. Four real vulnerabilities were stopped before production, including account creation without a confirmed email through OAuth and a load amplification through the "typing" signal. None of them reached players. On version 0.56.0, two full reviews found one blocking and three important defects, all fixed before release.

What I learned about game design

I had never made a game. The hard questions were not technical:

  • The economy. Players earn "notes" and spend them on digs. An over-generous reward devalues everything else. Before any new bonus, I look at real prices and the median player wallet.
  • Rarity. It does not come from an arbitrary roll: it follows each track's lasting popularity (Deezer, Last.fm, Wikipedia, longevity). A Legendary is a song everyone has known for decades.
  • Frustration. A pity counter guarantees an Ultra Rare after 30 digs without one. Enough to avoid frustration, not enough to make rarity meaningless.
  • Dopamine, measured. A Legendary gets its full-screen celebration. An Ultra Rare gets a quieter effect. And players who dislike animations can turn them off in the settings.
  • No real money. The premium mode, Backstage, is paid only with in-game notes. That is a choice: the music API I use is not commercial, and I do not want a pay-to-win game.
  • Abuse resistance. Referrals, trades, rewards: every mechanic that gives something out was designed not to be farmable (limited accounts per network, rewards paid once, sensitive actions restricted to confirmed email addresses).

The architecture

Deliberately simple, because one person has to be able to understand and repair all of it.

Setlist architecture diagram: players, production VPS, backup and staging homelab. Internet Production VPS · OVH · Docker Swarm · €8 a month Homelab WireGuard tunnel Playersbrowser, iPhone app Deezer CDNartwork, 30 s previews Music sourcesDeezer, MusicBrainz, Last.fm,Wikidata, Genius Discord · Google · BrevoOAuth, announcements, emails TraefikHTTPS, Let's Encrypt, single entry SetlistPocketBase · 119-route APIreal time SQLite40 MB Litestream setlist.gg landing Static sites Monitoring (private network) Prometheus Alertmanager Logs: Loki, Alloy Grafana (private) Backups7 days of restore points DeliveryWednesday 2 am, auto rollback Stagingfull copy, tests only Watchdogexternal probe every minute HTTPS every second image and deploy Setlist architecture diagram: players, production VPS, backup and staging homelab. Internet Playersbrowser, iPhone app HTTPS Production VPS · €8 a month TraefikHTTPS, Let's Encrypt, single entry SetlistPocketBase · 119-route APIreal time SQLite40 MB Homelab · WireGuard tunnel Backups7 days of restore points DeliveryWednesday 2 am, auto rollback

Monitoring and alerts: Prometheus, Alertmanager, Discord.

The game

  • Backend: PocketBase (Go and SQLite), with all game logic in JavaScript hooks: 99 files, about 21,000 lines.
  • Frontend: SvelteKit and Svelte 5, an installable web app on iPhone, about 44,000 lines, two languages and 2,600 translated strings.
  • Real time: messages, read receipts, a "typing" indicator, a friends activity feed.
  • 85 versioned, replayable schema migrations: no database change is ever made by hand.

Production

  • One OVH VPS (2 vCPU, 4 GB of RAM, €8 a month), on Docker Swarm: 14 containers in four separate stacks (Traefik and Let's Encrypt edge, monitoring, game, websites).
  • The game uses 0.07 CPU cores on average over a month, with a measured peak of 1.4 cores over five minutes.
  • Prometheus, Grafana, Loki, Alertmanager, 20 alert rules, each with its likely cause and diagnostic command, and a monitoring tab built into the game's admin panel.
  • Database replicated every second (Litestream) to my homelab over a WireGuard tunnel: 7 days of restore points, one full snapshot a day.

Staging

  • My homelab hosts a full copy of the game, built from the development branch. Everything is tested there before it reaches production.
  • The real game rules, but no public accounts: I never test in production.

A custom game API

All of Setlist's logic goes through an API I designed on top of PocketBase: 197 routes. It is what enforces the game rules, server-side, without ever trusting the client: card draws and the pity counter, blind tests and the ladder, trades and the auction house, groups, real-time messages, rewards and abuse prevention.

It relies on six external sources (Deezer for the catalog and previews, MusicBrainz, Last.fm, Wikidata and Genius for release years, popularity and credits, Discord for the community), with queues and quotas to respect their limits.

It also serves public pages for search engines (card and artist pages, sitemaps), and exposes its own metrics to Prometheus on an endpoint restricted to the private network or protected by token. Per-IP rate limiting protects the whole thing. In numbers, over the first month and 1.1 million successful requests measured by Traefik: 85% served in under 100 ms, 97% in under 300 ms, and a 95th percentile estimated at 260 ms.

Selecta: an AI that keeps the ladder fair

In the Top 50, every game is played against the recorded run of a player at your level. When nobody at that level has played yet, a bot answers instead. The old bot found the right answer at a fixed rate per rank: depending on the rank, players won between 36 and 74% of their games against it. Too easy at the bottom, too hard at the top, and a skewed ladder.

Selecta replaces it. It is a model trained on players' real answers: for each question, it estimates the chance that a player of that rank gets it right, from the round type, the song's popularity, the decoys offered, the genre, the era, and how hard that song and that artist have been for every player before. It never adapts to the person in front of it, so the ladder stays the same for everyone, and it uses no personal data: no email, no messages, no profile.

  • 65 in 100answers anticipated, against 50 by chance
  • 21 sto retrain on every answer, every week
  • 393ranked games played against it in ten days
It anticipates answers 65 times in 100, against a realistic ceiling of 70.

An AUC of 0.654 on the 4,548 answers of the last seven days, never seen in training: given one right and one wrong answer picked at random, Selecta gives the higher chance to the right one 65 times in 100. The model it replaces scores 61.5 on the same answers. In October, on beta data, I showed 66.5: the week tested here is full of new players and songs never asked before, so it is harder to anticipate. A model exactly right about these answers would score 70. The theoretical ceiling, estimated at 76 in October for a model that knew every player and every song perfectly, was not recomputed. A 5-clip game leaves real room for luck: aiming much higher would make no sense.

In real ranked games, every measured rank stays within its margin.

393 ranked games played against Selecta since 31 October, by 10 players, grouped by the player's rank at the time of the game. The targets: 60% wins in Demo to welcome newcomers, 55% in EP, 50% after that. Only ranks with at least 50 games are shown: Platinum (8), Demo (4) and Diamond (3) have too few to conclude. In Gold, players win a little less than the target, still within the margin: that is the rank I am watching.

Every week, without me

  1. Monday at 5:30 am, on my homelab. A fresh copy of production is restored from the database replica, and every game is replayed in order: each answer only sees what existed before it, no leak from the future into training. Production never trains anything.
  2. A three-way duel. A logistic regression and a small neural network, trained without the last week, face the model in service on that week. The new model only wins if it is clearly better, by a margin and two standard errors: one noisy week changes nothing.
  3. Calibrate every rank. The rank's last 400 ranked games are replayed against Selecta, and a binary search finds the strength that gives players their target win share.
  4. Wednesday at 2:30 am, right after the weekly release. The winner goes to production on its own. The game checks it before loading it, keeps the previous one in its history, and a plain-language report lands in my alerts channel. Rolling back is one click in the admin panel.
  5. Monitor and fall back. A dedicated Grafana board, an alert when the model is more than 8 days old. If it is missing, older than 21 days, built on fewer than 1,000 answers or fails its check, the game falls back to the old bot on its own: a game is always created.

The training engine is written in Go; its tests check that it recovers a known truth and rejects damaged input. The first weekly duel, on 2 November, kept the model in service: the new one was not clearly better. The second, on 9 November, clearly beat it: 65.4 against 61.5 on the same week; it goes into service on 11 November.

What it does not know yet

  • Few players. 66 players and 22,737 answers as of 9 November, and only 10 players in ranked games against Selecta: each rank rests on a handful of people. The measurement will sharpen as players arrive.
  • The ends of the ladder. 4 games in Demo, 8 in Platinum, 3 in Diamond: those levels follow the rules but cannot be verified on real games yet.
  • The casual bot. DJ Bot, which adapts to each player, has played only 13 casual games since 31 October (65 answers): too few to check that it aims right. In October, over 409 answers, it predicted 57% correct answers when players found 51%.

What I take from it: an AI in production is a service like any other. A measured check on every version, automatic rollback, an alert when it goes stale, and its limits written down in plain words.

Selecta has been in service since Top 50 season 2, on 31 October 2026. Figures measured on 9 November 2026 on a copy of production, with pseudonymised accounts.

The first real test: a bar, on a Thursday night

Party mode turns Setlist into a room-sized blind test: the bar's big screen shows the rounds, and every player answers from their phone after scanning a QR code, with no app to install and no account to create. On 5 November 2026, it ran in front of a real crowd for the first time.

In numbers: 19 games played to the end, from 10:10 pm to 12:10 am, up to 17 players in the same room, 18 people over the evening, 16 of them without an account. On the server side, about 36,000 requests in two and a half hours, no server error, 97% of responses in under 100 ms and a peak of 0.14 CPU core. The server did not flinch; the room's feedback filled the next release.

Choices and their trade-offs

SQLite rather than PostgreSQL
One machine, one file, simple backups, very fast queries at this scale. The trade-off: no horizontal scaling. If the game ever grew seriously, that would be the first project.
Docker Swarm rather than Kubernetes
Swarm does what I need (rolling deployments, automatic rollback, secrets, networks) without the operational weight of Kubernetes. For a service on a single machine, Kubernetes would have been cost without benefit.
A weekly release train
At first I deployed several times a day. I stopped: everything validated waits on a branch, and a script ships it all on Wednesday at 2 am. If there is nothing new, there is no release. The script builds a clean copy of the code, deploys, checks the game's health, and rolls back to the previous version on its own if that check fails. Players get regular updates without living with constant instability.
Few alerts, but real ones
An alert that fires for nothing ends up ignored. After a series of false positives, I rewrote every rule: an outage is only declared after 5 minutes with no response at all, slowness is only measured on successful requests, and reminders are spaced out. I also added capacity alerts: they tell me, with numbers, when it is time for a bigger server, rather than finding out during a player peak.

A real incident

On 13 October, my homelab shut down during the night. The game itself saw nothing: it runs on the VPS. But the database replication towards the homelab got stuck on a dead connection, and it did not recover when the server came back.

My alert checked that the replication service was running, not that it was actually copying: nothing fired. I found out the same day, while preparing an economy analysis from a copy of the database: the data was a day old.

In numbers: zero data lost, about 25 minutes from discovery to a verified restore. After the repair, I added an alert on actual replication lag, and made the silent copy script loud about failure. The same blockage would now be detected within 30 minutes, against about fifteen hours that day. The lesson I keep: watching that a process runs does not tell you it is doing its job.

What I would do differently

  • A second backup destination, independent from my homelab, from day one.
  • An automatic, daily restore test, rather than discovering a backup is unusable on the day you need it.
  • The weekly release train from week one, instead of adopting it after a few deployments too many.

What Setlist says about how I work

I design systems a small team can actually operate. I prefer a simple, well-monitored architecture to an impressive one nobody understands at 3 am. And I discovered I enjoy designing a player's experience as much as the infrastructure that runs it.

Play on setlist.gg

Let's talk about your project.

Reply within 24 hours. On site in Toulouse, France, remote worldwide.