Behind the build: 2025's BFCM globe in a pinball machine 🌎🕹️
Shopify's 2025 BFCM live globe was embedded in a browser pinball game built with three.js and react-three-fiber, streaming real merchant orders via server-sent events and reacting to sales milestones and first sales. The team switched from Rapier 3D to Rapier 2D physics for mobile performance, faking ramps with sensors that toggle collider sets, and cut the physics step from 2ms to about 0.2ms even with six balls and continuous collision detection. Lighting was baked in Blender with MeshBasicMaterials. The 85 dynamic table lights are rendered via an emissive texture plus a mask texture encoding light IDs in the red channel. A shader plays 128x32 dot-matrix sprite sheets, and AR support took about 100 lines with @react-three/xr.
Related posts
- How We Built the BFCM 2023 Globe
Shopify Engineering mediumAdeptShopify's BFCM 2023 live-orders globe was built with Three.js and React-three-fiber, and most of its effects are drawn in single instanced draw calls. Order arcs are cubic Bézier curves evaluated in the vertex shader from per-instance attributes stored in an interleaved buffer. They are billboarded using the cross product of the curve tangent and the camera direction, and dissolve via UV-driven noise. Instancing let the team render tens of thousands of arcs, and up to a million on an M1 laptop, where earlier per-mesh arcs struggled past 1000 on mobile. The same approach covers fireworks, city dots and orbiting airplanes, along with fixes for a camera flip caused by the lookAt up vector, Hermite-spline 'loopy arcs', and working around WebGL's 255-byte attribute stride limit.
- Coding the stars - an interactive constellation with Three.js and React Three Fiber
Supabase mediumAdeptSupabase built its Launch Week 8 visual as an animated constellation where each user ticket signup becomes a star particle tracing an "8" shape, using Three.js via React Three Fiber in Next.js. Each particle is a low-sided circle geometry with additive blending, positioned every frame in useFrame using sin/cos of elapsed time, with the cosine sign flipped on alternate loops to form the figure eight. Randomized speed, delay offsets and Math.pow-based path offsets concentrate particles toward the shape's core. A dat.gui debug panel, loaded via dynamic import to avoid SSR window errors, was wired to React state so the team could tune parameters and settle on the final design.
- How We Built Shopify Party
Shopify Engineering mediumAdeptShopify Party is a browser-based multiplayer 3D hangout space built in Unity WebGL with Normcore for networking. Normcore uses client-owned state rather than an authoritative server. Uncontrolled objects such as moving platforms stay in sync because their motion is a deterministic function of the shared room time, not a Unity animation. Character outfits are separate textures combined at runtime in a single shader, which lets employees design clothing without 3D skills. Optimizations for 60FPS on hardware from M1 Pros to Pixelbooks include Simple Lit materials instead of PBR, GPU instancing to cut draw calls, and a render scale capped to a target width.
- Bun 1.3
Bun mediumAdept
Bun 1.3 turns Bun into a full-stack JavaScript runtime. Bun.serve() now includes a built-in frontend dev server with HMR and React Fast Refresh, parameterized routing, and standalone executables for full-stack apps. Bun.SQL becomes a unified client for PostgreSQL, MySQL/MariaDB and SQLite, with Postgres additions such as the simple query protocol, prepare:false for PgBouncer, Unix sockets and sql.array. The release also adds a built-in Redis/Valkey client claimed to be 7.9x faster than ioredis, WebSocket subprotocol negotiation and permessage-deflate, workspace install features and Node.js compatibility fixes.
- The Future of React Native Graphics: WebGPU, Skia, and Beyond
Shopify Engineering easyNoviceReact Native WebGPU, built on Google's Dawn, lets React Native apps run Three.js, React Three Fiber, TSL shaders, ComputeToys compute shaders and TensorFlow.js on Metal (iOS) and Vulkan (Android) with no changes, which collapses the separate OpenGL and Metal backends into one. Lessons from that work fed back into React Native Skia. Moving from a mutable C++ scene graph (SkiaDOM) to an immutable, Fabric-reconciler display list made animation up to 50% faster on iOS and nearly 200% faster on Android, while fixing 98% of reported Android crashes. Skia also gained macOS, tvOS and headless Node.js targets, and the experimental Skia Graphite backend previews automatic threading and two-way 2D/3D texture composition.