Caesyon

Caesium Games infrastructure

The network behindeverything I build.

Caesyon runs the accounts, rewards, news and status page for every Caesium Games site and game. It's also my sandbox: I built it like a real company network, on my own.

caesyon.net home page, with the Caesyon shield drawn as a glowing wireframe
My role
Creator, solo
Built with
Node.js, Fastify, PostgreSQL
Status
Live
Serves
Arcanyst and Caesium Games

01Why I built it

Three reasons,in this order.

  • To learn

    I wanted to understand how real company networks work: the edge, accounts, admin tools, deploys and incidents. The best way was to build one.

  • For fun

    I just like building things. This one never really ends, there's always a next piece to add.

  • For my own sites

    Arcanyst and Caesium Games already use it for accounts. Any future site or game can plug in.

02The network

One edge,two separate doors.

Players and sites only ever reach the public side. The admin has its own door, and the database has no public address at all.

Public side

  1. Sites and games

    • arcanyst.com
    • caesiumgames.com
    • Games on Steam
  2. Edge

    • Cloudflare
    • TLS everywhere
    • Bot checks
  3. Services

    • API
    • Background worker
    • Status checks
  4. Data

    • PostgreSQL
    • Daily backups

Admin side

  1. Admin dashboard
  2. Cloudflare Access
  3. Two passkeys
  4. Admin API, its own service

03Security

Locked downby default.

Most features sit behind whitelists and switches, so most users only reach a small part of it. Nothing opens to everyone until it's ready.

  • Closed until opened

    Sign-up, rewards, product keys: every feature has its own switch. Most stay limited to whitelisted accounts.

  • Strong sign-in

    Passkeys and two-factor, secure sessions and no tokens kept in the browser.

  • A careful admin

    Behind Cloudflare Access and two passkeys. Each role gets the least access it needs, risky actions need a second person, and everything is logged.

  • Privacy first

    Export or delete your data, a guardian confirms younger players, and no trackers anywhere.

04Admin

One control planefor the whole network.

Users, products, rewards, news, the newsletter and the status page all run from one private dashboard. Personal data stays masked unless someone has a reason to see it.

Admin overview with queues for privacy deadlines, approvals and rewards

05Operations

Live,and watched.

There's a public status page, a typed API reference and a release process that checks itself. If a deploy fails its checks, it rolls back on its own.

caesyon.net status page with 90 days of uptime for each component
Public status page
Caesyon API reference generated from the OpenAPI spec
API reference
  • Safe deploys

    The same image on every host. Migrations, health checks and automatic rollback.

  • Backups

    Every day, checked, the last 14 kept.

  • Incidents

    Declared from the admin, shown live on caesyon.net/status.

  • Typed API

    53 endpoints. Zod schemas generate the OpenAPI spec and a typed client.

06Stack

What it'sbuilt with.

  • Node.js
  • Fastify
  • TypeScript
  • PostgreSQL
  • Docker
  • React
  • Vite
  • Cloudflare
  • Drizzle ORM
  • Zod
  • OpenAPI 3.1
  • Better Auth
  • Caddy
  • Vitest

See it live.It's running.

The status page, the security notes and the changelog are all public.