Under the Lab’s 3D room sit two names worth knowing: Three.js, the engine that draws 3D in a browser, and React Three Fiber, the bridge that lets you build that 3D the way React builds interfaces — out of components.
What it is
Three.js is a JavaScript library that talks to WebGL, the browser’s 3D machinery: scenes, cameras, lights, materials, meshes. React Three Fiber — you’ll see it shortened to R3F — is a renderer for React that targets Three.js instead of the page, so a light, a coil, a whole room become components you can declare, nest, and reuse, with state flowing through them the same way it flows through a button or a card.
What it does on this site
The Second Brain room in the Lab — the Tesla-led space, with its coils and its data web — is built this way: React Three Fiber over Three.js, bundled right into the Lab at /lab/. And for contrast, the little globe on our homepage uses no library at all — it’s hand-rolled WebGL, written line by line, because one turning sphere didn’t need an engine. Both choices are the same rule: the lightest tool that honestly does the job.
What it’s capable of
Full 3D worlds in a browser tab: product configurators you can spin in your hands, data you can walk through, rooms like ours. R3F’s gift is that the 3D scene stops being a separate program and becomes part of the interface’s family — same components, same state, same discipline.