Senior Full-Stack Engineer · Bangkok

Chatthong Rimthong

Engineer and founder since 2016, with three exits. In 2026 I returned to full-time engineering and led a game publisher's platform end to end: its architecture, two backend services, four web applications, identity, payments, Kubernetes and CI/CD.

Alongside it I rebuilt a cloud provider's customer console from a large legacy application, and I ship my own products across the stack, from a subscription SaaS to a native Apple app and a transformer in production.

I set the standards, write the code, and direct AI coding agents under human-gated review.

What I built

Systems, and where each one stands

1 live · 6 in all
Motionmind: a generative simulation engine for live sport
A decoder-only transformer, trained from scratch on match event sequences, served as a live Monte Carlo simulation engine with continual learning, automatic grading, market benchmarking and a decision layer that seeks value against live bookmaker prices. I built it end to end: data pipeline, tokeniser, model, inference engine, decision layer, API, web app and self-hosted GPU infrastructure.
Live

See it running: click a button to open it in a new tab.

First sport: football21M parameters273,567 matches2 ms per rolloutWithin 3% of bet365 in play (log loss)+7.3% average paper return, up to +35% in Serie A4x NVIDIA DGX Spark
  • Model: one decoder-only transformer, 21M parameters: about 14.6M in a tied embedding table of every player, team and match token, about 6.3M in an 8-layer body with a 224-token context. One sequence fuses lineups, match clock, standings and event stream. Trained from random initialisation on next-token prediction.
  • Data and tokenisation (football): 273,567 matches, 94 competitions, 1996 to 2026. One sequence per match: a header (competition, month, binned league standings, teams, both starting elevens), then events (5-minute bucket, type, side, player, running score after each goal) interleaved with clock ticks. Median 126 tokens; 56,971-token vocabulary. About 50,000 players and 5,300 teams are entity tokens, with an unknown-player fallback under 20 appearances.
  • Inference: KV-cached Monte Carlo rollouts of the rest of the match from the observed prefix: 2,000 per pre-match forecast, 500 in play. Each set is read two ways: final score (score distribution, win/draw/loss, per-horizon scores) and next event (next goal, its time window, chance of no more goals). About 2 ms per rollout; an in-play forecast takes about 4 seconds end to end.
  • Continual learning: after each kickoff slot, 200 fine-tuning steps on the new matches, 50/50 with corpus replay. A fixed probe set, run before and after each update, catches regressions. Strictly causal: a checkpoint predicts only fixtures kicking off after its training cutoff, and the engine rejects any request that breaks this.
  • Evaluation: temporal hold-out and walk-forward tests, proper scoring rules (RPS, log loss, Brier), Dixon-Coles and bookmaker-price baselines, bootstrap intervals over matches, pre-registered analyses; under 150 held-out matches is never conclusive. Football: 48.7% match-result accuracy over 1,430 auto-graded forecasts (50.5% on the 655 locked before kickoff); in-play goal-line log loss within about 3% of bet365's de-vigged price (n = 660 matches).
  • Decision layer (LX-Dynamic): versioned in-play rules turning the forecast distribution into at most one position per match. A goal triggers a rule, which prices Asian handicap and goal lines from the model's score matrix; v6, the current version, takes a position only if the quoted price holds on the bookmaker's next board. Paper-traded at captured bet365 prices this season: +7.3% average across all eight leagues (104 positions), up to +35.1% in Serie A, every position on the public stake board. Still under the 150-position threshold.
  • Market data: bet365's in-play board captured every minute, plus pre-match prices from 25 bookmakers: 8.9M quotes, for benchmarking only, never a model input.
  • Serving and operations: FastAPI with a GPU job queue where live forecasts outrank batch work. Scheduled ingestion, prediction, grading and retraining pipelines with per-run records, monitoring and alerting, and an authenticated operations console. Self-hosted on 4x NVIDIA DGX Spark.
  • Product: a public web app in English and Thai with time-zone localisation (live league tables, match calendar, live win-probability charts, per-match decision trace, per-league results board), and a Telegram bot posting each decision live.
  • Codebase, one repository per layer: mim-gym (corpus pipeline, model, training loops, rollout engine, run reports), mim-api (FastAPI service, live poller, simulation queue, scheduled pipelines, decision layer), mim-app (Next.js web app), mim-design-system (tokens and components, a private package the app consumes), mim-data (sources, ingestion, lineage) and mim-infra (node setup, schemas, GPU-node engine files, tunnel config). mim-arena, a 3D match viewer, is built but not yet wired to results.
  • Why football first: the hardest case: low scores, 22 players in continuous play, and sport's most efficient betting market. Only the tokeniser, event vocabulary and readouts are football-specific; the rest is sport-agnostic.
