{"id":15310920,"url":"https://github.com/gsimone/use-capture","last_synced_at":"2025-10-08T18:32:43.409Z","repository":{"id":42527272,"uuid":"286030732","full_name":"gsimone/use-capture","owner":"gsimone","description":"🎥 Record react-three-fiber scenes with ccapture.js","archived":true,"fork":false,"pushed_at":"2022-04-01T08:51:19.000Z","size":9897,"stargazers_count":58,"open_issues_count":4,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-09-22T19:54:09.549Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gsimone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-08T11:31:57.000Z","updated_at":"2025-08-27T13:22:15.000Z","dependencies_parsed_at":"2022-08-28T11:01:37.293Z","dependency_job_id":null,"html_url":"https://github.com/gsimone/use-capture","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/gsimone/use-capture","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsimone%2Fuse-capture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsimone%2Fuse-capture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsimone%2Fuse-capture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsimone%2Fuse-capture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gsimone","download_url":"https://codeload.github.com/gsimone/use-capture/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsimone%2Fuse-capture/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278991326,"owners_count":26081321,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-01T08:29:57.739Z","updated_at":"2025-10-08T18:32:42.765Z","avatar_url":"https://github.com/gsimone.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎥 use-capture [![npm version](https://badge.fury.io/js/use-capture.svg)](https://badge.fury.io/js/use-capture)\nRecord react-three-fiber scenes with [ccapture.js](https://github.com/spite/ccapture.js)\n\n## Notes\n\n- Not yet ready for general use, if you try it let me know ✌️\n- Gif format doesn't work yet\n\n## Usage\n\n[Check a simple example on codesandbox](https://zgi8e.csb.app/)\n\n#### 1️⃣ bind useCapture to your `react-three-fiber` canvas:\n```jsx\nimport useCapture from \"use-capture\";\n\nfunction App() {\n  \n  const [bind, startRecording] = useCapture({ duration: 2, fps: 60 });\n\n  return (\n    \u003c\u003e\n    \u003cCanvas\n      // 💡 preserveDrawingBuffer is mandatory\n      gl={{\n        preserveDrawingBuffer: true,\n      }}\n      onCreated={bind}\n    \u003e\n      {/* 💡 not having a clear color would glitch the recording */}\n      \u003ccolor attach=\"background\" args={[\"#000\"]} /\u003e\n      \u003cScene duration={duration} /\u003e\n    \u003c/Canvas\u003e\n  );\n}\n```\n\n#### 2️⃣ call the `startRecording` function\n```jsx\n\u003cbutton onClick={startRecording}\u003e ⏺️ Start Recording \u003c/button\u003e\n```\n\nYour file will start downloading as soon as it's done.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsimone%2Fuse-capture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgsimone%2Fuse-capture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsimone%2Fuse-capture/lists"}