Devlog
Last updated: 26 November 2026
Entries are written while the work happens, in the order it happened. Nothing here is a marketing announcement — it is the working record of building a game.
26 November 2026 — Why this site exists
I am building a game on my own, and I kept losing the record of it. Balance numbers lived in one file, design decisions in another, and the reasoning behind both in my head. This site is the answer to that: one place where the project is documented as it is built, in Thai and English.
Three parts are live today:
- This devlog, for the narrative — what shipped, what broke, what got thrown away.
- A wiki, for the reference material the game will eventually need: mechanics, items, numbers, patch history.
- Private notes, for the working scratch that should never be public. Signing in with Google creates that space for you; nothing else on the site requires an account.
What runs it
The site is an Astro project deployed to Cloudflare Workers. Public pages are pre-rendered to static files, which is why they load instantly and cost nothing to serve; the account area runs on demand against a Cloudflare D1 database.
Authentication is Google sign-in. The site asks for your name, email and picture, and for Drive access limited to files you pick yourself — Google's own file picker decides what is visible, so the site cannot browse your Drive. Sign-in state is kept in a server-side session rather than a signed cookie, which means signing out genuinely invalidates it.
Decisions that took longer than they should have
- Static first, interactive second. The marketing and reference pages are plain files. Only the signed-in parts execute code. Serving 100,000 static requests a day is free; serving 100,000 dynamic ones is a hard ceiling.
- Two languages from day one. English at
/, Thai at/th/, one component and one copy dictionary behind both. Retrofitting translation later costs far more than carrying it from the start. - Narrow permissions. A broader Drive scope would let the site read everything in an account, and Google requires an annual security audit for that. Asking only for files the user picks keeps the app honest and skips the audit entirely.
What is next
A news feed that collects posts from wherever they are published, a price and revenue history built from scheduled snapshots, and a discussion board with moderation. Each will appear in the wiki and here when it lands, rather than being announced early.
26 November 2026 — Sign-in went live
Google sign-in is working end to end: authorisation code exchange, a server-side session, and an audit trail of every sign-in and sign-out attempt. The first version of this readAstro.locals.runtime.env to reach the database, which was removed in the current Cloudflare adapter — every API route returned an empty 500 until that was replaced with thecloudflare:workers import. Worth recording, because the error message says nothing about the cause.