A platform for a gaming org
I've flown with Vanguard for years, and a lot of my friends fly there too. When the org outgrew its website, I offered to build what it actually needed: one system that knows who its people are.
How I ended up building it
I've been playing Star Citizen for 13 years, and I've been with Vanguard for several of them. A lot of my good friends fly there, and the community matters a great deal to me.
If you've never been around a Star Citizen org, it's easy to picture a Discord server with a logo on it. Vanguard runs more like a small military, with a chain of command, a training academy with courses and instructors, its own books, and an operation on the calendar most nights.
For eight years, all of that lived in Wix, with spreadsheets and Discord bots filling the gaps. Every tool the org added to close one gap became another place to copy data into by hand. The same member could exist in several places at once, and officers were spending hours every week keeping them in sync. When the website became more expensive to keep than it was worth, I offered to build the replacement. I'm an engineer, and I was already there.
The website was the smallest part of the job, though. What the org needed was one system that knew who its people were, with everything else hanging off that. It runs on Tome, the platform that was already running Wabbit's sites, and as of November 2026 it's 104 data collections, 145 pages, 36 background jobs and about 900 test files, with 34 written decision records explaining why it's built the way it is.
I'm the only engineer on it. The architecture, the design calls and the review are mine, and I use AI coding tools to get the implementation done faster.
One member, start to finish
A new recruit starts in the academy. Their course shows the outline, the lesson they're on and the next module queued up. When they're ready for a practical exam, they request one, an instructor claims it, it gets scheduled into a live session, and then it's graded. Every certification they earn lands in a registry that says when and how it was earned, which is the training record an auditor would ask for, already kept.
On an operation night, the crew opens one screen with the comms plan, their assignment, the area of operations and a readiness check. Some of what's on that screen depends on who's looking. Location records can be classified, and an operation's leader can read participants in for the length of that operation, with a record of who approved it.
Afterward comes the after-action report. Sometimes there's an award, presented with a citation that says who presented it and when, and that citation goes on the member's record instead of scrolling away in a chat channel. Signal, the org's own publication, is written in the same system, so the briefings and recaps sit right next to the work they describe.
Every one of those screens has to agree about who the member is. That was the first decision I made, and it's the one everything else depends on.

A login isn't a person
In most web apps, the account is the person. You sign up, you log in, and that login is you. That falls apart in an org like Vanguard, and the reason is somebody's last day. When a member is discharged, the org wants two opposite things at once: their access should end immediately, and everything they did should stay on the record. Their rank, their service history, the operations they flew, the courses they taught. If the login and the person are the same record, you can't have both.
So I split them. A user is a login. A member is the org's record of a person (rank, billet, standing, units and history), and there's one link between the two. Everything the org cares about points at the member. On a discharge, the login is banned and its sessions end on the spot, the member's billets open up, their staff seats are released, and the record stays right where it was.
I pulled rank and billet apart for a similar reason. Rank is what you've earned. A billet is the job you're doing right now. When those were one ladder, stepping down from a job looked like a demotion, so people hung on to jobs they didn't want anymore. Now an officer can hand off a billet and keep every stripe.
That design puts the org's whole structure into the data, so every permission question becomes a question about relationships. Is this person in this unit? Do they lead it? Do they teach this course? With close to a hundred collections asking questions like that, depth is the thing I manage most carefully. When I profiled an ordinary signed-in request in September, it was making more than 200 database calls before doing any real work, because the framework's sign-in step ran every collection's access rules up front. One page spent 2.3 of its 2.6 seconds there. I narrowed sign-in to one question (who are you?) and moved the permission checks to the code that actually needs them, and the slow pages got fast.

Need to know, enforced by the server
Vanguard has six clearance levels, tied to rank, and a lot of what the org writes down isn't meant for everyone. An after-action report, an operation or a map can mark individual passages for a clearance level, and the server cuts whatever a reader isn't cleared for before the page is ever sent. Someone below the line sees restricted fields blanked and classified lists emptied, and there's nothing sitting in the browser for anyone to go digging for.
Redaction lives in the data layer, in 28 functions that each take a record and a viewer. The framework's own field hooks run before related records are loaded, so a rule that needs to know the reader's unit can't be enforced there. And a rule that only the page obeys is one request away from a leak, so access is enforced at the API.
Two rules sit underneath all of it. If the server can't tell who's asking, or what they're cleared for, they get the most redacted version. And any access rule nobody wrote defaults to administrators only, with a test that fails if that default ever stops being the last thing applied.


