drei
freeReady-made helpers for React Three Fiber: controls, loaders, environments, text, shaders.

Try these
React Three Fiber
React renderer for three.js: build 3D scenes as JSX components with hooks.
three.js
The standard WebGL and WebGPU 3D engine: scenes, cameras, materials, loaders.
Spline (react-spline)
Embed 3D scenes designed in the Spline editor as a React component.
OGL
Minimal WebGL library (about a tenth of three.js) for custom shader effects.
Looks that pick it
For your agent
Install
npm i @react-three/dreiUse it for
- orbit or presentation controls on a product model
- loading a GLB model and HDRI lighting in a few lines
- 3D text, floating motion, soft shadows and HTML labels pinned to 3D points
Skip it when
- you are not using r3f: drei is r3f-only, use three's examples/jsm addons
What's inside45 free
- Controls (OrbitControls, MapControls...)
- CameraControls
- ScrollControls
- PresentationControls
- KeyboardControls
- PivotControls
- TransformControls
- GizmoHelper
- Grid
- PerspectiveCamera
- OrthographicCamera
- Environment
- Lightformer
- Stage
- ContactShadows
- AccumulativeShadows
- Float
- Sparkles
- Stars
- Sky
- Cloud
- Center
- Bounds
- Html
- Text
- Text3D
- Image
- Svg
- Decal
- Outlines
- Edges
- MeshTransmissionMaterial
- MeshReflectorMaterial
- MeshDistortMaterial
- MeshPortalMaterial
- shaderMaterial
- RenderTexture
- View
- Hud
- useGLTF
- useTexture
- useVideoTexture
- useAnimations
- Instances
- PerformanceMonitor
Facts
- Frameworks
- react
- Styling
- unstyled
- Weight
- medium
- Accessibility
- weak
- Maturity
- established
- License
- MIT
- Price
- Free
Pairs with
import { Canvas } from '@react-three/fiber'
import { OrbitControls, Environment, useGLTF } from '@react-three/drei'
function Model() {
const { scene } = useGLTF('/shoe.glb')
return <primitive object={scene} />
}
<Canvas camera={{ position: [0, 0, 4] }}>
<Model />
<Environment preset="studio" />
<OrbitControls enablePan={false} />
</Canvas>https://drei.pmnd.rs
Loading website