Strategium
Army list building and validation for Warhammer 40,000.
- My role
- Personal product, frontend focus
- Stack
- Next.js 16, React 19, TypeScript, Tailwind CSS 4, TanStack Query, Zustand, React Hook Form, Zod, Playwright, Vitest
Context
A personal product in development. Players build, validate and publish army lists, follow other players, comment on lists and send private messages.
Problem
A valid list depends on many interlocking rules. The editor has to flag each problem while you edit, without losing the draft or blocking the interface.
How data flows
- Editor (Zustand)
- Validation (Zod)
- TanStack Query
- Next.js App Router
Decisions
Local draft kept apart from server data
Zustand holds the editable draft and pending changes; TanStack Query syncs, caches and invalidates remote data. There are never two server caches.
Forms with declared rules
React Hook Form manages form state and Zod defines the constraints, shared with list validation.
Interface built on accessible primitives
Tailwind CSS 4 with shadcn/ui components on Base UI, browser tests with Playwright and unit tests with Vitest.
AI as support, decisions my own
I built the back-end (Prisma, PostgreSQL, Better Auth) with help from Codex. I first design and implement a solution, then ask for alternatives, review the proposal and decide.
Outcome
Sign-up and sign-in, list building, following, private messages and comments already work. It has not been released yet.
Screenshots


