Skip to content
Agents tracked: 502 Releases (7d): 613 Agent status: 4 with issuesSince last limit reset: Claude 7d · Codex 5d For AI agents: Markdown Updated Nov 18, 2026

React Three Fiber examples

by Poimandres (pmndrs)

Gallery of React Three Fiber scenes (shaders, portals, caustics, scroll, physics, glass) linked to runnable sandboxes with source.

Web animation examples and effects Code libraryOpen source3dabstractdark

GitHub repoWebsite
Placeholder headline bars and buttons on the left, and on the right a knot, a cube, a ball, a ring and a gem with soft shadows, turning slowly in a React Three Fiber scene.
Made by AgentGid with @react-three/fiber 9.8.2 with react 19.3.1, react-dom 19.3.1 and three 0.187.0 (npm). React Three Fiber, React and three.js are MIT licensed; the scene, shapes and colors are our own, and no example sandbox code or model was copied.

2. Commercial use: raw.githubusercontent.com

“to use, copy, modify, merge, publish, distribute, sublicense, and/or sell”

The library is MIT licensed, so it may be used and sold as part of a product.

raw.githubusercontent.com

License checked Nov 5, 2026 against 1 official page. Tap a verdict to see its source. How we checked Report an error

React Three Fiber examples: 3D scenes for React sites

This is a gallery of example 3D scenes made with React Three Fiber, a free code library that lets a React site show interactive 3D. Each example opens as a live online sandbox with its full code, so you or your AI assistant can copy one and change it. The library is free for paid projects, but check each example's own models and pictures before reuse.

Where you can use it

A 3D top section on a landing page

A 3D top section on a landing page

Put moving 3D shapes or a product next to your headline instead of a flat picture. The scene is built from small reusable pieces.

Objects that react to the pointer

Make a 3D object grow when clicked and change color when the pointer is over it, for playful buttons or product pickers.

A 3D model of your product

Show a model from a 3D design app, such as a shoe or a gadget, that visitors can look at on your page.

3D inside a phone app

Use the same scene code in a React Native app for iPhone and Android.

A product color picker Idea

Let shoppers turn a 3D product around and switch its colors or parts before they buy.

A story that moves as you scroll Idea

Move the camera or objects as the visitor scrolls, for a product launch or a portfolio page.

React Three Fiber examples popularity

69 / 100
Gid Score, same scale as developer tools
33,782
GitHub stars
9.2M
npm downloads, last 7 days
+35.0% in 4 weeks
74
AI-agent projects using it, from our repo scan of 4,817
React Three Fiber examples: downloads per weeknpm, @react-three/fiber 9,238,944
React Three Fiber examples: GitHub starspmndrs/react-three-fiber 33,782

Downloads from api.npmjs.org, stars from GitHub, checked Nov 17, 2026. How the Gid Score is calculated

How to start

Tell your AI assistant

“Add a React Three Fiber scene to my hero section with @react-three/fiber 9.8.2, react 19 and three pinned: a few turning shapes with soft shadows, animation done with useFrame and delta, and a plain image fallback.”

Or install it yourself. Add three.js and React Three Fiber to a React project (for example one made with Vite).

npm install three @types/three @react-three/fiber

Mistakes to avoid

@react-three/fiber@latest (9.x) in a project that still uses React 18
Use @react-three/fiber@8 with React 18, or upgrade the project to React 19 first

Each major version of the library pairs with one major version of React; 9.8.2 also caps React below 19.4.

useFrame(() => setX((x) => x + 0.1)) to animate
useFrame((state, delta) => (ref.current.position.x += delta))

State updates every frame push each frame through React; change the object through a ref and use delta so speed does not depend on the screen.

ReactDOM.render(...) copied from the no-build example on the installation page
createRoot(document.getElementById('root')).render(...) from 'react-dom/client'

React 19, which version 9 needs, removed ReactDOM.render.

<Canvas shadows> with three 0.187
<Canvas shadows="percentage"> (or "basic" or "variance")

