---
title: "How We Built the BFCM 2023 Globe"
description: "Shopify'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."
url: "https://swe.quest/articles/how-we-built-the-bfcm-2023-globe-509c84faf6998eb6"
canonical: "https://shopify.engineering/how-we-built-shopifys-bfcm-2023-globe"
source: "Shopify Engineering"
published: "2024-10-30"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 17
tags: ["frontend","performance","react"]
---

# How We Built the BFCM 2023 Globe

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2024-10-30, 17 min read, Deep dive. Original: [https://shopify.engineering/how-we-built-shopifys-bfcm-2023-globe](https://shopify.engineering/how-we-built-shopifys-bfcm-2023-globe)

## Summary

Shopify'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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [React](https://swe.quest/tags/react.md) (Web & mobile)

## Prerequisites

- 3D graphics basics
- vertex shaders
- Three.js

## Keywords

Three.js, React-three-fiber, WebGL, GPU instancing, Bézier curves, Hermite splines, react-spring, BFCM

## Related posts

- [Behind the build: 2025's BFCM globe in a pinball machine 🌎🕹️](https://swe.quest/articles/behind-the-build-2025-s-bfcm-globe-in-a-pinball-machine-31ac98f2441d854c.md): Shopify Engineering · 2025-12-03 · Medium · 16 min read · Frontend, React, Performance engineering, Games, Real-time systems
  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.
- [Coding the stars - an interactive constellation with Three.js and React Three Fiber](https://swe.quest/articles/coding-the-stars-an-interactive-constellation-with-three-js-and-react-three-5ccc7dd966bd420d.md): Supabase · 2023-08-04 · Medium · 10 min read · React, Frontend, JavaScript
  Supabase 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.
- [How We Built Shopify Party](https://swe.quest/articles/how-we-built-shopify-party-138ce85fd801204a.md): Shopify Engineering · 2022-06-14 · Medium · 13 min read · Games, Real-time systems, Performance engineering, WebAssembly
  Shopify Party is a browser-based multiplayer 3D hangout space built in Unity WebGL with Normcore for networking.
- [How did we build 3D animations in mobile apps?](https://swe.quest/articles/how-did-we-build-3d-animations-in-mobile-apps-a24b8209662d76ad.md): Wise Engineering · 2025-01-29 · Medium · 4 min read · Mobile, Performance engineering, JavaScript
  Wise renders its brand 3D illustrations interactively in its iOS and Android apps by building three.js/WebGL scenes as standalone local HTML files shown in web views, which it chose over native or Filament for cross-platform reuse and documentation, and which hit 60–120 FPS.
- [The Future of React Native Graphics: WebGPU, Skia, and Beyond](https://swe.quest/articles/the-future-of-react-native-graphics-webgpu-skia-and-beyond-c599058475fc1e90.md): Shopify Engineering · 2025-06-20 · Easy · 7 min read · React, Mobile, Performance engineering
  React 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.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
