SyncLab

A multiplayer lab where the netcode is the game: prediction, reconciliation and packet loss you can see, toggle and compare side by side.

Role
Sole designer and developer
Team
Solo project
Platform
Web app + Node.js server
Status
Concept · Live
Visit the live site ↗
SyncLab Compare view: a naive client beside a predicted and reconciled client on the same simulated network, with the control dock and live telemetry
01 At a glance

The 30-second version.

Problem

The first build's netcode was correct, but a first-time visitor saw a dense dashboard, a canvas that could sit blank for a minute, and the prediction and correction hidden behind ?⁠debug=true.

What I did

Audited the lab as a 60-second visitor, ranked fifteen problems, then redesigned it around a side-by-side Compare view, one colour per netcode concept, network presets and an in-browser fallback server.

Outcome

Prediction, reconciliation and packet loss are on screen from the first frame, side by side, on desktop and phone, at 60 fps under the worst network preset.

Server tick rate
30 Hz
Snapshot rate
20 Hz
Frame rate
60 fps
Automated tests
17
02 The problem

Netcode is easy to describe and hard to feel.

SyncLab asks one systems question: how can a client respond instantly when the server still owns the truth? The first build answered it correctly, then hid the answer. The lesson only showed if you already knew where to look.

  • Who: engineers and recruiters who give the page 60 to 90 seconds.
  • Constraint: the netcode is sacred: the redesign may read its state, never steer it.
  • Risk: a demo that only looks smooth gives no way to tell whether the netcode is correct.
03 My role

What I owned.

What I owned

  • UX audit, interaction and visual design
  • Client (Next.js) and server (Node.js + ws)
  • Shared netcode logic and tests
  • Motion (GSAP) and QA
04 Process

How it came together.

  1. Audit

    Used the lab as a first-time visitor and ranked fifteen problems by what they hit first: a blank canvas on cold start, then netcode hidden behind ?⁠debug=true.

    Wireframe of the original SyncLab dashboard with numbered pins on its biggest problems
  2. Wireframe

    Two clients side by side on one network, with the naive one locked, so every switch becomes a comparison.

    Wireframe of the Compare view: naive and predicted panes side by side with packet lanes, a control dock and telemetry sparklines
  3. System

    One hue per netcode concept, read from the same CSS variables by the interface and the canvas.

    Diagram of the six concept colours: cyan for you, lime for the server, violet for the other player, amber for a correction, red for a drop, grey for pings
  4. Phone

    Stacked panes, the dock in a bottom sheet, and a joystick on the same input path as the keyboard.

    Wireframe of SyncLab on a phone: stacked panes with a joystick, and the controls opened as a bottom sheet
Insight → design

Put the comparison on screen, not in memory.

Compare view runs two clients under identical conditions, a locked naive baseline beside prediction, reconciliation and interpolation, and starts on Bad Wi-Fi, because at a clean 60 ms both panes look the same. When the server disagrees, an amber line snaps you to its answer and a chip reads “−7px · replayed 5”.

SyncLab Compare view under the Chaos preset: amber correction rings and a replay chip in the predicted pane, red dropped packets in the lanes and rising telemetry
Insight → design

Never show a dead canvas.

The authoritative server moved into a shared package, so the tab runs the identical code while the free-tier server sleeps, then offers to go live once it wakes. The intro sits over the lab already running on autopilot, so the first frame proves it works.

SyncLab intro: the title, a one-line pitch, three colour-coded bullets explaining what you are seeing and a Launch lab button over the dimmed running lab
Insight → design

A phone gets an input, not a shrunken page.

Before, a phone had no way to move at all. Now the panes stack so the comparison survives at 375 px, the controls open as a bottom sheet, and a touch joystick takes over from the autopilot.

Two phone screens: the SyncLab intro, and the stacked Compare view with a touch joystick and a Controls button
05 Key decisions

What I chose, and what it cost.

Open any decision to see the alternative and the price I paid for it.

Instead ofOne pane, with presets that swapped the whole lab between “Naive” and “Modern”.
BecauseThe difference is visible at once under identical conditions, instead of remembered from a previous mode.
The costTwo clients, two rooms and twice the rendering on every visit, and on a phone each pane gets half the height.
Instead ofA loading screen while the free-tier server wakes, or a client-only fake of the game.
BecauseThe demo never shows a dead canvas, and the fallback is the production code, not a second implementation that could drift from it.
The costThe server lost direct access to Node: the WebSocket became a three-field socket interface, and cross-device multiplayer still needs the live server, which the UI now has to say out loud.
Instead ofWaiting for the visitor to move.
BecauseWithout movement there is no prediction gap, no correction and nothing to see, and many visitors never press a key.
The costThe first thing a visitor sees is not their own input, so the handoff needed its own affordance: a pill on each arena that lights up W A S D in turn.
06 Outcome

What shipped.

Product film
The first SyncLab build: one arena, a dense control column and a text-only network logThe redesigned SyncLab: naive and predicted panes side by side, packet lanes, a control dock and telemetry sparklinesBeforeAfter
⇆
Drag to compare. The first build against the redesign, both at 1600 × 800.
Problems ranked in the audit
15
Browser checks passing on the production build
34
Frames per second under Chaos, every effect on
60
Visit the live site ↗
  1. Input30Hz input samplerKeys, joystick or autopilot → sequenced commands
  2. Authority30Hz fixed-timestep serverSame code in Node or in the tab · restore-and-replay reconcile
  3. Render20Hz snapshots → rAF canvasGhosts, corrections and packet lanes from read-only telemetry

SyncLab is a pnpm-workspace monorepo: a Next.js 16 / React 19 client, a Node.js server on raw ws with no game engine, database or auth, and a shared package of pure functions (movement, reconciliation, interpolation, protocol guards) imported by both sides, so client prediction and server simulation can never drift into two implementations. The redesign moved the authoritative server itself (room manager, 30Hz fixed-timestep loop with capped catch-up, 20Hz snapshot accumulator, message dispatch) into that package behind a three-field socket interface, so the Node process and the in-tab fallback run the same code. A seeded network simulator delays or drops whole messages in both directions: deterministic and reproducible, at the price of never modelling partial-packet behaviour the way real UDP or TCP would. Everything the new visuals draw comes from read-only telemetry hooks (packet flights, correction records, RFC 3550 jitter); nothing feeds back into the simulation, and GSAP animates only the effects, never a player. The canvas stays outside React, which receives metrics four times a second.

  • Next.js 16
  • React 19
  • TypeScript
  • Tailwind 4
  • Radix/shadcn UI
  • GSAP
  • Canvas 2D
  • Node.js + ws
  • pnpm workspaces
  • Vitest
07 Reflection

What I'd change, and what I'd keep.

I'd do differently

Wireframe the Compare view first. The redesign's biggest fix was a layout decision, and it came after the netcode was finished. The game client and network simulator still need tests of their own.

I'd keep

One shared movement function, and now one shared server, for every side. It's why the corrections on screen are the real ones.

Next case studyRLS GeneratorA visual builder that turns a schema and a role-by-operation matrix into Supabase row-level security SQL, live.

Open to full-time product design and full-stack development roles. Let's build something people rely on.

javiertpga@gmail.com