High school student at Blair Academy in New Jersey, raised in Singapore. I build game-playing AI, data pipelines, and the systems that keep them fast — usually by writing the slow part in C and the rest in Python or TypeScript. 👋
Portfolio, writing, and project write-ups: xavion.me
Big_Two — A playable Big Two (Dai Di) engine with two independent AI bots. The rules engine, game flow, and search bot run on the Python standard library alone. SmartBot decomposes a hand with an exact set-partition DP (the true minimum number of plays, not a greedy estimate), computes exact hypergeometric beat probabilities, and runs determinized Monte-Carlo rollouts against imagined opponent hands. A hand-written C rollout engine bridged over ctypes takes a decision from 483 ms to 19 ms, with a pure-Python fallback when it isn't built. A second bot is a DouZero-style Deep Monte-Carlo network with CPU and batched-GPU self-play backends. 154 tests cover rules, flow, scoring, and bot behavior. Web frontend in development.
Mahjong — A hand-analysis engine that answers "which scoring hands am I closest to?" across every legal arrangement, suit, and joker substitution. Enumerating that space produces 21,235,279 target configurations per seat wind, which took Python about two minutes per query from a cold start. The fix was to change what gets scanned: a build step writes the targets once into a flat memory-mapped binary of 35-byte records, and a hand-written C engine scans it with mmap on POSIX and CreateFileMapping on Win32. The pathological hand — "any seven pairs," 16.4 M configurations by itself — is excluded from the file and checked algorithmically instead, cutting the stored set to 4.8 M. Cold start to first answer drops from ~125 s to ~0.2 s. The same C source is bound through both ctypes for the desktop web app and JNI for the React Native Android app, so the phone runs byte-identical scanning code.
Bitcoin-Halving-Cycle-Analyzer — A price-cycle model trained only on altcoins, mapped onto Bitcoin's log-price scale. Bitcoin is never a training sample; it is excluded from the training set in code, and the model validates itself by regenerating Bitcoin's entire 2014–2025 curve blind, with no BTC input or anchor. R² 0.946 in log space on that hold-out. Hyperparameters are selected by blind generation of held-out altcoins so that Bitcoin is scored exactly once. The repo also documents where the model is weak: an ablation showed my hand-curated market-events layer made the hold-out slightly worse, and the first version of the model failed its own pre-registered 2026 test. Both results are kept in the README rather than quietly fixed.
AI-Wikipedia — A two-pass LLM pipeline that turns a book series into a complete, cross-linked, cited wiki: one API call per page to extract atomic facts, then one call per article to synthesize them, both fully parallel and resumable. One run took 2,833 pages across 13 books to 860 cross-linked articles. Every extracted fact carries a (book, page) citation as its atomic unit, which is what makes the output spoiler-scoped — pick the last book you've read and facts, sections, infobox fields, and quotes past that point filter out client-side, no regeneration.
Software engineering intern, Preface (Singapore, summer 2026) — sole engineer on the local team. Built a production multi-agent Python pipeline that automates client outreach end to end: it drafts personalized emails backed by AI-researched company briefs, classifies reply threads, and reconciles Google Calendar. Designed and shipped Preface 2559, the company's internal CRM (preface.sg) on Next.js and Supabase, with a Prospect-to-Won pipeline and a human confirm queue that gates every outward-facing agent action. Also built a scanner that ranks GeBIZ government tenders by company fit. This work is company IP and is not published in my repos.
Xavion AI (2025–2026) — a multi-model AI platform I designed and built solo, bringing 30+ models from every major provider into one interface with side-by-side comparison, a unified abstraction layer over the provider APIs, SSE streaming, and image generation. I taught myself React, Next.js, auth, databases, and deployment building it. I am no longer working on it; the product is owned by Xavion Pte Ltd and lives at xavion.ai.
Languages — TypeScript · JavaScript · Python · Java · C++ · C · SQL
Frameworks and ML — React · Next.js · Node.js · Prisma · PyTorch · TensorFlow
Infrastructure — Supabase · PostgreSQL · Docker · Vercel · Gemini API · Linux · TrueNAS · ZFS
- Competitions — 1st place at Lockheed Martin Code Quest (Asia) as team captain; USA AI Olympiad competitor; 1st place, VEX IQ Alliance Challenge; Distinction, Judges' Choice, and People's Choice at the International Coding Showcase (SEA).
- School — Member of Blair Academy's AI Student Advisory Council, which shapes how the school adopts AI, and Head Coder of the robotics program.
- Homelab — A 360 TB TrueNAS server I built from parts: 18 drives across three RAIDZ2 vdevs, 192 GB of ECC RAM, and GPU passthrough for a Windows VM.
- Investing — I've managed my own investment portfolio since 2022, with a long-horizon core and a smaller set of positions I actively rebalance.
Everything I'm building and writing lives at xavion.me.