{
  "id": "task_libraries:3d/react",
  "path": "/exapedia/react-3d-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "React 3D libraries",
  "answer": [
    {
      "t": "fact",
      "fact": "F111"
    },
    {
      "t": "text",
      "text": " A React renderer describes the scene graph of a WebGL library such as Three.js as JSX components that update with application state. These libraries let product pages, data visualizations, and games show interactive scenes in the browser."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "React 3D libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#react-three-fiber",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F131"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#drei",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F147"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-spring-three",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F165"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-three-postprocessing",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F184"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-force-graph-threed",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F203"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-globe-gl",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F221"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-three-rapier",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F239"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-spline",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F258"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F265"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#react-three-fiber",
          "label": [
            {
              "t": "text",
              "text": "@react-three/fiber"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F132"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Own scene canvas",
            "React rigid bodies"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#react-three-fiber",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F131"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F140"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#drei",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F147"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-spring-three",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F165"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-three-postprocessing",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F184"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-force-graph-threed",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F203"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-globe-gl",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F221"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-three-rapier",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F239"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F250"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-spline",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F258"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F266"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F267"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "react-three-fiber",
          "name": [
            {
              "t": "fact",
              "fact": "F131"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pmndrs/react-three-fiber"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@react-three/fiber"
            },
            {
              "label": "Docs",
              "href": "https://github.com/pmndrs/react-three-fiber/blob/master/readme.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F13"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ]
            },
            {
              "label": "Runs on",
              "value": [
                {
                  "t": "fact",
                  "fact": "F7"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/pmndrs/react-three-fiber/blob/master/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F131"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F21"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/pmndrs/drei",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F145"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "export function useCubeCamera({ resolution = 256, near = 0.1, far = 1000, envMap, fog }: CubeCameraOptions = {}) {\n  const gl = useThree(({ gl }) => gl)\n  const scene = useThree(({ scene }) => scene)\n\n  const fbo = useMemo(() => {\n    const fbo = new WebGLCubeRenderTarget(resolution)\n    fbo.texture.type = HalfFloatType\n    return fbo\n  }, [resolution])\n\n  useEffect(() => {\n    return () => {\n      fbo.dispose()\n    }\n  }, [fbo])\n\n  const camera = useMemo(() => new THREE.CubeCamera(near, far, fbo), [near, far, fbo])\n\n  let originalFog\n  let originalBackground\n  const update = React.useCallback(() => {\n    originalFog = scene.fog\n    originalBackground = scene.background\n    scene.background = envMap || originalBackground\n    scene.fog = fog || originalFog\n    camera.update(gl, scene)\n    scene.fog = originalFog\n    scene.background = originalBackground\n  }, [gl, scene, camera])\n\n  return {\n    fbo,\n    camera,\n    update,\n  }\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/pmndrs/drei/blob/bf6f4addf47467d3885de272d94ca5127f6ef68f/src/core/CubeCamera.tsx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F144"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20TypeScript%20applications%20using%20%40react-three/fiber%20for%20interactive%20three-dimensional%20scenes%2C%20model%20loading%2C%20controls%20and%20pointer%20interactions&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F131"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { Canvas } from '@react-three/fiber';\n\nexport default function App() {\n  return <Canvas style={{ height: 400 }}><mesh><boxGeometry /><meshNormalMaterial /></mesh></Canvas>;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/pmndrs/react-three-fiber/blob/master/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "readme.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F136"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "drei",
          "name": [
            {
              "t": "fact",
              "fact": "F147"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pmndrs/drei"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@react-three/drei"
            },
            {
              "label": "Docs",
              "href": "https://github.com/pmndrs/drei/blob/master/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F40"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            },
            {
              "label": "Runs on",
              "value": [
                {
                  "t": "fact",
                  "fact": "F34"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/pmndrs/drei/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F147"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F46"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F47"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F48"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/theatre-js/theatre",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F163"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "function Model({url}: {url: string}) {\n  const {nodes} = useGLTF(url) as any\n\n  return (\n    <group rotation={[-Math.PI / 2, 0, 0]} position={[0, -7, 0]} scale={7}>\n      <group rotation={[Math.PI / 13.5, -Math.PI / 5.8, Math.PI / 5.6]}>\n        <e.mesh\n          theatreKey=\"Example Namespace / Thingy\"\n          receiveShadow\n          castShadow\n          geometry={nodes.planet001.geometry}\n          material={nodes.planet001.material}\n        />\n        <e.mesh\n          theatreKey=\"Example Namespace / Debris 2\"\n          receiveShadow\n          castShadow\n          geometry={nodes.planet002.geometry}\n          material={nodes.planet002.material}\n        />\n        <e.mesh\n          theatreKey=\"Debris 1\"\n          geometry={nodes.planet003.geometry}\n          material={nodes.planet003.material}\n        />\n      </group>\n    </group>\n  )\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/theatre-js/theatre/blob/6ea82b938ea49609489f6377ded693ccc6ee8f5b/packages/playground/src/shared/r3f-rocket/App.tsx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F162"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20TypeScript%20applications%20using%20%40react-three/drei%20for%20interactive%20three-dimensional%20scenes%2C%20model%20loading%2C%20controls%20and%20pointer%20interactions&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F147"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { Canvas } from '@react-three/fiber';\nimport { CameraControls } from '@react-three/drei';\n\nexport default function App() {\n  return <Canvas style={{ height: 400 }}><CameraControls /><mesh><boxGeometry /><meshNormalMaterial /></mesh></Canvas>;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://drei.docs.pmnd.rs/controls/camera-controls",
                  "label": [
                    {
                      "t": "text",
                      "text": "camera-controls.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F152"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "react-spring-three",
          "name": [
            {
              "t": "fact",
              "fact": "F165"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pmndrs/react-spring"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@react-spring/three"
            },
            {
              "label": "Docs",
              "href": "https://github.com/pmndrs/react-spring/blob/next/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F172"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/pmndrs/react-spring/blob/next/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F165"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/suhdonghwi/3d-periodic-table",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F182"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "export default function RawPillar({\n  style,\n  length,\n  envMap,\n  hover,\n  ...props\n}: RawPillarProps & RawPillarMeshProps) {\n  const pillarSpring = useSpring({\n    color: style.color,\n    opacity: style.opacity ?? 1,\n    config: {\n      tension: 150,\n    },\n  });\n\n  return (\n    <animated.mesh {...props}>\n      <boxGeometry args={[length, 1, length]} />\n      <animated.meshStandardMaterial\n        color={hover ? \"#ff8787\" : pillarSpring.color}\n        transparent\n        opacity={pillarSpring.opacity}\n        metalness={style.metalness ?? 0}\n        roughness={style.roughness ?? 1}\n        envMap={envMap}\n      />\n      {props.children}\n    </animated.mesh>\n  );\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/suhdonghwi/3d-periodic-table/blob/21945c2401aa7f11c42748d1984b9e9f79a8d245/src/components/RawPillar.tsx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F181"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40react-spring/three%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F165"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { Canvas } from '@react-three/fiber';\nimport { animated, useSpring } from '@react-spring/three';\n\nfunction Box() {\n  const { scale } = useSpring({ from: { scale: 0 }, to: { scale: 1 } });\n  return <animated.mesh scale={scale}><boxGeometry /><meshNormalMaterial /></animated.mesh>;\n}\n\nexport default function App() {\n  return <Canvas style={{ height: 400 }}><Box /></Canvas>;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/pmndrs/react-spring/blob/next/targets/three/src/index.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.ts"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F170"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "react-three-postprocessing",
          "name": [
            {
              "t": "fact",
              "fact": "F184"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pmndrs/react-postprocessing"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@react-three/postprocessing"
            },
            {
              "label": "Docs",
              "href": "https://github.com/pmndrs/react-postprocessing/blob/master/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F191"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/pmndrs/react-postprocessing/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F184"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/openai/openai-apps-sdk-examples",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F201"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "function Effects({ focusTarget, hasFocus }) {\n  const { camera } = useThree();\n  const depthOfFieldRef = useRef();\n\n  useFrame(() => {\n    if (!depthOfFieldRef.current) return;\n\n    if (!hasFocus) {\n      depthOfFieldRef.current.bokehScale = 0; // no planet in focus → no blur\n      return;\n    }\n\n    const d = camera.position.distanceTo(focusTarget); // closer ⇒ stronger blur\n    const scale = THREE.MathUtils.clamp(12 - d * 0.75, 0, 12);\n    depthOfFieldRef.current.bokehScale = scale;\n  });\n\n  return (\n    <EffectComposer>\n      <DepthOfField\n        ref={depthOfFieldRef}\n        focusDistance={0}\n        focalLength={0.02}\n        height={480}\n        bokehScale={0} // initial value; updated each frame\n        target={focusTarget}\n      />\n      <Bloom\n        luminanceThreshold={0}\n        luminanceSmoothing={0.25}\n        intensity={1.75}\n        mipmapBlur\n      />\n    </EffectComposer>\n  );\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/openai/openai-apps-sdk-examples/blob/18cc38e78a968712c357bacdc3c79fead5bfc6b4/src/solar-system/solar-system.jsx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F200"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40react-three/postprocessing%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F184"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { Canvas } from '@react-three/fiber';\nimport { Bloom, EffectComposer } from '@react-three/postprocessing';\n\nexport default function App() {\n  return (\n    <Canvas style={{ height: 400 }}>\n      <mesh><boxGeometry /><meshBasicMaterial color=\"orange\" /></mesh>\n      <EffectComposer><Bloom luminanceThreshold={0} /></EffectComposer>\n    </Canvas>\n  );\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/pmndrs/react-postprocessing/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F189"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "react-force-graph-threed",
          "name": [
            {
              "t": "fact",
              "fact": "F203"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/vasturiano/react-force-graph"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/react-force-graph-3d"
            },
            {
              "label": "Docs",
              "href": "https://github.com/vasturiano/react-force-graph/blob/master/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F210"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/vasturiano/react-force-graph/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F203"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/noworneverev/graphrag-visualizer",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F219"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "const handleFocusButtonClick = (node: CustomNode) => {\n  const newHighlightNodes = new Set<CustomNode>();\n  newHighlightNodes.add(node);\n  node.neighbors?.forEach((neighbor) => newHighlightNodes.add(neighbor));\n  node.links?.forEach((link) => highlightLinks.add(link));\n\n  setHighlightNodes(newHighlightNodes);\n  setHoverNode(node);\n\n  if (graphRef.current) {\n    if (graphType === \"2d\") {\n      graphRef.current.centerAt(node.x, node.y, 1000);\n      graphRef.current.zoom(8, 1000);\n    } else {\n      graphRef.current.cameraPosition(\n        { x: node.x, y: node.y, z: 300 }, // new position\n        { x: node.x, y: node.y, z: 0 }, // lookAt\n        3000 // ms transition duration\n      );\n    }\n  }\n\n  // Simulate mouse hover on the focused node\n  setTimeout(() => {\n    handleNodeHover(node);\n  }, 1000); // Adjust delay as needed\n\n  setRightDrawerOpen(false);\n};\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/noworneverev/graphrag-visualizer/blob/8648cde8e1c7bb605f3ff45c0610e3932deba143/src/app/components/GraphViewer.tsx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F218"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=react-force-graph-3d%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F203"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import ForceGraph3D from 'react-force-graph-3d';\n\nexport default function App() {\n  const data = {\n    nodes: [{ id: 'a' }, { id: 'b' }],\n    links: [{ source: 'a', target: 'b' }],\n  };\n  return <ForceGraph3D graphData={data} width={600} height={400} />;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/vasturiano/react-force-graph/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F208"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "react-globe-gl",
          "name": [
            {
              "t": "fact",
              "fact": "F221"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/vasturiano/react-globe.gl"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/react-globe.gl"
            },
            {
              "label": "Docs",
              "href": "https://github.com/vasturiano/react-globe.gl/blob/master/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F228"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/vasturiano/react-globe.gl/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F221"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/CopilotKit/CopilotKit",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F237"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "export function useGlobeInteraction(\n  globeRef: React.MutableRefObject<GlobeMethods | undefined>,\n  visitedCountries: VisitedCountry[],\n  clickedCountry: ClickedCountry | null,\n  setClickedCountry: (country: ClickedCountry | null) => void,\n) {\n  const [selectedId, setSelectedId] = useState<string | null>(null);\n  const [hoverId, setHoverId] = useState<string | null>(null);\n\n  const handlePolygonClick = useCallback(\n    (polygon: unknown) => {\n      const feature = polygon as CountryFeature;\n      const id = feature.id?.toString() ?? \"\";\n      setSelectedId(id);\n      setClickedCountry(null);\n\n      const controls = globeRef.current?.controls?.();\n      if (controls) controls.autoRotate = false;\n\n      const countryName = feature.properties?.name ?? \"Unknown\";\n      const flagEmoji = feature.properties?.flagEmoji ?? null;\n      const isVisited = visitedCountries.some(\n        (country) => country.name === countryName,\n      );\n\n      const [lngRaw, latRaw] = geoCentroid(feature);\n      const lat = Number.isFinite(latRaw) ? latRaw : undefined;\n      const lng = Number.isFinite(lngRaw) ? lngRaw : undefined;\n\n      if (\n        globeRef.current?.pointOfView &&\n        lat !== undefined &&\n        lng !== undefined\n      ) {\n        globeRef.current.pointOfView(\n          { lat, lng, altitude: 1.6 },\n          GLOBE_ANIMATION_DURATION_MS,\n        );\n\n        setTimeout(() => {\n          if (globeRef.current) {\n            const coords = globeRef.current.getScreenCoords(lat, lng);\n            if (coords) {\n              setClickedCountry({\n                name: countryName,\n                flagEmoji,\n                position: { x: coords.x, y: coords.y },\n                isVisited,\n              });\n            }\n          }\n        }, GLOBE_ANIMATION_DURATION_MS);\n      }\n    },\n    [globeRef, visitedCountries, setClickedCountry],\n  );\n\n  const handlePolygonHover = useCallback((polygon: unknown | null) => {\n    const feature = (polygon ?? undefined) as CountryFeature | undefined;\n    setHoverId(feature?.id?.toString() ?? null);\n  }, []);\n\n  const polygonLabel = useCallback(\n    (polygon: unknown) => {\n      const feature = polygon as CountryFeature;\n      const name = feature.properties?.name ?? \"Unknown\";\n      const iso = feature.properties?.iso2 ?? \"N/A\";\n      return hoverId === feature.id?.toString()\n        ? `<div style=\"padding: 6px 8px;\">\n            <strong style=\"font-size: 13px;\">${name}</strong><br />\n            <span style=\"font-size: 11px; opacity: 0.7;\">ISO: ${iso}</span>\n          </div>`\n        : \"\";\n    },\n    [hoverId],\n  );\n\n  return {\n    selectedId,\n    hoverId,\n    handlePolygonClick,\n    handlePolygonHover,\n    polygonLabel,\n  };\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/CopilotKit/CopilotKit/blob/567211b7edff7dde57cfc9b617655344004253c0/examples/showcases/chatkit-studio/apps/world/src/hooks/useGlobeInteraction.ts",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F236"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=react-globe.gl%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F221"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import Globe from 'react-globe.gl';\n\nexport default function App() {\n  const points = [{ lat: 37.77, lng: -122.42 }];\n  return <Globe pointsData={points} pointAltitude={0.08} width={600} height={400} />;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/vasturiano/react-globe.gl/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F226"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "react-three-rapier",
          "name": [
            {
              "t": "fact",
              "fact": "F239"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pmndrs/react-three-rapier"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@react-three/rapier"
            },
            {
              "label": "Docs",
              "href": "https://github.com/pmndrs/react-three-rapier/blob/main/readme.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F246"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/pmndrs/react-three-rapier/blob/main/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F239"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F256"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F257"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/vercel-labs/json-render",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F256"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "export function GroundPlane({ position, material, size }: GroundPlaneProps) {\n  const isPlaying = useEditorStore((s) => s.isPlaying);\n  const s = size ?? 5000;\n  const pos: [number, number, number] = position ?? [0, -0.1, 0];\n\n  const plane = (\n    <mesh rotation={[-Math.PI / 2, 0, 0]} position={pos} receiveShadow>\n      <planeGeometry args={[s, s]} />\n      <meshStandardMaterial\n        color={material?.color ?? \"#4CAF50\"}\n        metalness={material?.metalness ?? 0}\n        roughness={material?.roughness ?? 0.9}\n        side={THREE.DoubleSide}\n      />\n    </mesh>\n  );\n\n  if (!isPlaying) return plane;\n\n  return (\n    <RigidBody type=\"fixed\" position={pos} colliders={false}>\n      <mesh rotation={[-Math.PI / 2, 0, 0]} receiveShadow>\n        <planeGeometry args={[s, s]} />\n        <meshStandardMaterial\n          color={material?.color ?? \"#4CAF50\"}\n          metalness={material?.metalness ?? 0}\n          roughness={material?.roughness ?? 0.9}\n          side={THREE.DoubleSide}\n        />\n      </mesh>\n      <CuboidCollider args={[s / 2, 0.01, s / 2]} position={[0, 0, 0]} />\n    </RigidBody>\n  );\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/vercel-labs/json-render/blob/c926907855d95dde328264350ac5464b60be201d/examples/game-engine/components/game/ground-plane.tsx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F255"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40react-three/rapier%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F239"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import { Suspense } from 'react';\nimport { Canvas } from '@react-three/fiber';\nimport { Physics, RigidBody } from '@react-three/rapier';\n\nexport default function App() {\n  return (\n    <Canvas style={{ height: 400 }}>\n      <Suspense fallback={null}>\n        <Physics><RigidBody><mesh><boxGeometry /><meshNormalMaterial /></mesh></RigidBody></Physics>\n      </Suspense>\n    </Canvas>\n  );\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/pmndrs/react-three-rapier/blob/main/readme.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "readme.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F244"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "react-spline",
          "name": [
            {
              "t": "fact",
              "fact": "F258"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/splinetool/react-spline"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@splinetool/react-spline"
            },
            {
              "label": "Docs",
              "href": "https://github.com/splinetool/react-spline/blob/main/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F65"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F265"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ]
            },
            {
              "label": "Runs on",
              "value": [
                {
                  "t": "fact",
                  "fact": "F61"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/splinetool/react-spline/blob/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F258"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F71"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F273"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F274"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/YicunAI/Pnlclaw-community",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F273"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "export function SplineScene({ scene, className }: SplineSceneProps) {\n  return (\n    <SplineErrorBoundary>\n      <Suspense \n        fallback={\n          <div className=\"w-full h-full flex items-center justify-center\">\n            <span className=\"loader\"></span>\n          </div>\n        }\n      >\n        <Spline\n          scene={scene}\n          className={className}\n        />\n      </Suspense>\n    </SplineErrorBoundary>\n  )\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/YicunAI/Pnlclaw-community/blob/933014faffa38fd2de6c5d9ecdb3c6dc1fe2f2bb/apps/desktop/components/ui/splite.tsx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F272"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=React%20TypeScript%20applications%20using%20%40splinetool/react-spline%20for%20interactive%20three-dimensional%20scenes%2C%20model%20loading%2C%20controls%20and%20pointer%20interactions&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F258"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import Spline from '@splinetool/react-spline';\n\nexport default function App() {\n  return <Spline scene=\"https://prod.spline.design/6Wq1Q7YGyM-iab9i/scene.splinecode\" />;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/splinetool/react-spline/blob/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F263"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which React 3D library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#react-three-fiber",
          "label": [
            {
              "t": "text",
              "text": "@react-three/fiber"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits scenes built from Three.js objects as React components. "
        },
        {
          "t": "link",
          "href": "#drei",
          "label": [
            {
              "t": "text",
              "text": "@react-three/drei"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits Fiber projects that need loaders, controls, and scene helpers. "
        },
        {
          "t": "link",
          "href": "#react-spline",
          "label": [
            {
              "t": "text",
              "text": "@splinetool/react-spline"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits scenes designed visually in the Spline editor."
        }
      ]
    },
    {
      "q": "What is React Three Fiber?",
      "a": [
        {
          "t": "link",
          "href": "#react-three-fiber",
          "label": [
            {
              "t": "text",
              "text": "@react-three/fiber"
            }
          ]
        },
        {
          "t": "text",
          "text": " builds Three.js scenes through React components and renderer-owned JSX elements. Its useFrame hook updates scene objects in the render loop."
        }
      ]
    },
    {
      "q": "What is drei?",
      "a": [
        {
          "t": "link",
          "href": "#drei",
          "label": [
            {
              "t": "text",
              "text": "@react-three/drei"
            }
          ]
        },
        {
          "t": "text",
          "text": " adds loaders, controls, and reusable scene helpers to React Three Fiber. Its useGLTF helper loads GLTF scenes."
        }
      ]
    },
    {
      "q": "Does drei work without React Three Fiber?",
      "a": [
        {
          "t": "text",
          "text": "No. "
        },
        {
          "t": "link",
          "href": "#drei",
          "label": [
            {
              "t": "text",
              "text": "@react-three/drei"
            }
          ]
        },
        {
          "t": "text",
          "text": " adds its helpers to an existing Fiber scene."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, @react-three/fiber",
      "display": "React Three Fiber",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, @react-three/fiber",
      "display": "35.1M",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, @react-three/fiber",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, @react-three/fiber",
      "display": "9.8.2",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, @react-three/fiber",
      "display": "v9.8.2",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, @react-three/fiber",
      "display": "33.8K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Runtime, @react-three/fiber",
      "display": "Three.js",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "glTF loading, @react-three/fiber",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Camera controls, @react-three/fiber",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Pointer events, @react-three/fiber",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "React Native, @react-three/fiber",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "Install, @react-three/fiber",
      "display": "npm install three @types/three @react-three/fiber",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "What it does, @react-three/fiber",
      "display": "Builds Three.js scenes through React components and renderer-owned JSX elements.",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths lead, @react-three/fiber",
      "display": "Builds scenes with reusable components",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths, @react-three/fiber",
      "display": "Describe meshes, lights, and materials directly in JSX.",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths lead, @react-three/fiber",
      "display": "Updates objects during rendered frames",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "strengths, @react-three/fiber",
      "display": "Use useFrame to update scene objects in the render loop.",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations lead, @react-three/fiber",
      "display": "Hooks need canvas context",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations, @react-three/fiber",
      "display": "Call useThree and useFrame inside Canvas descendants.",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations lead, @react-three/fiber",
      "display": "React majors must match",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "limitations, @react-three/fiber",
      "display": "Pair the renderer major with its supported React major.",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Quickstart, @react-three/fiber",
      "display": "import { createRoot } from 'react-dom/client'\nimport React, { useRef, useState } from 'react'\nimport { Canvas, useFrame } from '@react-three/fiber'\n\nfunction Box(props) {\n  // This reference gives us direct access to the THREE.Mesh object\n  const ref = useRef()\n  // Hold state for hovered and clicked events\n  const [hovered, hover] = useState(false)\n  const [clicked, click] = useState(false)\n  // Subscribe this component to the render-loop, rotate the mesh every frame\n  useFrame((state, delta) => (ref.current.rotation.x += delta))\n  // Return the view, these are regular Threejs elements expressed in JSX\n  return (\n    <mesh\n      {...props}\n      ref={ref}\n      scale={clicked ? 1.5 : 1}\n      onClick={(event) => click(!clicked)}\n      onPointerOver={(event) => hover(true)}\n      onPointerOut={(event) => hover(false)}>\n      <boxGeometry args={[1, 1, 1]} />\n      <meshStandardMaterial color={hovered ? 'hotpink' : 'orange'} />\n    </mesh>\n  )\n}\n\ncreateRoot(document.getElementById('root')).render(\n  <Canvas>\n    <ambientLight intensity={Math.PI / 2} />\n    <spotLight position={[10, 10, 10]} angle={0.15} penumbra={1} decay={0} intensity={Math.PI} />\n    <pointLight position={[-10, -10, -10]} decay={0} intensity={Math.PI} />\n    <Box position={[-1.2, 0, 0]} />\n    <Box position={[1.2, 0, 0]} />\n  </Canvas>,\n)\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function, @react-three/fiber",
      "display": "function App() {\n  const bgs = ['#272730', '#b7c5d1']\n  const [bgIndex, setBgIndex] = useState(0)\n  const bg = bgs[bgIndex]\n  return (\n    <div\n      onClick={() => {\n        // return setBgIndex((bgIndex) => (bgIndex + 1) % bgs.length)\n      }}\n      style={{\n        height: '100vh',\n      }}\n    >\n      <Canvas\n        dpr={[1.5, 2]}\n        linear\n        shadows\n        gl={{preserveDrawingBuffer: true}}\n        frameloop=\"demand\"\n      >\n        <SheetProvider sheet={getProject('Space').sheet('Scene')}>\n          <fog attach=\"fog\" args={[bg, 16, 30]} />\n          <color attach=\"background\" args={[bg]} />\n          <ambientLight intensity={0.75} />\n          <EditableCamera\n            theatreKey=\"Camera\"\n            makeDefault\n            position={[0, 0, 16]}\n            fov={75}\n          >\n            <e.pointLight\n              theatreKey=\"Light 1\"\n              intensity={1}\n              position={[-10, -25, -10]}\n            />\n            <e.spotLight\n              theatreKey=\"Light 2\"\n              castShadow\n              intensity={2.25}\n              angle={0.2}\n              penumbra={1}\n              position={[-25, 20, -15]}\n              shadow-mapSize={[1024, 1024]}\n              shadow-bias={-0.0001}\n            />\n            <e.directionalLight theatreKey=\"Light 3\" />\n          </EditableCamera>\n          <Suspense fallback={null}>\n            <RefreshSnapshot />\n            <Model url={sceneGLB} />\n          </Suspense>\n          <Stars radius={500} depth={50} count={1000} factor={10} />\n        </SheetProvider>\n      </Canvas>\n    </div>\n  )\n}\n",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project function reference, @react-three/fiber",
      "display": "App.tsx · App()",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project repository, @react-three/fiber",
      "display": "theatre-js/theatre",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project stars, theatre-js/theatre",
      "display": "13.0K",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Project push date, theatre-js/theatre",
      "display": "Aug 2024",
      "asOf": "2024-08-14"
    },
    "F28": {
      "label": "Library name, @react-three/drei",
      "display": "Drei",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Monthly downloads, @react-three/drei",
      "display": "23.1M",
      "asOf": "2026-11-15"
    },
    "F30": {
      "label": "License, @react-three/drei",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Package release, @react-three/drei",
      "display": "10.7.9",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Undated package release, @react-three/drei",
      "display": "v10.7.9",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Repository stars, @react-three/drei",
      "display": "10.2K",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Runtime, @react-three/drei",
      "display": "React Three Fiber",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "glTF loading, @react-three/drei",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Camera controls, @react-three/drei",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Pointer events, @react-three/drei",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "React Native, @react-three/drei",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "Install, @react-three/drei",
      "display": "npm install @react-three/drei",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "What it does, @react-three/drei",
      "display": "Adds loaders, controls, and reusable scene helpers to React Three Fiber.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths lead, @react-three/drei",
      "display": "Loads GLTF scenes through useGLTF",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "strengths, @react-three/drei",
      "display": "Use the helper instead of wiring useLoader and GLTFLoader directly.",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "strengths lead, @react-three/drei",
      "display": "Controls manage updates and cleanup",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "strengths, @react-three/drei",
      "display": "Camera controls update automatically and remove themselves on unmount.",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations lead, @react-three/drei",
      "display": "Requires React Three Fiber",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "limitations, @react-three/drei",
      "display": "Add these helpers to an existing Fiber scene.",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "limitations lead, @react-three/drei",
      "display": "Compressed models fetch a decoder",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "limitations, @react-three/drei",
      "display": "Self-host Draco binaries when external decoder requests are unsuitable.",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Quickstart, @react-three/drei",
      "display": "import { Html, useProgress } from '@react-three/drei'\n\nfunction Loader() {\n  const { progress } = useProgress()\n  return <Html center>{progress} % loaded</Html>\n}\n\n",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project function, @react-three/drei",
      "display": "function Model({url}: {url: string}) {\n  const {nodes} = useGLTF(url) as any\n\n  return (\n    <group rotation={[-Math.PI / 2, 0, 0]} position={[0, -7, 0]} scale={7}>\n      <group rotation={[Math.PI / 13.5, -Math.PI / 5.8, Math.PI / 5.6]}>\n        <e.mesh\n          theatreKey=\"Example Namespace / Thingy\"\n          receiveShadow\n          castShadow\n          geometry={nodes.planet001.geometry}\n          material={nodes.planet001.material}\n        />\n        <e.mesh\n          theatreKey=\"Example Namespace / Debris 2\"\n          receiveShadow\n          castShadow\n          geometry={nodes.planet002.geometry}\n          material={nodes.planet002.material}\n        />\n        <e.mesh\n          theatreKey=\"Debris 1\"\n          geometry={nodes.planet003.geometry}\n          material={nodes.planet003.material}\n        />\n      </group>\n    </group>\n  )\n}\n",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project function reference, @react-three/drei",
      "display": "App.tsx · Model()",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Project repository, @react-three/drei",
      "display": "theatre-js/theatre",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Project stars, theatre-js/theatre",
      "display": "13.0K",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Project push date, theatre-js/theatre",
      "display": "Aug 2024",
      "asOf": "2024-08-14"
    },
    "F55": {
      "label": "Library name, @splinetool/react-spline",
      "display": "React Spline",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Monthly downloads, @splinetool/react-spline",
      "display": "674.2K",
      "asOf": "2026-11-15"
    },
    "F57": {
      "label": "License, @splinetool/react-spline",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Package release, @splinetool/react-spline",
      "display": "4.2.0",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Undated package release, @splinetool/react-spline",
      "display": "v4.2.0",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Repository stars, @splinetool/react-spline",
      "display": "1.4K",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Runtime, @splinetool/react-spline",
      "display": "Spline runtime",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "glTF loading, @splinetool/react-spline",
      "display": "Unsupported",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "Pointer events, @splinetool/react-spline",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "Install, @splinetool/react-spline",
      "display": "npm install @splinetool/react-spline @splinetool/runtime",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "What it does, @splinetool/react-spline",
      "display": "Embeds exported Spline scenes and connects their interactions to React.",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths lead, @splinetool/react-spline",
      "display": "Embeds visually authored scenes",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths, @splinetool/react-spline",
      "display": "Export a Spline scene and load its URL in React.",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "strengths lead, @splinetool/react-spline",
      "display": "Triggers authored animation events",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "strengths, @splinetool/react-spline",
      "display": "Trigger an editor-defined animation event from a React button.",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations lead, @splinetool/react-spline",
      "display": "Models need the editor first",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "limitations, @splinetool/react-spline",
      "display": "Import raw models into Spline before exporting a React scene.",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Quickstart, @splinetool/react-spline",
      "display": "import Spline from '@splinetool/react-spline';\n\nexport default function App() {\n  function onSplineMouseDown(e) {\n    if (e.target.name === 'Cube') {\n      console.log('I have been clicked!');\n    }\n  }\n\n  return (\n    <div>\n      <Spline\n        scene=\"https://prod.spline.design/6Wq1Q7YGyM-iab9i/scene.splinecode\"\n        onSplineMouseDown={onSplineMouseDown}\n      />\n    </div>\n  );\n}\n",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Project function, @splinetool/react-spline",
      "display": "export function SplineScene({ scene, className }: SplineSceneProps) {\n  return (\n    <SplineErrorBoundary>\n      <Suspense \n        fallback={\n          <div className=\"w-full h-full flex items-center justify-center\">\n            <span className=\"loader\"></span>\n          </div>\n        }\n      >\n        <Spline\n          scene={scene}\n          className={className}\n        />\n      </Suspense>\n    </SplineErrorBoundary>\n  )\n}\n",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project function reference, @splinetool/react-spline",
      "display": "splite.tsx · SplineScene()",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project repository, @splinetool/react-spline",
      "display": "YicunAI/Pnlclaw-community",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project stars, YicunAI/Pnlclaw-community",
      "display": "196",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Project push date, YicunAI/Pnlclaw-community",
      "display": "Apr 2026",
      "asOf": "2026-04-08"
    },
    "F78": {
      "label": "Library name, react-babylonjs",
      "display": "react-babylonjs",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Monthly downloads, react-babylonjs",
      "display": "18.9K",
      "asOf": "2026-11-15"
    },
    "F80": {
      "label": "License, react-babylonjs",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Package release, react-babylonjs",
      "display": "4.0.2",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Undated package release, react-babylonjs",
      "display": "v4.0.2",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Repository stars, react-babylonjs",
      "display": "891",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Runtime, react-babylonjs",
      "display": "Babylon.js",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "glTF loading, react-babylonjs",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Camera controls, react-babylonjs",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Pointer events, react-babylonjs",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "React Native, react-babylonjs",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "Install, react-babylonjs",
      "display": "npm install react-babylonjs @babylonjs/core @babylonjs/gui",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "What it does, react-babylonjs",
      "display": "Builds reactive Babylon.js scenes with React components, intrinsic elements, and hooks.",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "strengths lead, react-babylonjs",
      "display": "Creates scene objects declaratively",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "strengths, react-babylonjs",
      "display": "Add Babylon cameras, lights, and meshes as JSX elements.",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "strengths lead, react-babylonjs",
      "display": "Adds click and hover hooks",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "strengths, react-babylonjs",
      "display": "Use useClick and useHover to attach object interactions.",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "limitations lead, react-babylonjs",
      "display": "Constructor arguments apply only once",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "limitations, react-babylonjs",
      "display": "Use regular object props for changes after creation.",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Quickstart, react-babylonjs",
      "display": "import { Vector3 } from '@babylonjs/core/Maths/math.vector'\nimport { Scene, Engine } from 'react-babylonjs'\nimport { FC } from 'react'\n\nconst App: FC = () => {\n  return (\n    <div style={{ flex: 1, display: 'flex' }}>\n      <Engine\n        antialias\n        adaptToDeviceRatio\n        canvasId=\"babylon-js\"\n        renderOptions={{\n          whenVisibleOnly: true,\n        }}\n      >\n        <Scene>\n          <freeCamera\n            name=\"camera1\"\n            position={new Vector3(0, 5, -10)}\n            setTarget={[Vector3.Zero()]}\n          />\n          <hemisphericLight name=\"light1\" intensity={0.7} direction={new Vector3(0, 1, 0)} />\n          <ground name=\"ground\" width={6} height={6} />\n        </Scene>\n      </Engine>\n    </div>\n  )\n}\nexport default App\n",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Developer need",
      "display": "Building scenes as React components",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Why choose @react-three/fiber",
      "display": "renderer-owned JSX scene objects",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Developer need in introduction",
      "display": "building scenes as React components",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Developer need",
      "display": "Adding loaders to a Fiber app",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Why choose @react-three/drei",
      "display": "convenience GLTF loading",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Developer need in introduction",
      "display": "adding loaders to a Fiber app",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need",
      "display": "Using the Babylon engine in React",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Why choose react-babylonjs",
      "display": "declarative Babylon scene objects",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need in introduction",
      "display": "using the Babylon engine in React",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "When to consider @react-three/fiber",
      "display": "the scene should use Three.js",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Developer need",
      "display": "Embedding visually authored scenes",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Why choose @splinetool/react-spline",
      "display": "editor-exported Spline scenes",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Developer need in introduction",
      "display": "embedding visually authored scenes",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Page introduction",
      "display": "React 3D libraries let application developers build and render 3D scenes.",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "FAQ: Are these four interchangeable renderers?",
      "display": "Fiber is a React renderer for Three.js.",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "FAQ: Are these four interchangeable renderers?",
      "display": "Drei supplies helpers and abstractions for Fiber.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "FAQ: Are these four interchangeable renderers?",
      "display": "React Spline loads scenes exported through the Spline editor.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: How does this differ from the React canvas comparison?",
      "display": "Fiber expresses Three.js scene objects directly in JSX.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: How does this differ from the React canvas comparison?",
      "display": "Babylon bindings expose cameras, lights, and scene objects through intrinsic elements.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Can renderer and React major versions be mixed freely?",
      "display": "Fiber majors pair with particular React majors.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Can renderer and React major versions be mixed freely?",
      "display": "The current Babylon binding also requires its supported React major; the README identifies a maintained older line.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Do the scene examples demonstrate the current renderer majors?",
      "display": "The pinned Theatre playground depends on older Fiber and Drei majors, so both examples are visibly legacy.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Why can useThree fail above a Canvas?",
      "display": "Fiber hooks need the context provided inside Canvas.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Which GLTF loader dependencies are needed?",
      "display": "Fiber uses useLoader with a separate Three GLTFLoader.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Which GLTF loader dependencies are needed?",
      "display": "Drei useGLTF wraps the loader setup.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Which GLTF loader dependencies are needed?",
      "display": "Babylon model formats require its separately installed loader plugins.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Will compressed models fetch decoder files?",
      "display": "Drei uses CDN-hosted Draco binaries by default for compressed models; a self-hosted path is supported.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Are the same Drei helpers exported on native platforms?",
      "display": "Html and Loader are not exported from the native route.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Do camera controls need a separate update loop?",
      "display": "Drei controls manage their own updates and cleanup and support a demand-driven canvas.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: Do Babylon constructor props update existing objects?",
      "display": "Constructor arguments are used once; regular object props apply later updates.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Do Babylon constructor props update existing objects?",
      "display": "Method arguments can be passed as arrays.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "FAQ: Can a GLTF URL be passed directly to React Spline?",
      "display": "The own repository answer requires importing the model into Spline first and then exporting the React scene.",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "FAQ: Can an exported Spline scene be self-hosted?",
      "display": "Its README recommends downloading and self-hosting the scene file to address CORS loading issues.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "Library name, @react-three/fiber",
      "display": "@react-three/fiber",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Monthly downloads, @react-three/fiber",
      "display": "35.7M",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "License, @react-three/fiber",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Package release, @react-three/fiber",
      "display": "9.8.2",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Package release date, @react-three/fiber",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Install, @react-three/fiber",
      "display": "npm install @react-three/fiber three",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Quickstart, @react-three/fiber",
      "display": "import { Canvas } from '@react-three/fiber';\n\nexport default function App() {\n  return <Canvas style={{ height: 400 }}><mesh><boxGeometry /><meshNormalMaterial /></mesh></Canvas>;\n}\n",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Repository stars, @react-three/fiber",
      "display": "33.8K",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Own scene canvas, @react-three/fiber",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "React rigid bodies, @react-three/fiber",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Primary layer, @react-three/fiber",
      "display": "General declarative Three renderer",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Current example contract, @react-three/fiber",
      "display": "Two separate real useThree(selector) calls select current RootState.gl and RootState.scene. Default WebGL Canvas host is required for Three CubeCamera.update(gl,scene); no WebGPU guarantee. Returned renderer/scene feed an original environment-map helper, with temporary scene fog/background restored. Three constructors and React hooks are preserved peers/host calls, not extra Fiber invocations.",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Project function, @react-three/fiber",
      "display": "export function useCubeCamera({ resolution = 256, near = 0.1, far = 1000, envMap, fog }: CubeCameraOptions = {}) {\n  const gl = useThree(({ gl }) => gl)\n  const scene = useThree(({ scene }) => scene)\n\n  const fbo = useMemo(() => {\n    const fbo = new WebGLCubeRenderTarget(resolution)\n    fbo.texture.type = HalfFloatType\n    return fbo\n  }, [resolution])\n\n  useEffect(() => {\n    return () => {\n      fbo.dispose()\n    }\n  }, [fbo])\n\n  const camera = useMemo(() => new THREE.CubeCamera(near, far, fbo), [near, far, fbo])\n\n  let originalFog\n  let originalBackground\n  const update = React.useCallback(() => {\n    originalFog = scene.fog\n    originalBackground = scene.background\n    scene.background = envMap || originalBackground\n    scene.fog = fog || originalFog\n    camera.update(gl, scene)\n    scene.fog = originalFog\n    scene.background = originalBackground\n  }, [gl, scene, camera])\n\n  return {\n    fbo,\n    camera,\n    update,\n  }\n}\n",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Project source file, @react-three/fiber",
      "display": "src/core/CubeCamera.tsx",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Project full_name, @react-three/fiber",
      "display": "pmndrs/drei",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Project stargazers_count, @react-three/fiber",
      "display": "10.2K",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Library name, @react-three/drei",
      "display": "@react-three/drei",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Monthly downloads, @react-three/drei",
      "display": "23.5M",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "License, @react-three/drei",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Package release, @react-three/drei",
      "display": "10.7.9",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Package release date, @react-three/drei",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Install, @react-three/drei",
      "display": "npm install @react-three/drei three @react-three/fiber",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Quickstart, @react-three/drei",
      "display": "import { Canvas } from '@react-three/fiber';\nimport { CameraControls } from '@react-three/drei';\n\nexport default function App() {\n  return <Canvas style={{ height: 400 }}><CameraControls /><mesh><boxGeometry /><meshNormalMaterial /></mesh></Canvas>;\n}\n",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Repository stars, @react-three/drei",
      "display": "10.2K",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Own scene canvas, @react-three/drei",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "React rigid bodies, @react-three/drei",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Primary layer, @react-three/drei",
      "display": "Fiber model, camera, and scene helpers",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Current example contract, @react-three/drei",
      "display": "Current useGLTF accepts a string URL and returns GLTF & ObjectMap, exposing named nodes. Original scene.glb and its planet001/002/003 mesh names/materials are host asset prerequisites; geometry/material are Three mesh values. React19/Fiber9/current Drei required for a current host. Theatre editable wrappers/scene-sheet setup remain original host dependencies, not extra Drei calls or evidence of an independent renderer. No asset fetch/render occurred.",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Renderer host, @react-three/drei",
      "display": "Existing Fiber Canvas and compatible React/Three peers",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Model return contract, @react-three/drei",
      "display": "GLTF & ObjectMap, with optional DRACO/Meshopt loader configuration",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Project function, @react-three/drei",
      "display": "function Model({url}: {url: string}) {\n  const {nodes} = useGLTF(url) as any\n\n  return (\n    <group rotation={[-Math.PI / 2, 0, 0]} position={[0, -7, 0]} scale={7}>\n      <group rotation={[Math.PI / 13.5, -Math.PI / 5.8, Math.PI / 5.6]}>\n        <e.mesh\n          theatreKey=\"Example Namespace / Thingy\"\n          receiveShadow\n          castShadow\n          geometry={nodes.planet001.geometry}\n          material={nodes.planet001.material}\n        />\n        <e.mesh\n          theatreKey=\"Example Namespace / Debris 2\"\n          receiveShadow\n          castShadow\n          geometry={nodes.planet002.geometry}\n          material={nodes.planet002.material}\n        />\n        <e.mesh\n          theatreKey=\"Debris 1\"\n          geometry={nodes.planet003.geometry}\n          material={nodes.planet003.material}\n        />\n      </group>\n    </group>\n  )\n}\n",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Project source file, @react-three/drei",
      "display": "packages/playground/src/shared/r3f-rocket/App.tsx",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Project full_name, @react-three/drei",
      "display": "theatre-js/theatre",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Project stargazers_count, @react-three/drei",
      "display": "13.0K",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Library name, @react-spring/three",
      "display": "@react-spring/three",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Monthly downloads, @react-spring/three",
      "display": "9.2M",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "License, @react-spring/three",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Package release, @react-spring/three",
      "display": "10.1.2",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Package release date, @react-spring/three",
      "display": "Jun 2026",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Install, @react-spring/three",
      "display": "npm install @react-spring/three three @react-three/fiber",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Quickstart, @react-spring/three",
      "display": "import { Canvas } from '@react-three/fiber';\nimport { animated, useSpring } from '@react-spring/three';\n\nfunction Box() {\n  const { scale } = useSpring({ from: { scale: 0 }, to: { scale: 1 } });\n  return <animated.mesh scale={scale}><boxGeometry /><meshNormalMaterial /></animated.mesh>;\n}\n\nexport default function App() {\n  return <Canvas style={{ height: 400 }}><Box /></Canvas>;\n}\n",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Official description, @react-spring/three",
      "display": "Adds spring animation support to react-three-fiber.",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Quickstart source file, @react-spring/three",
      "display": "targets/three/src/index.ts",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Repository stars, @react-spring/three",
      "display": "29.3K",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Own scene canvas, @react-spring/three",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "React rigid bodies, @react-spring/three",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Primary layer, @react-spring/three",
      "display": "Spring animation for Fiber scene properties",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Current example contract, @react-spring/three",
      "display": "Current Three target reexports core useSpring and creates animated host primitives through Fiber.applyProps. Object properties color(string) and opacity(number) become spring values; animated.meshStandardMaterial receives those values, hover color string, transparent bool, metalness/roughness numbers, and optional CubeTexture. config.tension is a current numeric AnimationConfig field;150 is valid. Type-only AnimatedProps/React JSX/Three CubeTexture remain compilation context, not runtime API calls.",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Renderer host, @react-spring/three",
      "display": "Existing Fiber Canvas and compatible React/Three peers",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Project function, @react-spring/three",
      "display": "export default function RawPillar({\n  style,\n  length,\n  envMap,\n  hover,\n  ...props\n}: RawPillarProps & RawPillarMeshProps) {\n  const pillarSpring = useSpring({\n    color: style.color,\n    opacity: style.opacity ?? 1,\n    config: {\n      tension: 150,\n    },\n  });\n\n  return (\n    <animated.mesh {...props}>\n      <boxGeometry args={[length, 1, length]} />\n      <animated.meshStandardMaterial\n        color={hover ? \"#ff8787\" : pillarSpring.color}\n        transparent\n        opacity={pillarSpring.opacity}\n        metalness={style.metalness ?? 0}\n        roughness={style.roughness ?? 1}\n        envMap={envMap}\n      />\n      {props.children}\n    </animated.mesh>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Project source file, @react-spring/three",
      "display": "src/components/RawPillar.tsx",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Project full_name, @react-spring/three",
      "display": "suhdonghwi/3d-periodic-table",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Project stargazers_count, @react-spring/three",
      "display": "174",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Library name, @react-three/postprocessing",
      "display": "@react-three/postprocessing",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Monthly downloads, @react-three/postprocessing",
      "display": "5.5M",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "License, @react-three/postprocessing",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Package release, @react-three/postprocessing",
      "display": "3.2.2",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Package release date, @react-three/postprocessing",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Install, @react-three/postprocessing",
      "display": "npm install @react-three/postprocessing three @react-three/fiber postprocessing",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Quickstart, @react-three/postprocessing",
      "display": "import { Canvas } from '@react-three/fiber';\nimport { Bloom, EffectComposer } from '@react-three/postprocessing';\n\nexport default function App() {\n  return (\n    <Canvas style={{ height: 400 }}>\n      <mesh><boxGeometry /><meshBasicMaterial color=\"orange\" /></mesh>\n      <EffectComposer><Bloom luminanceThreshold={0} /></EffectComposer>\n    </Canvas>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Official description, @react-three/postprocessing",
      "display": "Wraps the postprocessing library for React and @react-three/fiber.",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Quickstart source file, @react-three/postprocessing",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Repository stars, @react-three/postprocessing",
      "display": "1.7K",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Own scene canvas, @react-three/postprocessing",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "React rigid bodies, @react-three/postprocessing",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Primary layer, @react-three/postprocessing",
      "display": "Fiber screen-space visual effects",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Current example contract, @react-three/postprocessing",
      "display": "EffectComposer hosts native DepthOfField and Bloom. Current DepthOfFieldProps derives underlying constructor options and explicitly accepts target as ReactThreeFiber.Vector3 plus ref. Current wrapper passes height/focalLength and target to the effect; underlying current DepthOfFieldEffect retains supported deprecated height alias and public bokehScale getter/setter. Camera-distance callback writes bokehScale0..12 on the actual effect ref. Bloom accepts luminanceThreshold0, luminanceSmoothing0.25, intensity1.75, and mipmapBlur. Fiber hooks, Three math, and camera operations are peers, not extra selected-library calls.",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Renderer host, @react-three/postprocessing",
      "display": "Existing Fiber Canvas and compatible React/Three peers",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Project function, @react-three/postprocessing",
      "display": "function Effects({ focusTarget, hasFocus }) {\n  const { camera } = useThree();\n  const depthOfFieldRef = useRef();\n\n  useFrame(() => {\n    if (!depthOfFieldRef.current) return;\n\n    if (!hasFocus) {\n      depthOfFieldRef.current.bokehScale = 0; // no planet in focus → no blur\n      return;\n    }\n\n    const d = camera.position.distanceTo(focusTarget); // closer ⇒ stronger blur\n    const scale = THREE.MathUtils.clamp(12 - d * 0.75, 0, 12);\n    depthOfFieldRef.current.bokehScale = scale;\n  });\n\n  return (\n    <EffectComposer>\n      <DepthOfField\n        ref={depthOfFieldRef}\n        focusDistance={0}\n        focalLength={0.02}\n        height={480}\n        bokehScale={0} // initial value; updated each frame\n        target={focusTarget}\n      />\n      <Bloom\n        luminanceThreshold={0}\n        luminanceSmoothing={0.25}\n        intensity={1.75}\n        mipmapBlur\n      />\n    </EffectComposer>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Project source file, @react-three/postprocessing",
      "display": "src/solar-system/solar-system.jsx",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Project full_name, @react-three/postprocessing",
      "display": "openai/openai-apps-sdk-examples",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Project stargazers_count, @react-three/postprocessing",
      "display": "2.4K",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Library name, react-force-graph-3d",
      "display": "react-force-graph-3d",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Monthly downloads, react-force-graph-3d",
      "display": "1.5M",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "License, react-force-graph-3d",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Package release, react-force-graph-3d",
      "display": "1.29.2",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Package release date, react-force-graph-3d",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Install, react-force-graph-3d",
      "display": "npm install react-force-graph-3d",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Quickstart, react-force-graph-3d",
      "display": "import ForceGraph3D from 'react-force-graph-3d';\n\nexport default function App() {\n  const data = {\n    nodes: [{ id: 'a' }, { id: 'b' }],\n    links: [{ source: 'a', target: 'b' }],\n  };\n  return <ForceGraph3D graphData={data} width={600} height={400} />;\n}\n",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Official description, react-force-graph-3d",
      "display": "Renders 3D force-directed graphs as a React component.",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Quickstart source file, react-force-graph-3d",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Repository stars, react-force-graph-3d",
      "display": "3.4K",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Own scene canvas, react-force-graph-3d",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "React rigid bodies, react-force-graph-3d",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Primary layer, react-force-graph-3d",
      "display": "Specialized force-directed3D graph renderer",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Current example contract, react-force-graph-3d",
      "display": "Actual full file imports distinct ForceGraph2D and ForceGraph3D and binds the same graphRef to the component selected by graphType:2d|3d. In its3d branch, current cameraPosition accepts partial{x,y,z}position, lookAt{x,y,z}, and3000ms; no return consumed. Requires mounted graph and positioned node coordinates. centerAt/zoom belong solely to guarded2d branch and are neither counted nor mislabeled as3d APIs. Highlighting, delayed hover, and drawer state are host behavior.",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Project function, react-force-graph-3d",
      "display": "const handleFocusButtonClick = (node: CustomNode) => {\n  const newHighlightNodes = new Set<CustomNode>();\n  newHighlightNodes.add(node);\n  node.neighbors?.forEach((neighbor) => newHighlightNodes.add(neighbor));\n  node.links?.forEach((link) => highlightLinks.add(link));\n\n  setHighlightNodes(newHighlightNodes);\n  setHoverNode(node);\n\n  if (graphRef.current) {\n    if (graphType === \"2d\") {\n      graphRef.current.centerAt(node.x, node.y, 1000);\n      graphRef.current.zoom(8, 1000);\n    } else {\n      graphRef.current.cameraPosition(\n        { x: node.x, y: node.y, z: 300 }, // new position\n        { x: node.x, y: node.y, z: 0 }, // lookAt\n        3000 // ms transition duration\n      );\n    }\n  }\n\n  // Simulate mouse hover on the focused node\n  setTimeout(() => {\n    handleNodeHover(node);\n  }, 1000); // Adjust delay as needed\n\n  setRightDrawerOpen(false);\n};\n",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Project source file, react-force-graph-3d",
      "display": "src/app/components/GraphViewer.tsx",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Project full_name, react-force-graph-3d",
      "display": "noworneverev/graphrag-visualizer",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Project stargazers_count, react-force-graph-3d",
      "display": "430",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Library name, react-globe.gl",
      "display": "react-globe.gl",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Monthly downloads, react-globe.gl",
      "display": "969.0K",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "License, react-globe.gl",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Package release, react-globe.gl",
      "display": "2.38.0",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Package release date, react-globe.gl",
      "display": "May 2026",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Install, react-globe.gl",
      "display": "npm install react-globe.gl",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Quickstart, react-globe.gl",
      "display": "import Globe from 'react-globe.gl';\n\nexport default function App() {\n  const points = [{ lat: 37.77, lng: -122.42 }];\n  return <Globe pointsData={points} pointAltitude={0.08} width={600} height={400} />;\n}\n",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Official description, react-globe.gl",
      "display": "Renders globe data visualizations in React with ThreeJS and WebGL.",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Quickstart source file, react-globe.gl",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Repository stars, react-globe.gl",
      "display": "1.5K",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Own scene canvas, react-globe.gl",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "React rigid bodies, react-globe.gl",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Primary layer, react-globe.gl",
      "display": "Specialized3D geographic globe renderer",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Current example contract, react-globe.gl",
      "display": "Typed GlobeMethods ref is supplied by the caller. Current controls returns underlying Three OrbitControls; host disables autoRotate. pointOfView accepts finite geographic{lat,lng,altitude:1.6} and1200ms. After transition, guarded getScreenCoords(lat,lng) returns{x,y}viewport coordinates used to place the clicked-country UI. GeoJSON centroid, visited-country state, and callbacks are host inputs. Finite coordinates and ref availability are guarded in the intact original hook.",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Project function, react-globe.gl",
      "display": "export function useGlobeInteraction(\n  globeRef: React.MutableRefObject<GlobeMethods | undefined>,\n  visitedCountries: VisitedCountry[],\n  clickedCountry: ClickedCountry | null,\n  setClickedCountry: (country: ClickedCountry | null) => void,\n) {\n  const [selectedId, setSelectedId] = useState<string | null>(null);\n  const [hoverId, setHoverId] = useState<string | null>(null);\n\n  const handlePolygonClick = useCallback(\n    (polygon: unknown) => {\n      const feature = polygon as CountryFeature;\n      const id = feature.id?.toString() ?? \"\";\n      setSelectedId(id);\n      setClickedCountry(null);\n\n      const controls = globeRef.current?.controls?.();\n      if (controls) controls.autoRotate = false;\n\n      const countryName = feature.properties?.name ?? \"Unknown\";\n      const flagEmoji = feature.properties?.flagEmoji ?? null;\n      const isVisited = visitedCountries.some(\n        (country) => country.name === countryName,\n      );\n\n      const [lngRaw, latRaw] = geoCentroid(feature);\n      const lat = Number.isFinite(latRaw) ? latRaw : undefined;\n      const lng = Number.isFinite(lngRaw) ? lngRaw : undefined;\n\n      if (\n        globeRef.current?.pointOfView &&\n        lat !== undefined &&\n        lng !== undefined\n      ) {\n        globeRef.current.pointOfView(\n          { lat, lng, altitude: 1.6 },\n          GLOBE_ANIMATION_DURATION_MS,\n        );\n\n        setTimeout(() => {\n          if (globeRef.current) {\n            const coords = globeRef.current.getScreenCoords(lat, lng);\n            if (coords) {\n              setClickedCountry({\n                name: countryName,\n                flagEmoji,\n                position: { x: coords.x, y: coords.y },\n                isVisited,\n              });\n            }\n          }\n        }, GLOBE_ANIMATION_DURATION_MS);\n      }\n    },\n    [globeRef, visitedCountries, setClickedCountry],\n  );\n\n  const handlePolygonHover = useCallback((polygon: unknown | null) => {\n    const feature = (polygon ?? undefined) as CountryFeature | undefined;\n    setHoverId(feature?.id?.toString() ?? null);\n  }, []);\n\n  const polygonLabel = useCallback(\n    (polygon: unknown) => {\n      const feature = polygon as CountryFeature;\n      const name = feature.properties?.name ?? \"Unknown\";\n      const iso = feature.properties?.iso2 ?? \"N/A\";\n      return hoverId === feature.id?.toString()\n        ? `<div style=\"padding: 6px 8px;\">\n            <strong style=\"font-size: 13px;\">${name}</strong><br />\n            <span style=\"font-size: 11px; opacity: 0.7;\">ISO: ${iso}</span>\n          </div>`\n        : \"\";\n    },\n    [hoverId],\n  );\n\n  return {\n    selectedId,\n    hoverId,\n    handlePolygonClick,\n    handlePolygonHover,\n    polygonLabel,\n  };\n}\n",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Project source file, react-globe.gl",
      "display": "examples/showcases/chatkit-studio/apps/world/src/hooks/useGlobeInteraction.ts",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Project full_name, react-globe.gl",
      "display": "CopilotKit/CopilotKit",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Project stargazers_count, react-globe.gl",
      "display": "38.8K",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Library name, @react-three/rapier",
      "display": "@react-three/rapier",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Monthly downloads, @react-three/rapier",
      "display": "847.9K",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "License, @react-three/rapier",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Package release, @react-three/rapier",
      "display": "2.2.0",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Package release date, @react-three/rapier",
      "display": "Nov 2025",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Install, @react-three/rapier",
      "display": "npm install @react-three/rapier three @react-three/fiber",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Quickstart, @react-three/rapier",
      "display": "import { Suspense } from 'react';\nimport { Canvas } from '@react-three/fiber';\nimport { Physics, RigidBody } from '@react-three/rapier';\n\nexport default function App() {\n  return (\n    <Canvas style={{ height: 400 }}>\n      <Suspense fallback={null}>\n        <Physics><RigidBody><mesh><boxGeometry /><meshNormalMaterial /></mesh></RigidBody></Physics>\n      </Suspense>\n    </Canvas>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Official description, @react-three/rapier",
      "display": "Adds Rapier physics to React.",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Quickstart source file, @react-three/rapier",
      "display": "readme.md",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Repository stars, @react-three/rapier",
      "display": "1.7K",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Own scene canvas, @react-three/rapier",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "React rigid bodies, @react-three/rapier",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Primary layer, @react-three/rapier",
      "display": "Fiber rigid-body physics and collision components",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Current example contract, @react-three/rapier",
      "display": "Fixed RigidBody accepts position tuple and colliders=false; CuboidCollider accepts positive half-extents args and friction. Source only creates physics components during editor play mode, otherwise returning ordinary Three geometry. Requires parent Physics/Canvas and initialized engine; its Zustand editor store and material geometry are original host prerequisites. Native RigidBody/CuboidCollider are counted; ordinary meshes are not Rapier operations.",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Renderer host, @react-three/rapier",
      "display": "Existing Fiber Canvas and compatible React/Three peers",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Project function, @react-three/rapier",
      "display": "export function GroundPlane({ position, material, size }: GroundPlaneProps) {\n  const isPlaying = useEditorStore((s) => s.isPlaying);\n  const s = size ?? 5000;\n  const pos: [number, number, number] = position ?? [0, -0.1, 0];\n\n  const plane = (\n    <mesh rotation={[-Math.PI / 2, 0, 0]} position={pos} receiveShadow>\n      <planeGeometry args={[s, s]} />\n      <meshStandardMaterial\n        color={material?.color ?? \"#4CAF50\"}\n        metalness={material?.metalness ?? 0}\n        roughness={material?.roughness ?? 0.9}\n        side={THREE.DoubleSide}\n      />\n    </mesh>\n  );\n\n  if (!isPlaying) return plane;\n\n  return (\n    <RigidBody type=\"fixed\" position={pos} colliders={false}>\n      <mesh rotation={[-Math.PI / 2, 0, 0]} receiveShadow>\n        <planeGeometry args={[s, s]} />\n        <meshStandardMaterial\n          color={material?.color ?? \"#4CAF50\"}\n          metalness={material?.metalness ?? 0}\n          roughness={material?.roughness ?? 0.9}\n          side={THREE.DoubleSide}\n        />\n      </mesh>\n      <CuboidCollider args={[s / 2, 0.01, s / 2]} position={[0, 0, 0]} />\n    </RigidBody>\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Project source file, @react-three/rapier",
      "display": "examples/game-engine/components/game/ground-plane.tsx",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Project full_name, @react-three/rapier",
      "display": "vercel-labs/json-render",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Project stargazers_count, @react-three/rapier",
      "display": "19.8K",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Library name, @splinetool/react-spline",
      "display": "@splinetool/react-spline",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Monthly downloads, @splinetool/react-spline",
      "display": "683.9K",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "License, @splinetool/react-spline",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Package release, @splinetool/react-spline",
      "display": "4.2.0",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "Package release date, @splinetool/react-spline",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "Install, @splinetool/react-spline",
      "display": "npm install @splinetool/react-spline",
      "asOf": "2026-11-20"
    },
    "F264": {
      "label": "Quickstart, @splinetool/react-spline",
      "display": "import Spline from '@splinetool/react-spline';\n\nexport default function App() {\n  return <Spline scene=\"https://prod.spline.design/6Wq1Q7YGyM-iab9i/scene.splinecode\" />;\n}\n",
      "asOf": "2026-11-20"
    },
    "F265": {
      "label": "Repository stars, @splinetool/react-spline",
      "display": "1.4K",
      "asOf": "2026-11-20"
    },
    "F266": {
      "label": "Own scene canvas, @splinetool/react-spline",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F267": {
      "label": "React rigid bodies, @splinetool/react-spline",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F268": {
      "label": "Primary layer, @splinetool/react-spline",
      "display": "Wrapper for visually authored/exported Spline scenes",
      "asOf": "2026-11-20"
    },
    "F269": {
      "label": "Current example contract, @splinetool/react-spline",
      "display": "Same-file React.lazy dynamically imports the actual default @splinetool/react-spline component. Current component accepts scene URL string and HTML className; host Suspense displays its fallback while loading. This is an embedded exported Spline scene, not arbitrary GLTF loading or an editor in the React wrapper. Source app4.1 dependency pin is context, not a range gate for current4.2 API; scene availability/asset rights and full browser runtime were not tested.",
      "asOf": "2026-11-20"
    },
    "F270": {
      "label": "License boundary, @splinetool/react-spline",
      "display": "Wrapper MIT; source example AGPLv3; editor/runtime/scene rights separate",
      "asOf": "2026-11-20"
    },
    "F271": {
      "label": "Project function, @splinetool/react-spline",
      "display": "export function SplineScene({ scene, className }: SplineSceneProps) {\n  return (\n    <SplineErrorBoundary>\n      <Suspense \n        fallback={\n          <div className=\"w-full h-full flex items-center justify-center\">\n            <span className=\"loader\"></span>\n          </div>\n        }\n      >\n        <Spline\n          scene={scene}\n          className={className}\n        />\n      </Suspense>\n    </SplineErrorBoundary>\n  )\n}\n",
      "asOf": "2026-11-20"
    },
    "F272": {
      "label": "Project source file, @splinetool/react-spline",
      "display": "apps/desktop/components/ui/splite.tsx",
      "asOf": "2026-11-20"
    },
    "F273": {
      "label": "Project full_name, @splinetool/react-spline",
      "display": "YicunAI/Pnlclaw-community",
      "asOf": "2026-11-20"
    },
    "F274": {
      "label": "Project stargazers_count, @splinetool/react-spline",
      "display": "196",
      "asOf": "2026-11-20"
    },
    "F275": {
      "label": "Cleanse prose",
      "display": "3D",
      "asOf": "2026-11-17"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best React 3D libraries React Three Fiber Drei react-babylonjs React Spline code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