PyTorchCustom tokeniserKV-cached inferenceFastAPIPostgreSQLNext.jsDocker4x NVIDIA DGX SparkCloudflare TunnelTelegram Bot API
Today
Football live on eight leagues, updated after every match
Bonfire: a game publishing SaaS with a webshop, Account Center and SDKs
A multi-tenant game publishing platform: every studio gets player accounts, a webshop and a console to run its games live. Players use one SSO account across the webshop, every app and every game, pay in their own currency by local methods, and receive purchases in game. The hard part is that last step: a web top-up must reach the right character on the right server exactly once, whether or not the game has its own server. First market: Southeast Asia, starting with Thailand. I led it end to end, from the design system to the Kubernetes cluster.
Staging

See it running: click a button to open it in a new tab.

465 API endpoints8,000+ tests12 pluginsMulti-currencyUnity + Unreal
  • Game SDK developer console: each studio sets up its games (test and live credentials, server keys, sign-in methods and session length, store keys, delivery, webshop products and prices) and runs them live (players, characters, play sessions, per-game bans, sign-in and request logs, webhooks, sales, game terms with player acceptances, maintenance windows with testers). Teams join by invite, with multi-role access.
  • SDK platform: Unity and Unreal SDKs for Mac, Android and iOS: drop-in Google, Facebook and Apple sign-in, silent token refresh, ownership checks, bans, maintenance windows, and Google Play and App Store purchases for any game.
  • Region-aware webshop: customers auto-land in their own language, country and currency. Multi-currency prices derive from one base price by exchange rate, with manual overrides; payment plugins set local methods per currency. Dynamic content translation: Thai, English and Indonesian today; a new language needs only translations, no code.
  • Delivery for any game: in-game currency top-ups and items go to the buyer's linked game account or any character by server and UID, verified with the game before payment. Game keys, gift cards, vouchers, software and bundles draw from a code pool reserved at checkout; games go to the player's library. Grants reach game servers as HMAC-signed S2S calls with retries; games with no server get them via a relay into UGS Economy, credited exactly once. Refunds, bans and account deletions reach each game the same way.
  • Account Center (SSO): one account across the webshop, back office, developer console and every game. Keycloak sits behind the backend, which signs players in and gives each app a signed session; Keycloak exposes only discovery and signing keys. Google, Facebook, Apple and email sign-in, one-page sign-up, two-step verification on every method. Its own OpenID Connect provider for studios (Login with Bonfire): a consent screen for what each game may see, access the player can revoke later, every device and game session listed and revocable. Account deletion has a 14-day undo, works in-game through the SDK, and reaches every linked game.
  • Plug-in commerce: payments (Xendit, Coda), social sign-in (Google, Facebook, Apple), app stores (Google Play, App Store), email and storage are plugins, each with its own admin screen: no restart, no frontend code.
  • Back office with role-based access: staff roles each see and change only what their permissions allow; every change is audit-logged. Staff manage players and accounts (bans included), orders, refunds with two-person approval, re-delivery, products, prices, coupons, banners, announcements, content translations, studios and their games, plugins and site settings, approve what studios publish, and read sales reports.
