Shopify’s Daniel Beauchamp, a Distinguished Engineer, posted a thread on 2 December explaining how the company’s Black Friday Cyber Monday skate game runs in a browser. He says it renders at 4K and 120 fps, downloads in under 20 MB and works on phones, and that a small team spent three months on it with every 3D asset made by hand.
I rebuilt a small version of it with Codex to see which of those ideas hold up outside Shopify, and five of the eight pieces I compared made it into the replica, while virtual shadow maps, multiplayer and animated characters didn’t.
What Shopify built
The game sits inside Shopify’s annual live globe, a dashboard where every order from a merchant shows up as an arc. In 2026 the globe went inside a skatepark at bfcm.shop/skate, and players skate around it. The Shopify Engineering write-up says 95% of Black Friday orders appeared on the globe within 2.2 seconds of the sale, and that players from more than 170 countries joined in. A private-room option lets friends skate together, and there are eight quests and eight challenges, such as collecting the letters B-F-C-M or delivering a package.
<20 MB
download for the whole game, says Beauchamp
<500K
triangles in the level, mostly one merged mesh
170+
countries with players so far
2.2 s
for 95% of Black Friday orders to reach the globe
The globe is the shop window for a big weekend. Shopify reported US$18.1 billion in merchant sales over Black Friday Cyber Monday, up 24% on last year, from more than 94 million shoppers. Sales peaked at US$6.8 million a minute and its edge served 13.1 million requests a second at the top.
The stack, piece by piece
The base is three.js with react-three-fiber (r3f) v10 alpha, so the game is a React app. It uses three’s WebGPU renderer, and Rapier handles physics with a capsule as the skater’s collider. Controls are WASD to move and Space to jump, and since the team worked with skate physics specialist KevKev on the feel, the game predicts the jump trajectory so you land on the best spot and plays tricks for you automatically.

Most of the size savings come from not shipping art. Surfaces use one uber shader with procedural patterns (checkerboards, woods, concrete) layered with grain and splotches, authored in Blender with a custom plugin, and many surfaces have no UVs and use triplanar mapping. The few textures that remain use KTX2 compression, which Beauchamp shows loading without blocking the render thread the way a PNG does. The level was handmade over 300 versions, stays under 500K triangles and is mostly one giant merged mesh with no LODs.
The look is a simple toon shader on everything, plus an outline pass with thickness and a slight wobble. The ink fades with distance so faraway detail doesn’t turn to noise, and SMAA smooths the edges. Characters merge the head, top, bottom and shoes into one skinned mesh on the fly in about 0.15 ms, and inverse kinematics adds leaning and crouching to the base animations. Vertex shaders move clothes, leaves and ropes, and all the billboards share one shader with no render textures.
Shadows
Hard shadows sell the toon look, but baked ones needed huge or blurry textures and cascaded shadow maps cost too much on mobile. Shopify implemented virtual shadow mapping instead. The world is split onto a huge virtual grid of tiny tiles, WebGPU compute shaders work out what the camera sees, only newly visible tiles are rendered, and they are cached on the GPU. Beauchamp puts the cost at 0.1 ms on desktop and 1 ms on mobile.

