Tech-stack reverse-engineering of samspratt.com/story — an interactive WebGL art experience (“The Story of Luci”, ten 1/1 NFT paintings arranged in a ring you can orbit). Captured as the reference model for Learning Interactive 3D Web Graphics.
Stack
Frontend framework
- React 19.2.4 built with Vite (hashed
assets/index-[hash].jsoutput,__viteruntime markers). - Tailwind CSS (
--tw-custom properties in the stylesheet). - lucide-react icons.
- SPA with client-side routing (
?node=artwork-0handled in-app; URL 301s to/story/, React reads the query param).
The art engine — 3D/WebGL
- Three.js r182, lazily loaded as a separate ~787 KB chunk so the landing page stays light.
- Code-split into purpose-built view components (chunk names tell the story):
MaskWebGLViewer,WebGLViewer,ConstellationView,ParticipantRingView,UniverseMap,ArchiveFilmstrip, plusrenderer/rendererPool(they pool WebGL renderers to avoid a new GL context per artwork).
Backend / data
- Firebase throughout: Firebase Hosting (
x-fh-requested-hostheader is the tell), Firebase Storage for high-res images (luci-bc460.firebasestorage.appon Google Cloud Storage), Firestore/Auth bundled. - Served via Fastly CDN (Firebase Hosting runs on Fastly), edge cache HITs.
Web3 / NFT layer
- Dedicated ~343 KB
web3bundle: wagmi + viem + WalletConnect, plus Coinbase Wallet and MetaMask connectors, Ethereum RPC (eth_,chainId). Wallet-connect for the 1/1 NFT paintings.
One-line summary
React 19 + Vite + Tailwind on the surface, Three.js doing the interactive gallery, Firebase (Hosting + Storage + Firestore) as backend, and a wagmi/viem web3 layer for the NFT side. All behind Fastly.
Takeaway for building your own
The NFT/web3 layer is optional and separable. The reusable core for an art experience is React + Vite + Three.js (via R3F) + a host with image storage. That’s the stack the Learning Interactive 3D Web Graphics path targets.
Related
- Learning Interactive 3D Web Graphics — the learning roadmap modelled on this site