2 Django backends4 Next.js apps1 shared Next.js design systemKeycloakPostgreSQL (3 databases)3 Valkey cachesTraefikKubernetes
Tencent Cloud (COS object storage, CDN, SES email)Unity (C#) and Unreal (C++) SDKsPrometheusGrafanaLoki
Today
Invite-only beta ran on staging
Nimblo console: a legacy cloud console rebuilt on a modern stack and design
A Thai cloud provider's customer console. Customers launch and run cloud servers, rent bare metal and colocation, host sites on DirectAdmin and Plesk, register Thai and international domains, and pay from prepaid credit or invoices, alone or as an organization. In three months I rebuilt it from the legacy panel, with parity on all 118 audited behaviors, building the console, its backend-for-frontend and its design system.
Launching

See it running: click a button to open it in a new tab.

  • Ordering and provisioning: every product goes through a wizard that prices the configuration live and offers only what can be provisioned: zones that stock it, sizes meeting the image's minimums, machines in stock. Hourly cloud servers deploy directly, in numbered batches from one hostname up to the account quota. Bare metal, hosting and domains raise an unpaid invoice, settled in one shared checkout before provisioning. Colocation, racked by hand, is requested by prefilled support ticket.
  • Cloud servers: the console enforces the platform's rules before the API must refuse. Resize offers only same-family sizes that fit the installed image, never shrinks storage, and runs on a stopped server, the disk grown or unchanged. An OS reinstall also needs the server stopped and installs the chosen SSH keys. Backups run in a daily or weekly window, priced as a share of the hourly rate. The browser VNC console types pastes as real keystrokes, Shift included, so a pasted password reaches a login prompt intact.
  • Network security: each public IP has its own reverse DNS, a switch for transit beyond Thailand, and a firewall. Its advanced mode is an allowlist from the provider's application profiles, mostly game servers, each on its own port, settings validated against the profile's rules. On cloud servers the firewall sits on DDoS protection, switchable from the same page.
  • Bare metal and colocation: dedicated machines rent from live per-zone stock, on billing cycles discounted for longer terms, VAT shown separately. OS and SSH keys go on afterwards, while the machine is powered off, beside a hard power-cycle and its root credential. Colocation covers the customer's racked hardware, its IPs, firewall and renewals.
  • Web hosting: DirectAdmin and Plesk accounts come with the customer's own domain or one registered in the same checkout. The console signs customers straight into the panel through its own login form, rotates the panel password, and changes plans billing only the prorated difference.
  • Domains: one availability search covers generic extensions and the .th family, ranking the closest matches for a mistyped extension. .th registration follows THNIC's rules: each extension (.co.th to .ac.th and .or.th) and registrant type (personal, business, trademark) accepts its own documents, and the applicant uploads the fitting proof; business names also need a company registration number. Orders pass the provider's review, then THNIC's; a rejection is fixed and resubmitted on the same page, reusing files not at fault. Registrations carry English registrant contacts, as registrars require; inbound transfers are tracked from auth code to the losing registrar's release. Unlocking always issues a fresh auth code, never leaving a domain transferable on a stale one, and contact edits freeze while a registry action or IRTP change is pending.
  • Legacy services: services sold on the old platform stay first-class: listed beside new ones with their original service numbers, billing lines, cycles and invoice history, renewing through the same billing. What the old platform can't automate, such as an OS reinstall, becomes a support ticket instead of failing.
  • Billing: one checkout settles every order, by account credit or local payment methods (live fees, Bangkok-time opening hours), gateway payments confirmed by webhook. A company billing address always gets a tax invoice, which credit can't issue; changing the address or tax-invoice choice re-prices the order server-side. Unpaid invoices merge into one payment, overdue ones turn view-only, and an open bill blocks the next renewal or plan change. Hourly usage draws on prepaid credit and settles in sealed post-paid cycle reports; a credit top-up has its own invoice.
  • Organizations and access: the permission catalog and its dependency graph come from the server, so granting an action grants what it requires. Custom roles start blank or from an existing role; presets are read-only; the owner holds every permission instead of bypassing checks. Each member's access is enforced on the server, control by control; a suspended organization keeps only support.
  • Account security: sign-in takes a password plus an authenticator code, behind a verification gate until email and phone are confirmed. Staff-reviewed ID documents unlock restricted services. The CLI signs in by device code, shown to compare, not retype. MCP clients pass a consent screen that treats their claimed name as untrusted. Every device and client is revocable at once.
  • Usage and support: each server's CPU, memory and bandwidth shown against its allocation, beside the credit balance and upcoming charge. Support tickets link to a current or legacy service and update live in the open thread.
  • Design system: a versioned private component library governing every console screen, published on its own site in dark and light. Its console kit covers cloud inputs: currency and unit fields, Thai Buddhist-era dates, one-time and device codes.
Next.jsReact Server ComponentsBackend-for-frontendServer-Sent EventsPrivate design-system packageTailwind CSSRadixMapboxnginx and systemdCloudflare
Kind
Client work
Today
Cutover scheduled
Sun-VPS: a legacy hosting website rebuilt on Payload and K3s
A Thai VPS provider's website in Thai, English and Vietnamese, where visitors compare plans, read guides and news, then order in the customer console. I rebuilt it in one month on Payload CMS, its own design system and K3s, redirecting the old site's addresses so the domain moves with no dead link.
Launching

See it running: click a button to open it in a new tab.

  • Payload: I picked it to ship in a month: a widely trusted CMS for Next.js that installs into the app, so the admin, API and database layer came ready, with no backend to build, and the site stays my own Next.js stack. Staff add pages and posts themselves. Customisable at every level: the site adds its own blocks, three-language content on one shared layout, publishing hooks, and plugins for redirects, SEO, forms and search; anything missing can be a plugin.
  • K3s: one script runs local, staging and production, each environment one parameter file over the same manifests; staging is live on it. A release builds on the box from GitLab, migrates as a gated Job and takes traffic only after its readiness check, so a failure leaves the live version serving. A seed Job fills a fresh environment with every page and post in three languages; PostgreSQL runs under CloudNativePG with WAL archiving and nightly backups for point-in-time recovery.
  • Design system: the design-system line I use across many projects, consoles and websites alike: one OKLCH token architecture in dark and light, each brand one theme file, template fixes reaching every project. Here it wears the brand book's cobalt and vermilion, sets Thai, Vietnamese and Latin type and adds landing blocks; lint guards fail the build on any value outside the tokens.
  • 3D sun: inspired by the Las Vegas Sphere, seen at the AWS Summit there: the brand's sun as a three.js sphere with a rigged face in thirteen moods. Eyes, brows and mouth change mid-blink as it turns a full 360° and squashes and stretches on springs. Light enough for about a hundred suns to pile up under real physics as instanced draws in one canvas; every other sun on a page shares one WebGL context.
  • SEO and analytics: every page has its own meta, share image, canonical URL, hreflang alternates and sitemap entry. GA4 loads only after consent, per Thailand's PDPA; Lighthouse scores green.
  • Pages: the home opens with the 3D sun rising under the headline and shows the service at work (an EA trading on MetaTrader, a TradingView alert arriving as a webhook), then plans, customer stories and the NBTC licence. Every VPS family, dedicated server and colocation space is a table from one catalog in code; every Order button leads to the console's sign-up. Guides filter by topic and search in the visitor's language; support lists every contact channel with a copyable address.
  • Easter egg: the servers-sold poster hides a mini game: suns shoot into a box and pile up as real balls under gravity, each face ending wherever its roll leaves it, and a line under the figure invites visitors to pick one up and throw it.
Next.jsPayload CMSPostgreSQLPrivate design-system packageTailwind CSSthree.jsK3sCloudNativePGGoogle Analytics 4Cloudflare
Kind
Client work
Today
On staging
AssayGrid: a chemical formulation engine
A formulation reverse-engineering engine for anything from household care to cosmetics, from a community-built chemical library to an advanced solver. Users contribute raw materials, brands and market prices; on top sit an ion-based EC model, chemical incompatibility checks, batch costing and usage ratios. Learning to crack a secret recipe took me five years, before the AI era: splitting an A+B solution back into its salts means searching millions of combinations. I then built it alone, by vibe coding, as a token-based subscription product: data model, solver, chemistry, web app, billing, eight locales. Fertilizer is the first domain. Today's AI still can't do this alone, and it can save any scientist the years I spent.
Offline

See it running: click a button to open it in a new tab.

NNLS blend solverIon-based EC modelOpen libraryMulti-currency pricing8 locales
  • Engine: Lawson–Hanson active-set NNLS on the ridge-regularised normal equations (AᵀWA + λI). Each iteration admits the ingredient with the largest positive gradient, solves the passive subsystem and line-searches back to feasibility, releasing any that hit zero; it stops at the KKT point, the unique optimum. Buffer caps are penalty rows, their weight bisected to the smallest that holds; Auto tries each element as the buffer and keeps the run with the most in tolerance. Inputs: raw-material chemistry plus brand overrides, any target mode reduced to per-litre concentrations, zero targets up-weighted as soft exclusions. EC comes from each ion's Kohlrausch molar conductivity, reduced as ionic strength rises, temperature-compensated. Every calculation is a versioned function, unit conversions included (dose and percent to ppm, oxides to elements, ion mass, mmol/L, product % w/v, TDS). Result: the non-negative blend that best reproduces the analysis, known before mixing, every figure traceable to its source.
  • Incompatibility: raw materials carry mixing flags; the builder pairs each flagged ingredient with the selected ones that trigger it and marks alkaline stocks against acidic ones, so you see what can't share a tank before it precipitates.
  • Library: chemistry is stored once per raw material; brands reference it with their own manufacturer, packaging and documents. A differing analysis becomes an override (reason, risk level, approval state, version checked against), never an edit to the shared record. Any signed-in user can contribute. Prices carry market, pack size, date and source; batch cost takes each ingredient's cheapest per-kg offer, in the viewer's currency. Names are country-tagged for local search. Correct a material once for every brand, and compare it across markets.
  • Recipes: each save snapshots every component's composition, the combined profile and the targets, so an old recipe keeps its numbers when the library changes; target sets are stored separately for reuse.
  • Usage ratios: doses per reservoir volume become concentrations via the engine's conversions; feeding schedules spread them over the vegetative and flowering phases, giving a whole grow's element profile week by week.
  • Platform: token-based Stripe subscriptions on append-only credit ledgers, passkey and two-factor sign-in, and public profiles with an Explore feed ranked by stars, activity and recency.
Next.js 16React 19TypeScriptPrisma 7PostgreSQLStripeNextAuthWebAuthnTailwind + shadcn/ui
Kind
Own product
Today
Offline, coming back up
Layca: an on-device offline AI meeting secretary
I was fed up with meeting apps: none worth using without a cloud subscription, and transcription is still expensive. And if the work is sensitive or confidential, would you trust an AI company with your recordings and transcripts on its servers? So I built Layca on my own, to run every model fully offline on Apple's ML stack: CoreML and Metal for voice activity detection, speaker diarization and Whisper ASR across 96 languages, and MLX for the LLM that writes the minutes. A room of people mixing languages becomes a live group chat, with one bubble each time someone speaks, each with its own playback, and nothing ever leaves the device.
Pre-launch
96 languagesLive speaker diarizationWhisper large-v3-turboOn-device LLM summarizationiOS · macOS
  • Segmentation: Silero VAD on CoreML splits the microphone stream at sustained silence, and speaker change detection cuts mid-speech, backtracking to the change point. A second VAD pass re-segments each piece at short pauses, tuned for fast turn-taking such as Thai, while diarization runs in parallel. Each piece is encoded to its own AAC file, so live ASR, playback and re-transcription read the same audio. Cuts land where people actually pause or hand over.
  • Diarization: WeSpeaker embeddings on CoreML are clustered online by cosine similarity against the session's centroids. A sliding-window check catches a change of speaker mid-sentence, a relaxed threshold after a pause catches turn-taking, known voices get a shorter probe window, and each centroid is an EMA that sharpens over the meeting. After ASR, a second pass reassigns each segment with stricter thresholds on the same loaded model. You see who spoke when as it happens, with each voice keeping one colour for the whole session.
  • ASR: Whisper large-v3-turbo through whisper.cpp, with a CoreML encoder, Metal GPU acceleration, and quantized or full-precision weights chosen per device. A serial queue transcribes each piece with per-piece language identification and translation off, so people can switch language mid-meeting and each bubble is tagged accordingly. An initial prompt sets verbatim mode, focus languages and keywords, and when detection is unsure the piece is re-decoded in the strongest focus language. Short clips use single-segment decoding. Longer ones switch to timestamp-conditioned multi-segment decoding, which prevents attention drift onto the last sentence. Every result passes quality gates: prompt leakage reruns without the prompt, weak text retries, empty text is dropped, and a forced retry must pass script validation. You get the words exactly as spoken.
  • Chat room: native SwiftUI on iPhone, iPad and Mac. Each speaker becomes a member and each turn a bubble, cut automatically, tagged with its language and heard on tap. Play runs the whole meeting. Speakers can be renamed or reassigned, any line re-transcribed in a chosen language, and the chat exported as minutes, Markdown or SRT subtitles. The meeting reads like your group chat, except every bubble keeps its voice.
  • Summarization: a 4-bit quantized Qwen3 runs through MLX Swift on the finished transcript and returns a topic, a prose summary and a checklist as structured JSON, writing mixed-language meetings up as one narrative. You get meeting minutes without a cloud model.
  • Sync: each session is a folder of JSON plus one audio file per segment. An iCloud Drive actor mirrors it with a per-row last-write-wins merge, watches for remote changes, and leaves audio sync optional. A meeting recorded on iPhone opens on the Mac with its edits.
SwiftSwiftUICoreMLwhisper.cppMLX SwiftAVFoundationiCloud Drive
Kind
Own product
Since 2016

Engineer and founder, then full-time engineering

Years
Where
Role
2026
Bonfire Gathering
Led a game publisher's platform end to end
2026
Cloud console, client project
Rebuilt a cloud provider's customer panel
2026
Website platform, client project
Built a hosting provider's site in three languages
2023 to 2025
KingWhaleAG
Founder. Sold a 51% stake in 2025
2021 to 2022
Golden Triangle Group
Technical Specialist, then Marketing Director
2019 to 2023
Growstuff Shop
Owner. Exited in 2023
2018 to 2021
Bearled Grow Light
Founder. Exited in 2021
2016 to 2017
Event ticketing startup
Co-founder and engineer, in my second year at university
2015 to 2019
KMUTT
Computer Engineering