{"schemaVersion":1,"id":"github-com-pmndrs-react-three-fiber","name":"React Three Fiber + Drei","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/github-com-pmndrs-react-three-fiber/","officialUrl":"https://github.com/pmndrs/react-three-fiber","isCatalog":false,"description":"A React renderer for Three.js and a collection of ready-made helpers. You can ask Codex to build an interactive 3D scene from components; Drei adds cameras, scroll controls, 3D text, lighting, and environment effects.","tasks":["A 3D hero for a landing page","A rotatable product viewer","A scene that responds to scrolling","Portfolios and interactive graphics"],"categoryIds":["graphics","motion","frontend"],"subcategoryIds":["graphics.webgl","motion.3d","frontend.components"],"tags":["Three.js","React Three Fiber","Drei","React","Codex"],"aliases":[],"platforms":[],"stack":["React","Three.js"],"compatibility":null,"pricing":"free","freeUsage":"The open-source R3F and Drei libraries are free, with no mandatory account or subscription.","paidUsage":null,"license":"MIT for R3F and Drei. Commercial use is permitted when the code license is retained; rights to third-party models/textures must be checked separately.","selectionGuide":{"purpose":"Describe Three.js scenes with React components and use Drei helpers.","chooseWhen":["The 3D scene needs to respond to React application state.","You need to reuse parts of the scene as components."],"considerInstead":["Ordinary Three.js is suitable if the project does not use React and does not need a declarative model."],"requirements":["React, Three.js, and a Fiber version compatible with the chosen React version; add Drei as needed."],"limitations":["Knowing React does not replace an understanding of cameras, materials, and lighting.","GPU cost depends on scene content."],"faq":[{"question":"Does Fiber replace Three.js?","answer":"No. It is a React renderer for Three.js; geometry and materials belong to Three.js, while Drei adds helpers."}],"related":[{"id":"three-js","reason":"Foundation: scenes, cameras, materials, and geometry."},{"id":"react","reason":"Foundation: components and connecting the scene to application state."}],"sources":["https://r3f.docs.pmnd.rs/getting-started/introduction"]},"selectionCheckedAt":"2026-10-07","applicationGuide":{"goal":"Connect an object's color to a React interface value.","inputs":["A React project with compatible dependencies.","Two colors and a simple mesh."],"steps":["Create a Canvas with a camera and an object.","Pass the selected color from React state to the material.","Check switching and reopening the scene."],"checks":["The material matches the selected color.","Scene behavior does not block interface controls."]},"sources":["https://github.com/pmndrs/react-three-fiber","https://github.com/pmndrs/drei","https://raw.githubusercontent.com/pmndrs/react-three-fiber/master/LICENSE","https://raw.githubusercontent.com/pmndrs/drei/master/LICENSE","https://r3f.docs.pmnd.rs/getting-started/introduction"],"checkedAt":"2026-10-03","reviewScope":"Purpose and published terms were reviewed against the cited primary sources. This product page does not confirm execution or testing in every environment.","relatedIds":["babylonjs","three-js","react"],"dataVersion":"cbbe7123b47a5ae80983","type":"Library / tool","kind":"library","pricingNote":"The open-source R3F and Drei libraries are free, with no mandatory account or subscription. Models, textures, and other external materials have their own licenses.","notes":"JavaScript/TypeScript, React, and Three.js. R3F 8 corresponds to React 18, and R3F 9 to React 19. Drei extends R3F with cameras, lighting, and other helpers; the browser requires GPU graphics. Test scene performance on the target devices.","labeledSources":[{"url":"https://github.com/pmndrs/react-three-fiber","label":"Source code"},{"url":"https://github.com/pmndrs/drei","label":"Source code"},{"url":"https://raw.githubusercontent.com/pmndrs/react-three-fiber/master/LICENSE","label":"License"},{"url":"https://raw.githubusercontent.com/pmndrs/drei/master/LICENSE","label":"License"},{"url":"https://r3f.docs.pmnd.rs/getting-started/introduction","label":"Product documentation"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}