shadows={true} asks for PCFSoftShadowMap, which our demo run with three 0.187.0 reported as removed and replaced by PCFShadowMap.

Creating a new geometry or material for every item inside a list render
Share them with useMemo, or use instancing for many similar objects

Each material and geometry has to be compiled and processed, which is slow.

License

MIT license. The library is MIT licensed: free in personal and paid projects, and you keep its short license notice with copies. Models, pictures and code in each online example may come from other people, so check them before reuse.

Commercial use
Yes

“to use, copy, modify, merge, publish, distribute, sublicense, and/or sell” raw.githubusercontent.com

Credit
Not needed

“The above copyright notice and this permission notice shall be included in all” raw.githubusercontent.com

Inside your app or game
Can ship inside your app

“to use, copy, modify, merge, publish, distribute, sublicense, and/or sell” raw.githubusercontent.com

Pass the files on to your users
Allowed

“to use, copy, modify, merge, publish, distribute, sublicense, and/or sell” raw.githubusercontent.com

AI training
Not stated
Bots and bulk downloads
Not stated

AllowedWith conditionsNot allowedNot stated or not checked yet

Is React Three Fiber examples free for commercial use? The full answer Not legal advice. Check the license page before you ship.

For your agent

License rules tell your agent what it may do with React Three Fiber examples. Paste them into your prompt or AGENTS.md.

License rules
- React Three Fiber examples (Web animation examples and effects, Video references and motion backgrounds, 3D models). Gallery of React Three Fiber scenes (shaders, portals, caustics, scroll, physics, glass) linked to runnable sandboxes with source. Price: free; commercial use OK; no credit needed. Style: 3d, abstract, dark.
  Connect: npm @react-three/fiber.
  Get files: Open an example from the docs page and copy its code from the linked sandbox; npm install @react-three/fiber three (jsx, tsx, js, glb).
  Not allowed: Sandbox assets may have their own licenses
  Rule: Library code is MIT; each linked sandbox/demo may have its own license and assets: check before copying.
  License: https://raw.githubusercontent.com/pmndrs/react-three-fiber/master/LICENSE (checked 2026-11-05; details: https://agentgid.com/assets/react-three-fiber-examples/)
Can an agent use it by itself?
Yes.

Agent copies the code, snippet or prompt from the page (no account).

Install
npm install @react-three/fiber
How an agent gets files
Open an example from the docs page and copy its code from the linked sandbox; npm install @react-three/fiber three.

Formats: jsx, tsx, js, glb

API, key or account
Not needed. Everything runs on your side.
MCP server
None found
Credit line, if you want one
3D scene made with React Three Fiber (MIT)
This card for machines

Alternatives

React Three Fiber examples This page

Free Commercial OK npm

three.js examples

Pick the three.js examples when your site does not use React and you want plain three.js code for the same kinds of effects.

Free Commercial OK npm

OGL examples

Pick OGL examples for a much smaller WebGL library that suits light hero backgrounds.

Free Commercial OK npm

Paper Shaders

Pick Paper Shaders for ready animated gradient and texture backgrounds without building a 3D scene.

Free Commercial OK npm

Lenis

Lightweight smooth-scroll library often paired with GSAP ScrollTrigger and WebGL scroll effects.

Free Commercial OK npm

Animate.css

Ready-made CSS keyframe animations (bounce, fade, slide, zoom, attention seekers) added with one class name.

Free With conditions npm

All web animation examples and effects

Questions

Can I use React Three Fiber in a paid product?

Yes. The library is MIT licensed; keep its license notice with copies of the code.

Does it do less than plain three.js?

The makers say no; everything in three.js also works here.

Which React version do I need?

React 19 for version 9 of the library, React 18 for version 8.

Can I load my own 3D models?

Yes. The docs cover the common formats GLTF, FBX, OBJ and STL.

Does it work in a Next.js site?

Yes, though some three.js add-ons need three added to transpilePackages in next.config.js.