Prove the records first
Before I built a single feature, I built the migration. Eight years of records were about to move, and every feature after that would sit on top of whatever came across.
I started with two members. Then the ranks, the units and the wings, checking each time that every person still sat in the right spot in the chain of command. Only once that held up did I start building on it.
The import scripts can run dry, and they can run twice without duplicating anything. They refuse to touch a database that isn't local unless I tell them to, and they write down every reference they can't resolve. By September 2026 they'd carried over 1,351 member records, 3,555 events and more than 10,000 certification awards.
The one thing that couldn't come across was logins. So when a member comes back, they prove their game handle is theirs, and their new login gets attached to the history that's been waiting for them. Anyone who left on bad terms goes to an officer first.
The week the site froze
The hardest week the platform has had ran from September 12 to 15. For four evenings, the site would freeze for seven to fifteen minutes at a time. The database was nearly idle, at 1 to 7 percent CPU, while the web server ran at 140 percent and its memory climbed from 700 MB to 2.1 GB. The "slow queries" in the error tracker were really requests waiting in line behind a blocked server.
Freezes like that are hard to catch, because averaged charts smooth them out. Memory averaged over fifteen minutes looked fine, and the same data charted as ten-minute peaks showed every spike. So I went to the database directly, sampled its activity every ten seconds, and waited for the next one. When it hit, those ten seconds held about 1,450 member lookups and a burst that read 162,000 lesson documents. Only one rule in the codebase read lessons that way: the one that decides who can see a quiz's answer key.
From there the numbers lined up. The org had 166 quizzes with 1,448 answer fields between them, and opening the lesson editor had the framework check all 1,448 at the same instant. The rule cached its result, which works fine one check at a time. With 1,448 starting together, none of them had a result to share yet, so each one did the full lookup.
I changed it to share the lookup while it's still in flight, so every check after the first waits on it. A test now fires 1,450 checks at once and fails if they produce more than one member lookup, and the request that used to freeze the site returns in 0.7 seconds.
It took four evenings to find because it only showed up for instructors who weren't administrators, and it grew with every quiz the academy added.
The same week, there was a second problem with a completely different signature. CPU sat at about 120 percent for 41 hours in a flat line, day and night. Real traffic rises and falls with the people using it, so a flat line meant something was talking to itself. A dashboard tab left open past its session had sent a form action. The site's signed-out rule redirected it, and the framework version I was on forwarded it back with no limit, so one request circled about five times a second until a restart. Every lap reused the first request's trace ID, which is why monitoring read it as one long request. Signed-out action requests are now refused outright. CPU fell from about 120 percent to about 1 within fifteen minutes of that change on the 13th, and the framework has since added its own guard.
What I'd do differently
I'd build the bug-report system first.
Members were reporting problems from early on, and that's the best thing a user base can do for you. Those reports came in through chat, though, where they scroll away. Now any member can file a report from inside the platform. It gets triaged by severity, and when it's fixed, the fix goes back to the person who reported it.
What went back into Tome
Vanguard runs on eight Tome packages. Over the summer of 2026 I lifted its org structure, academy, ledger and approval engine up into those packages, then rebuilt Vanguard's own versions as thin adapters on top. The alternative was to keep Vanguard as a fork, and forks have a way of making every fix land twice or not at all. As of September, 61 of its collections came from Tome, which means the next organization that needs a chain of command or an academy starts with one.
The work I'm still pushing on is authorization. Too much of it is enforced by convention in server code, and it belongs behind one boundary. I keep a running count of the places that step around the permission layer, and a test fails if that count ever goes up.
Stack
- Payload CMS
- Next.js
- React
- TypeScript
- MongoDB
- Redis
- Better Auth
- Soketi
- a Discord gateway service
- Playwright