{
 "slug": "react-three-fiber-examples",
 "name": "React Three Fiber examples",
 "author": "Poimandres (pmndrs)",
 "density": "full",
 "status": "active",
 "status_note": null,
 "alternatives_page": null,
 "one_liner": "Gallery of React Three Fiber scenes (shaders, portals, caustics, scroll, physics, glass) linked to runnable sandboxes with source.",
 "category": {
  "slug": "motion-examples",
  "name": "Web animation examples and effects"
 },
 "tags": [
  "Code library",
  "Open source"
 ],
 "styles": [
  "3d",
  "abstract",
  "dark"
 ],
 "logo_url": "https://agentgid.com/media/avatars/pmndrs.png",
 "logo_letter": "R",
 "links": {
  "repo": "https://github.com/pmndrs/react-three-fiber",
  "website": "https://r3f.docs.pmnd.rs/getting-started/examples",
  "api_docs": null
 },
 "preview": {
  "kind": "image_grid",
  "src": "https://agentgid.com/assets/react-three-fiber-examples/demo.jpg",
  "alt": "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.",
  "caption": "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."
 },
 "verdicts": [
  {
   "key": "price",
   "label": "Price",
   "value": "Free",
   "status": "yes",
   "sub": "No paid plan",
   "quote": null,
   "note": "Fully free.",
   "source": {
    "label": "r3f.docs.pmnd.rs/getting-started/examples",
    "url": "https://r3f.docs.pmnd.rs/getting-started/examples"
   },
   "n": 1
  },
  {
   "key": "commercial",
   "label": "Commercial use",
   "value": "Yes",
   "status": "yes",
   "sub": "MIT",
   "quote": "to use, copy, modify, merge, publish, distribute, sublicense, and/or sell",
   "note": "The library is MIT licensed, so it may be used and sold as part of a product.",
   "source": {
    "label": "raw.githubusercontent.com",
    "url": "https://raw.githubusercontent.com/pmndrs/react-three-fiber/master/LICENSE"
   },
   "n": 2
  },
  {
   "key": "credit",
   "label": "Credit the author",
   "value": "Not needed",
   "status": "yes",
   "sub": "Keep the notice in code copies",
   "quote": "The above copyright notice and this permission notice shall be included in all",
   "note": "No credit on screen. Keep the license notice inside the code you ship.",
   "source": {
    "label": "raw.githubusercontent.com",
    "url": "https://raw.githubusercontent.com/pmndrs/react-three-fiber/master/LICENSE"
   },
   "n": 3
  },
  {
   "key": "agent_access",
   "label": "Agent access",
   "value": "npm package",
   "status": "info",
   "sub": "Installs without a key",
   "quote": null,
   "note": "An agent can install it by itself with npm install @react-three/fiber. No key or account is needed.",
   "source": {
    "label": "github.com/pmndrs/react-three-fiber",
    "url": "https://github.com/pmndrs/react-three-fiber"
   },
   "n": 4
  }
 ],
 "license": {
  "name": "MIT",
  "url": "https://raw.githubusercontent.com/pmndrs/react-three-fiber/master/LICENSE",
  "summary": "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.",
  "pages_read": 1,
  "rules": [
   "Library code is MIT; each linked sandbox/demo may have its own license and assets: check before copying."
  ],
  "rows": [
   {
    "label": "Commercial use",
    "value": "Yes",
    "status": "yes",
    "quote": "to use, copy, modify, merge, publish, distribute, sublicense, and/or sell",
    "source": {
     "label": "raw.githubusercontent.com",
     "url": "https://raw.githubusercontent.com/pmndrs/react-three-fiber/master/LICENSE"
    },
    "note": null
   },
   {
    "label": "Credit",
    "value": "Not needed",
    "status": "yes",
    "quote": "The above copyright notice and this permission notice shall be included in all",
    "source": {
     "label": "raw.githubusercontent.com",
     "url": "https://raw.githubusercontent.com/pmndrs/react-three-fiber/master/LICENSE"
    },
    "note": null
   },
   {
    "label": "Inside your app or game",
    "value": "Can ship inside your app",
    "status": "yes",
    "quote": "to use, copy, modify, merge, publish, distribute, sublicense, and/or sell",
    "source": {
     "label": "raw.githubusercontent.com",
     "url": "https://raw.githubusercontent.com/pmndrs/react-three-fiber/master/LICENSE"
    },
    "note": null
   },
   {
    "label": "Pass the files on to your users",
    "value": "Allowed",
    "status": "yes",
    "quote": "to use, copy, modify, merge, publish, distribute, sublicense, and/or sell",
    "source": {
     "label": "raw.githubusercontent.com",
     "url": "https://raw.githubusercontent.com/pmndrs/react-three-fiber/master/LICENSE"
    },
    "note": null
   },
   {
    "label": "AI training",
    "value": "Not stated",
    "status": "unknown",
    "quote": null,
    "source": null,
    "note": null
   },
   {
    "label": "Bots and bulk downloads",
    "value": "Not stated",
    "status": "unknown",
    "quote": null,
    "source": null,
    "note": null
   }
  ],
  "checked_at": "2026-11-05",
  "commercial_use_page": "https://agentgid.com/assets/react-three-fiber-examples/commercial-use/"
 },
 "overview": {
  "heading": "React Three Fiber examples: 3D scenes for React sites",
  "body": "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."
 },
 "uses": [
  {
   "title": "A 3D top section on a landing page",
   "text": "Put moving 3D shapes or a product next to your headline instead of a flat picture. The scene is built from small reusable pieces.",
   "idea": false,
   "image": "https://agentgid.com/assets/react-three-fiber-examples/demo.jpg"
  },
  {
   "title": "Objects that react to the pointer",
   "text": "Make a 3D object grow when clicked and change color when the pointer is over it, for playful buttons or product pickers.",
   "idea": false,
   "image": null
  },
  {
   "title": "A 3D model of your product",
   "text": "Show a model from a 3D design app, such as a shoe or a gadget, that visitors can look at on your page.",
   "idea": false,
   "image": null
  },
  {
   "title": "3D inside a phone app",
   "text": "Use the same scene code in a React Native app for iPhone and Android.",
   "idea": false,
   "image": null
  },
  {
   "title": "A product color picker",
   "text": "Let shoppers turn a 3D product around and switch its colors or parts before they buy.",
   "idea": true,
   "image": null
  },
  {
   "title": "A story that moves as you scroll",
   "text": "Move the camera or objects as the visitor scrolls, for a product launch or a portfolio page.",
   "idea": true,
   "image": null
  }
 ],
 "start": {
  "prompt": "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.",
  "install": "npm install three @types/three @react-three/fiber",
  "install_note": "Add three.js and React Three Fiber to a React project (for example one made with Vite).",
  "code": []
 },
 "mistakes": [
  {
   "dont": "@react-three/fiber@latest (9.x) in a project that still uses React 18",
   "fix": "Use @react-three/fiber@8 with React 18, or upgrade the project to React 19 first",
   "why": "Each major version of the library pairs with one major version of React; 9.8.2 also caps React below 19.4.",
   "dont_code": false,
   "fix_code": false
  },
  {
   "dont": "useFrame(() => setX((x) => x + 0.1)) to animate",
   "fix": "useFrame((state, delta) => (ref.current.position.x += delta))",
   "why": "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.",
   "dont_code": false,
   "fix_code": false
  },
  {
   "dont": "ReactDOM.render(...) copied from the no-build example on the installation page",
   "fix": "createRoot(document.getElementById('root')).render(...) from 'react-dom/client'",
   "why": "React 19, which version 9 needs, removed ReactDOM.render.",
   "dont_code": false,
   "fix_code": false
  },
  {
   "dont": "<Canvas shadows> with three 0.187",
   "fix": "<Canvas shadows=\"percentage\"> (or \"basic\" or \"variance\")",
   "why": "shadows={true} asks for PCFSoftShadowMap, which our demo run with three 0.187.0 reported as removed and replaced by PCFShadowMap.",
   "dont_code": true,
   "fix_code": true
  },
  {
   "dont": "Creating a new geometry or material for every item inside a list render",
   "fix": "Share them with useMemo, or use instancing for many similar objects",
   "why": "Each material and geometry has to be compiled and processed, which is slow.",
   "dont_code": false,
   "fix_code": false
  }
 ],
 "agent": {
  "self_serve": true,
  "self_serve_text": "Agent copies the code, snippet or prompt from the page (no account)",
  "install": "npm install @react-three/fiber",
  "repo": "https://github.com/pmndrs/react-three-fiber",
  "api_docs": null,
  "api_account": "Not needed. Everything runs on your side.",
  "get_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"
  ],
  "limits": null,
  "mcp": null,
  "mcp_url": null,
  "credit_line": "3D scene made with React Three Fiber (MIT)",
  "rules_text": "- 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.\n  Connect: npm @react-three/fiber.\n  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).\n  Not allowed: Sandbox assets may have their own licenses\n  Rule: Library code is MIT; each linked sandbox/demo may have its own license and assets: check before copying.\n  License: https://raw.githubusercontent.com/pmndrs/react-three-fiber/master/LICENSE (checked 2026-11-05; details: https://agentgid.com/assets/react-three-fiber-examples/)",
  "agent_md": "https://agentgid.com/assets/react-three-fiber-examples/agent.md",
  "card_json": "https://agentgid.com/assets/react-three-fiber-examples/card.json"
 },
 "popularity": {
  "gid_score": 69,
  "stars": 33782,
  "downloads_7d": 9238944,
  "downloads_7d_label": "9.2M",
  "downloads_change_4w_pct": 35.0,
  "eco": "npm",
  "package": "@react-three/fiber",
  "repo": "pmndrs/react-three-fiber",
  "agent_projects": 74,
  "agent_projects_total": 4817,
  "downloads_unconfirmed": false,
  "series": {
   "downloads_weekly": [
    [
     "2025-11-17",
     1096043
    ],
    [
     "2025-11-24",
     953901
    ],
    [
     "2025-12-01",
     1181639
    ],
    [
     "2025-12-08",
     1245826
    ],
    [
     "2025-12-15",
     1178560
    ],
    [
     "2025-12-22",
     819311
    ],
    [
     "2025-12-29",
     842340
    ],
    [
     "2026-01-05",
     1320062
    ],
    [
     "2026-01-12",
     1509561
    ],
    [
     "2026-01-19",
     1595743
    ],
    [
     "2026-01-26",
     1711488
    ],
    [
     "2026-02-02",
     2457472
    ],
    [
     "2026-02-09",
     1825913
    ],
    [
     "2026-02-16",
     2067579
    ],
    [
     "2026-02-23",
     2573463
    ],
    [
     "2026-03-02",
     2555881
    ],
    [
     "2026-03-09",
     2491636
    ],
    [
     "2026-03-16",
     3882572
    ],
    [
     "2026-03-23",
     3681556
    ],
    [
     "2026-03-30",
     3592064
    ],
    [
     "2026-04-06",
     2823019
    ],
    [
     "2026-04-13",
     3161050
    ],
    [
     "2026-04-20",
     3291510
    ],
    [
     "2026-04-27",
     3240634
    ],
    [
     "2026-05-04",
     3103347
    ],
    [
     "2026-05-11",
     3255133
    ],
    [
     "2026-05-18",
     3278271
    ],
    [
     "2026-05-25",
     3237525
    ],
    [
     "2026-06-01",
     3912753
    ],
    [
     "2026-06-08",
     3856349
    ],
    [
     "2026-06-15",
     4105846
    ],
    [
     "2026-06-22",
     3968546
    ],
    [
     "2026-06-29",
     3795851
    ],
    [
     "2026-07-06",
     4346517
    ],
    [
     "2026-07-13",
     4447542
    ],
    [
     "2026-07-20",
     4866748
    ],
    [
     "2026-07-27",
     5078512
    ],
    [
     "2026-08-03",
     5025658
    ],
    [
     "2026-08-10",
     4877546
    ],
    [
     "2026-08-17",
     4807662
    ],
    [
     "2026-08-24",
     5163291
    ],
    [
     "2026-08-31",
     5568684
    ],
    [
     "2026-09-07",
     3893374
    ],
    [
     "2026-09-14",
     4931213
    ],
    [
     "2026-09-21",
     6163113
    ],
    [
     "2026-09-28",
     7071105
    ],
    [
     "2026-10-05",
     6219295
    ],
    [
     "2026-10-12",
     5340483
    ],
    [
     "2026-10-19",
     5636551
    ],
    [
     "2026-10-26",
     9331572
    ],
    [
     "2026-11-02",
     9271504
    ],
    [
     "2026-11-09",
     9238944
    ]
   ],
   "stars": [
    [
     "2026-11-07",
     33560
    ],
    [
     "2026-11-08",
     33567
    ],
    [
     "2026-11-09",
     33600
    ],
    [
     "2026-11-10",
     33621
    ],
    [
     "2026-11-11",
     33641
    ],
    [
     "2026-11-12",
     33667
    ],
    [
     "2026-11-13",
     33695
    ],
    [
     "2026-11-14",
     33716
    ],
    [
     "2026-11-15",
     33733
    ],
    [
     "2026-11-16",
     33754
    ],
    [
     "2026-11-17",
     33782
    ]
   ]
  },
  "stars_flat_since": null,
  "updated_at": "2026-11-17"
 },
 "alternatives": [
  {
   "slug": "react-three-fiber-examples",
   "name": "React Three Fiber examples",
   "why": null,
   "current": true,
   "price": "Free",
   "commercial": {
    "value": "Commercial OK",
    "status": "yes"
   },
   "access": "npm"
  },
  {
   "slug": "threejs-examples",
   "name": "three.js examples",
   "why": "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.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "Commercial OK",
    "status": "yes"
   },
   "access": "npm"
  },
  {
   "slug": "ogl-examples",
   "name": "OGL examples",
   "why": "Pick OGL examples for a much smaller WebGL library that suits light hero backgrounds.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "Commercial OK",
    "status": "yes"
   },
   "access": "npm"
  },
  {
   "slug": "paper-shaders",
   "name": "Paper Shaders",
   "why": "Pick Paper Shaders for ready animated gradient and texture backgrounds without building a 3D scene.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "Commercial OK",
    "status": "yes"
   },
   "access": "npm"
  },
  {
   "slug": "lenis",
   "name": "Lenis",
   "why": "Lightweight smooth-scroll library often paired with GSAP ScrollTrigger and WebGL scroll effects.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "Commercial OK",
    "status": "yes"
   },
   "access": "npm"
  },
  {
   "slug": "animate-css",
   "name": "Animate.css",
   "why": "Ready-made CSS keyframe animations (bounce, fade, slide, zoom, attention seekers) added with one class name.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "With conditions",
    "status": "cond"
   },
   "access": "npm"
  }
 ],
 "faq": [
  {
   "q": "Can I use React Three Fiber in a paid product?",
   "a": "Yes. The library is MIT licensed; keep its license notice with copies of the code."
  },
  {
   "q": "Does it do less than plain three.js?",
   "a": "The makers say no; everything in three.js also works here."
  },
  {
   "q": "Which React version do I need?",
   "a": "React 19 for version 9 of the library, React 18 for version 8."
  },
  {
   "q": "Can I load my own 3D models?",
   "a": "Yes. The docs cover the common formats GLTF, FBX, OBJ and STL."
  },
  {
   "q": "Does it work in a Next.js site?",
   "a": "Yes, though some three.js add-ons need three added to transpilePackages in next.config.js."
  }
 ],
 "at_a_glance": {
  "latest_version": "9.8.2",
  "last_release": "2026-10-15",
  "last_commit": "2026-10-21",
  "runtime": "React 19 and react-dom 19 (9.8.2 lists react \">=19 <19.4\" as its peer range); three 0.156 or newer. Our demo used react 19.3.1 and three 0.187.0.",
  "key_needed": false,
  "formats": "jsx, tsx, js, glb"
 },
 "good_to_know": [
  "The makers say you need to know both React and three.js before starting, so expect a learning curve.",
  "Version 9 works with React 19 and version 8 with React 18. A mismatch breaks the app.",
  "Version 10 is being tested with support for newer graphics in browsers, so pin version 9 for now.",
  "Phone simulators on a Mac often crash with 3D; test phone apps on a real iPhone or iPad."
 ],
 "stack_snippets": [],
 "claims": [],
 "checked": {
  "license_read": "2026-11-05",
  "overview_checked": "2026-11-09",
  "numbers_updated": "2026-11-17",
  "sources": [
   {
    "label": "r3f.docs.pmnd.rs/getting-started/examples",
    "url": "https://r3f.docs.pmnd.rs/getting-started/examples"
   },
   {
    "label": "r3f.docs.pmnd.rs",
    "url": "https://r3f.docs.pmnd.rs/getting-started/introduction"
   },
   {
    "label": "r3f.docs.pmnd.rs",
    "url": "https://r3f.docs.pmnd.rs/getting-started/installation"
   },
   {
    "label": "r3f.docs.pmnd.rs",
    "url": "https://r3f.docs.pmnd.rs/getting-started/your-first-scene"
   },
   {
    "label": "r3f.docs.pmnd.rs/api/canvas",
    "url": "https://r3f.docs.pmnd.rs/api/canvas"
   },
   {
    "label": "r3f.docs.pmnd.rs/advanced/pitfalls",
    "url": "https://r3f.docs.pmnd.rs/advanced/pitfalls"
   },
   {
    "label": "r3f.docs.pmnd.rs",
    "url": "https://r3f.docs.pmnd.rs/advanced/scaling-performance"
   },
   {
    "label": "r3f.docs.pmnd.rs",
    "url": "https://r3f.docs.pmnd.rs/tutorials/v9-migration-guide"
   },
   {
    "label": "r3f.docs.pmnd.rs/tutorials/loading-models",
    "url": "https://r3f.docs.pmnd.rs/tutorials/loading-models"
   },
   {
    "label": "r3f.docs.pmnd.rs/llms.txt",
    "url": "https://r3f.docs.pmnd.rs/llms.txt"
   },
   {
    "label": "github.com/pmndrs/react-three-fiber",
    "url": "https://github.com/pmndrs/react-three-fiber"
   },
   {
    "label": "README on GitHub",
    "url": "https://github.com/pmndrs/react-three-fiber/blob/master/readme.md"
   },
   {
    "label": "LICENSE on GitHub",
    "url": "https://github.com/pmndrs/react-three-fiber/blob/master/LICENSE"
   },
   {
    "label": "github.com/pmndrs/react-three-fiber/blob/master/packages/fiber/package.json",
    "url": "https://github.com/pmndrs/react-three-fiber/blob/master/packages/fiber/package.json"
   },
   {
    "label": "npm: @react-three/fiber",
    "url": "https://registry.npmjs.org/@react-three/fiber"
   },
   {
    "label": "npm: @react-three/fiber/9.8.2",
    "url": "https://registry.npmjs.org/@react-three/fiber/9.8.2"
   },
   {
    "label": "react.dev",
    "url": "https://react.dev/blog/2024/04/25/react-19-upgrade-guide"
   },
   {
    "label": "raw.githubusercontent.com",
    "url": "https://raw.githubusercontent.com/pmndrs/react-three-fiber/master/LICENSE"
   },
   {
    "label": "npm: @react-three/fiber/latest",
    "url": "https://registry.npmjs.org/@react-three/fiber/latest"
   }
  ],
  "unverified": null
 },
 "user_reports": null,
 "url": "https://agentgid.com/assets/react-three-fiber-examples/",
 "note": "Written by AgentGid from the official pages in checked.sources; quotes are copied from those pages. status: yes | cond | no | unknown | info. Prices and vendor claims are as reported on the checked date. Not legal advice."
}
