Notes6 min
I tried building Steam
The final project for a programming class asked for a website. I went a bit further than that.

The brief asked for five or six database tables. Citadel ended up as a real desktop launcher, with real games and game servers you can rent.
We had a programming class at school, and the final project, the thing you had to do to pass, was to remake a platform. The options were Airbnb, LinkedIn, MercadoLibre, Despegar, Steam and Duolingo.
I really wanted to make this one. I went all out.
The repository is still called SteamPeroDeLaSalada. Its GitHub description is “Steam 2 Pro Max”. Those names tell you roughly how seriously it started and how seriously it ended.
The brief
The assignment for Steam is a data modelling exercise. It suggests a Usuario, a Desarrollador, a Juego, a Compra, some achievements, reviews, a wishlist and friends. Each of the twelve user stories comes with a checklist: register, publish a game, top up a balance, buy, library, wishlist, reviews, achievements, friends, top games, user stats.
It was meant to be web. Nothing in it needed anyone to upload a game, download one or launch one. A game was a row in a table.
That is a reasonable thing to ask of a class. It just isn’t Steam.
The project spec says what I was actually after, in its list of goals:
Demonstrate real desktop capabilities that peers using browser frontends cannot easily reproduce.
The same list includes “Make architecture and business rules easy to explain to a professor”, which I stand by.
What it became
Citadel is an actual desktop app, not a website pretending to be one. You buy a game, it downloads (and picks up where it left off if your internet dies), installs, and launches from your library. There are friends, chat and invites. Studios get their own portal to upload builds, and nothing hits the store until an admin approves it. You can even link your real Steam account and it’ll find the games you already have installed.
Making it look like something
The first working version looked like a generic dashboard. Technically it matched the references. It also looked vibecoded as hell, with mock data in places it had no business being, and a navigation bar full of things that belonged to games rather than people. I hated it.
The design went through full rebuilds because of that. I did my best on the UI. I collected real Steam screenshots as the reference: how much fits on a store row, how a profile is laid out, how the friends list sits in a corner and stays out of the way.
For the last redesign, I built no pages at all at first. I built the component library: buttons, rows, overlays, media, then a rule that surfaces import the design system directly. Pages came after, and they stopped drifting apart.
This is that library, plus the screens I rebuilt with it. These are the real components, not screenshots, so drag around, zoom in and click things.
There are small jokes in it too, and none of them touch the store, the library or the wallet. The Konami code fires confetti from the bottom corners of the screen. Searching touhou turns the interface monochrome and plays Bad Apple. Searching 777 sends you to a random game. A missing page is a game of Snake, played on a board shaped like “404”.
Real games
A store with fake games is a mockup, so I got my group to make games.
They made silly little games, and they really did make them. One of them remade all of Balatro as BARATO. Another friend made a custom build of Ambidextro called Hambridextro, from hambre, because it’s the poor edition.
That made the part I cared about most real. A studio uploads its game through the developer portal, an admin approves it, and it shows up in the store. You buy it with fake money, download it and launch it from your library. Games can hand out achievements and tell your friends what you’re doing. BARATO has one for reaching ante 4.
They’re web games running inside the app, which means a zip from some classmate gets to run code on your computer. So every game is locked in a box. It can’t reach the internet unless the developer said which sites it needs, it can’t navigate anywhere else, and it can’t touch the parts of the app that do real things on your machine. That’s why BARATO carries its pixel fonts inside the zip instead of downloading them.
The boring parts
The stuff that sounds boring is what I spent the most time on, because it’s what ruins your day on the real Steam.
If a download dies halfway, it picks up where it stopped, and every file gets checked at the end. Updates never happen in place. The new version is unpacked next to the old one, checked, and only swapped in once it’s all fine, so a broken update leaves you with the version that worked. It also won’t unpack a zip that lies about how big it is.
If the school server is on the same network, Citadel downloads from it directly, which is way faster. It doesn’t just trust whatever answers on that address, though. The server has to prove it’s the right one first, otherwise you go over the internet like everyone else.
You can link your actual Steam account too. Citadel asks Steam what you own, then looks through your Steam folders. If a game’s files are already there and match, it adopts them with zero download. If only some match, it fetches the rest. It never writes to Steam’s folders, and the code that deletes games flat out refuses to delete one it adopted, so uninstalling from Citadel can’t wreck your Steam library.
The long shot
The original spec listed multiplayer as a non-goal, in writing. Then we started wanting working game servers.
It was a very long shot. I got it working at like 2 am, the night I finished the whole project.
It works like this:
Publish
A studio uploads a server package. It runs on one of a few runtimes I allow, not whatever they feel like bringing.
Review
Staff approve it, and it becomes something you can rent with points.
Rent
A player buys a lease and the server gets put on a machine.
Operate
The owner can start, stop and restart it, manage its files and read its logs. If the lease runs out, there is some grace before it gets deleted.
The scary part is that renting a server means running other people’s code on my hardware. Only one small service is allowed to start containers, every request to it has to be signed, and the containers get stripped of almost every permission. If a server fails to start, you get your points back, exactly once. A test fails the build if anything else tries to touch Docker. For a while, that test couldn’t actually read the files it was supposed to check, which is about as useful as a smoke detector with no battery.
It’s a single machine. The design allows for more, and that’s as far as I’ll claim. For a class that wanted a table called Juego, I’m fine with that.
Things that went wrong
For a while it was impossible to build an installer at all. A few type errors had been lying around. The normal build doesn’t check types, so it kept passing and nobody noticed. The installer build does check them, so it died before it got anywhere.
Games also used to take their launch ID from the process ID, which Windows reuses. Launch enough times and two IDs would collide. Citadel would then decide the launch had failed while the game was already running, and the play session never closed.
Worth it
Nothing about the assignment asked for any of this. The checklist would have passed long before the first installer. I loved making it anyway.1
Go further into launchersChatGPTClaude
Footnotes
-
It started from a groupmate’s scaffold, which modelled drivers and passengers and had nothing to do with Steam. Another classmate helped on the frontend for a stretch in August. The games are the group’s. ↩