Testing and netcode
Beauchamp says he kept several phones connected and benchmarking at all times, and that agents ran in a loop to find shaders to trim and combine while keeping memory low. Player positions go to a relay server over WebTransport, which he picked because UDP-style packets suit a fast skate game. WebGPU’s HDR output gave a brighter sun and glows, and the soundtrack came from j3n2000.
Who made what
| Person | Credited for |
|---|---|
| Daniel Beauchamp | Distinguished Engineer, wrote the thread and ran the phone and agent optimisation loop |
| KevKev | Skate physics and feel |
| Brennan Letkeman | Level design, over 300 handmade versions |
| Marlon Epes | All characters and animations |
| Diego Macario | Vertex-shader details such as wind and swaying ropes |
| Andy Thelander | Dashboard and billboard design |
| j3n2000 | Custom soundtrack |
What it asks of a browser
WebGPU is the dependency that matters. Caniuse puts global support at about 88.6% of users on October 2026 usage data, with Chrome and Edge since version 113, Safari 26 on macOS 26 and iOS 26, and Firefox on Windows and Apple Silicon Macs. Firefox on Linux, Intel Macs and Android doesn’t have it, and iPhones that can’t update to iOS 26 don’t either. WebTransport, the netcode API, has been listed as Baseline since March 2026 by MDN, and Safari added it in 26.4.
The r3f v10 alpha helps with the gap. Its alpha 6 release made WebGPURenderer the default for the main import and says the renderer can fall back to a WebGL 2 backend. Custom GLSL shaders need the @react-three/fiber/legacy import instead, so a game written in TSL, three’s node-based shading language, is the path that works on both. Shopify says the game “supports mobile too”, and its post doesn’t say which fallback devices were tested.
Last year was a pinball machine
This is the second year the globe has been a three.js and r3f build. Shopify’s 2025 write-up put the globe in a pinball machine, called three.js with r3f “our favorite stack”, and streamed orders to the page with server-sent events. That version used mostly basic materials with lighting baked in Blender. The 2026 game adds procedural materials, realtime shadows and a WebGPU compute pass, which is what the thread is about.
A small replica, built with Codex
I built the replica on a Linux VM with an Intel Xeon at 2.1 GHz, 4 cores, 15 GiB of memory, a 252 GB disk and kernel 6.18.44. Codex CLI 0.173.0 ran on its default model, GPT-6.2 Sol, in a fresh folder with the dependencies already installed: React 19.3.1, three 0.187.0, r3f 10.0.0-alpha.6, Rapier 0.21.0 and Vite 8.4.1. This is the prompt I typed into Codex, word for word:
Build a small browser replica of Shopify's BFCM skate game in this folder. Dependencies are already installed: react 19, @react-three/fiber 10 alpha, three, @dimforge/rapier3d-compat and vite. Use r3f's default WebGPU canvas. Include a skater capsule on Rapier with WASD to move and Space to jump, trajectory prediction that nudges a jump to land on flat ground, one uber material with procedural checker, wood and concrete patterns using triplanar mapping and no textures, a toon look with a wobbling inverted-hull outline, hard shadows, and a billboard showing live-looking sales numbers. Run vite build and tell me the bundle size.
Codex wrote four files in src, 464 lines in all. The skater is a Rapier capsule that runs on a 120 Hz physics step with WASD and Space. One material function builds the checker, wood and concrete surfaces from the same pattern code, with triplanar blending and no image files. A back-face mesh pushed out along its normals by a time-driven sine gives the wobbling outline, banded lighting makes it toon, and one directional light casts hard shadows. A billboard counts up fake sales, and six pickups and a speed readout fill out the HUD.


What I measured
The Vite build produced a 6.0 MB folder, with the main script at 5.9 MB raw and 2.1 MB gzipped. Nearly all of that is three.js, the Rapier physics module and r3f, because the replica has no models, audio, textures or multiplayer code, which makes the number a floor for the tooling and says nothing about whether Shopify’s full game fits in 20 MB.
For the jump assist I ran the replica’s own physics module headless on 452 random jumps at full run speed. The assist changed the jump on 65 of them. Without it the skater landed on a raised platform in 42 of those 65, and with it in 56. That is a smoke test of my replica’s small version of the idea, run on the same random starts, and it doesn’t test Shopify’s trajectory logic.
The browser was headless Chromium 158 with no GPU. The WebGPU renderer ran on its WebGL 2 backend, which is where the screenshots come from. A software WebGPU adapter was available, but the page failed there with a createBuffer size error, so the replica’s WebGPU path is untested. Software rendering ran at 14 fps, so I took no frame-rate measurement of the replica.

What I left out
- Virtual shadow mapping. The replica uses one ordinary shadow map from one light.
- Multiplayer and the WebTransport relay.
- Skinned characters, merged meshes and inverse kinematics.
- KTX2 textures, the Blender plugin and the soundtrack.
- Real-device benchmarking, including the phone loop Beauchamp describes.
Sources
- Daniel Beauchamp on X, the thread
- Shopify Engineering, Inside Shopify’s 2026 BFCM skate game
- Shopify Engineering, the 2025 live globe
- Shopify, BFCM 2026 results release of 1 December, as reproduced by Baker Capital Strategies
- react-three-fiber, v10 migration guide
- Can I use, WebGPU support
Disclosure: I’m an OpenAI, Firecrawl and Devin ambassador.




