Skip to content
← Back to portfolio

XPlayer

In development

A game tracker with a Duolingo-style loop, built on a Rust core and a React interface.

Problem

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.

What it does

Features

Architecture

Browser to a static React front end, then /api to a Rust service organised in routes, services and repositories, backed by PostgreSQL.

Browserphone / desktopReact front endstatic exportRust API (Axum)routesservicesrepo (SQLx)PostgreSQLoptional AI provider

Key technical decisions

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.

The server decides time and XP

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.

AI only on explicit request, with minimal data

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

Performance

Measured on the production deploy, once it is live.

What I learned