{"id":19252896,"url":"https://github.com/splinetool/r3f-spline","last_synced_at":"2025-08-24T19:49:15.762Z","repository":{"id":38239658,"uuid":"472848173","full_name":"splinetool/r3f-spline","owner":"splinetool","description":"Hook to load Spline scenes into react-three-fiber","archived":false,"fork":false,"pushed_at":"2022-09-02T17:14:02.000Z","size":1678,"stargazers_count":75,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2023-03-07T19:13:44.608Z","etag":null,"topics":["react","react-three-fiber"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/splinetool.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-22T16:35:36.000Z","updated_at":"2023-03-07T17:57:00.000Z","dependencies_parsed_at":"2022-07-13T04:51:42.190Z","dependency_job_id":null,"html_url":"https://github.com/splinetool/r3f-spline","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splinetool%2Fr3f-spline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splinetool%2Fr3f-spline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splinetool%2Fr3f-spline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splinetool%2Fr3f-spline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/splinetool","download_url":"https://codeload.github.com/splinetool/r3f-spline/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223867266,"owners_count":17216843,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["react","react-three-fiber"],"created_at":"2024-11-09T18:28:47.609Z","updated_at":"2024-11-09T18:28:48.124Z","avatar_url":"https://github.com/splinetool.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://raw.githubusercontent.com/splinetool/react-spline/main/.github/screenshots/hero.png)](https://my.spline.design/splinereactlogocopycopy-eaa074bf6b2cc82d870c96e262a625ae/)\n\n# r3f-spline\n\n**r3f-spline** is a React hook that lets you use your Spline scene with [react-three-fiber](https://github.com/pmndrs/react-three-fiber).\n\n🌈 [Spline](https://spline.design/) is a friendly 3d collaborative design tool for the web.\n\n[Website](https://spline.design/) \u0026mdash;\n[Twitter](https://twitter.com/splinetool) \u0026mdash;\n[Community](https://discord.gg/M9hNDMqvnw) \u0026mdash;\n[Documentation](https://docs.spline.design/)\n\n## Install\n\n```bash\nyarn add @splinetool/r3f-spline @splinetool/loader\n```\n\nor\n\n```bash\nnpm install @splinetool/r3f-spline @splinetool/loader\n```\n\n**NOTE**: make sure you also install the `@react-three/fiber` and `three` dependencies.\n\n## Usage\n\n```jsx\nimport useSpline from '@splinetool/r3f-spline'\n\nexport default function Scene({ ...props }) {\n  const { nodes, materials } = useSpline('https://prod.spline.design/2fzdsSVagfszNxsd/scene.spline')\n\n  return (\n    \u003cgroup {...props} dispose={null}\u003e\n      \u003cmesh\n        name=\"Rectangle\"\n        geometry={nodes.Rectangle.geometry}\n        material={materials['Rectangle Material']}\n      /\u003e\n    \u003c/group\u003e\n  )\n}\n```\n\n## Examples\n\n\u003cp align=\"left\"\u003e\n  \u003ca href=\"https://codesandbox.io/s/2giomw\" target=\"_blank\"\u003e\u003cimg width=\"274\" src=\"https://raw.githubusercontent.com/splinetool/r3f-spline/main/.github/screenshots/relax.png\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://codesandbox.io/s/lol3p7\" target=\"_blank\"\u003e\u003cimg width=\"274\" src=\"https://raw.githubusercontent.com/splinetool/r3f-spline/main/.github/screenshots/work.png\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplinetool%2Fr3f-spline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsplinetool%2Fr3f-spline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplinetool%2Fr3f-spline/lists"}