Move the backend from Node to Rust
Axum, SQLx and PostgreSQL own every business rule.
One small service in production, strong types from the request to the SQL, and Next.js reduced to a static front end that proxies nothing sensitive.
A game tracker with a Duolingo-style loop, built on a Rust core and a React interface.
I wanted a reason to come back to games I start and abandon.
XPlayer turns play time into a habit loop: start a session with one tap, finish it, earn XP and keep a daily streak.
Add and edit games, then start, pause, resume and finish sessions. The server owns the clock.
Derived only from finished sessions, so a repeated or concurrent finish never awards XP twice.
Argon2id passwords, opaque HttpOnly session cookies stored only as hashes, invite-only registration and optional Google sign-in.
Touch-first interface with a safe-area dock, draggable panels and reduced-motion support.
Recommendations, weekly summaries and session notes. The Rust API calls the model; the key never reaches the browser.
A single Rust service serves the API and the static front end. Numbers will be published once measured.
Browser to a static React front end, then /api to a Rust service organised in routes, services and repositories, backed by PostgreSQL.
Axum, SQLx and PostgreSQL own every business rule.
One small service in production, strong types from the request to the SQL, and Next.js reduced to a static front end that proxies nothing sensitive.
The client never sends a duration or an XP value.
A database index allows one active session per user, and finish, pause and resume lock the row before they compute time, so retries and double taps are safe.
The coach is optional and offline-safe.
The API sends the model a handful of numbers and titles, validates the answer against the user's own library, and falls back to plain rules when no provider is configured.
Before XPlayer I built a social web app for a group of friends to run an annual awards night. XPlayer reuses its shell and login flow.
Next.js · React · TypeScript · Prisma · PostgreSQL · Tailwind CSS
Measured on the production deploy, once it is live.