{"_id":"@cameratag/react_photobooth","_rev":"3-0de6ab3fb2d1772360c26125af27584b","name":"@cameratag/react_photobooth","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@cameratag/react_photobooth","version":"0.1.0","keywords":["video","recorder","cameratag","webrtc","upload","transcoding","player"],"author":{"name":"Chris Danzig"},"license":"UNLICENSED","_id":"@cameratag/react_photobooth@0.1.0","maintainers":[{"name":"cdanzig","email":"chris@danzigmedia.com"}],"dist":{"shasum":"5ff3f4a149a255a9fe7871df0f445bb5c673959a","tarball":"https://registry.npmjs.org/@cameratag/react_photobooth/-/react_photobooth-0.1.0.tgz","fileCount":3,"integrity":"sha512-for8Wgm63JwcqMHCJYUKTVaqZeKnVJQ8wOi+8R3CsmELHxPegB4aid5u6JgSRu1dQeNkgdNr+oEV++1IIW7RJA==","signatures":[{"sig":"MEYCIQDtOrHstufHGIAXDzUmRNjQfhLTVbfExBb3vhncFzcVbwIhAM+s9ivzJkmm7noGvzl56mBFfeK7ySwNTsS6tcH2FT+Y","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2405},"main":"react_photobooth.js","gitHead":"c835ddb9089c461a7c90bf493f6bafcb9fbd6b36","scripts":{"test":""},"_npmUser":{"name":"cdanzig","email":"chris@danzigmedia.com"},"_npmVersion":"9.5.0","description":"A React Component wrapping CameraTag's Photo Booth (<photobooth>). Allows users to snap or upload photos from your product using their webcam or mobile device. Requires a CameraTag account.","directories":{},"_nodeVersion":"18.15.0","dependencies":{"react":"","@cameratag/photobooth":""},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/react_photobooth_0.1.0_1744335191412_0.6751120034705871","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@cameratag/react_photobooth","version":"0.1.1","keywords":["video","recorder","cameratag","webrtc","upload","transcoding","player"],"author":{"name":"Chris Danzig"},"license":"UNLICENSED","_id":"@cameratag/react_photobooth@0.1.1","maintainers":[{"name":"cdanzig","email":"chris@danzigmedia.com"}],"dist":{"shasum":"54283cbc31443cce9369146ed9642c29a0830bbf","tarball":"https://registry.npmjs.org/@cameratag/react_photobooth/-/react_photobooth-0.1.1.tgz","fileCount":3,"integrity":"sha512-rz//MSOFaTaQQOTKO4Z/RlxHdA/L/Syvyk7k/9zC0A+LiaLVBckqTsRCCsw1KeNgRG5dxMUBE/Q1l72DFoSvEw==","signatures":[{"sig":"MEUCIF7fJG5cbOEm3JDGkQM87IZ8ObIy4sLPFjAzfeLc9z9kAiEAidIPJ8QrhmqMyNhDZ8eQHVuQVwTo+IfJq/e8vtwmfvQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2405},"main":"react_photobooth.js","gitHead":"273f28e84520ae8888201eeaf481b0f499e51aad","scripts":{"test":""},"_npmUser":{"name":"cdanzig","email":"chris@danzigmedia.com"},"_npmVersion":"9.5.0","description":"A React Component wrapping CameraTag's Photo Booth (<photobooth>). Allows users to snap or upload photos from your product using their webcam or mobile device. Requires a CameraTag account.","directories":{},"_nodeVersion":"18.15.0","dependencies":{"react":"","@cameratag/photobooth":""},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/react_photobooth_0.1.1_1749591580131_0.365054408210743","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@cameratag/react_photobooth","version":"0.1.2","description":"A React Component wrapping CameraTag's Photo Booth (<photobooth>). Allows users to snap or upload photos from your product using their webcam or mobile device. Requires a CameraTag account.","main":"react_photobooth.js","scripts":{"test":""},"dependencies":{"react":"","@cameratag/photobooth":""},"author":{"name":"Chris Danzig"},"keywords":["video","recorder","cameratag","webrtc","upload","transcoding","player"],"license":"UNLICENSED","_id":"@cameratag/react_photobooth@0.1.2","gitHead":"273f28e84520ae8888201eeaf481b0f499e51aad","_nodeVersion":"22.20.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-HP2DXr7jD0F9s11iJxJxOHHI0fNHauThZe2CXzAKMgGMCWdWuJSdxPaBM97AxUHJPXRKrNUQA0YDirLIWW3BFA==","shasum":"5c364e56965c889dcc3d7d972064541616b83058","tarball":"https://registry.npmjs.org/@cameratag/react_photobooth/-/react_photobooth-0.1.2.tgz","fileCount":3,"unpackedSize":2405,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFVg2yRF6eHtFYfk8WFKbLvMmCt+QTduWfjM7J9AM4beAiBH5CzmRHjHC4PaNv3FhO5FXZHyteBGCKWxRsrVm7CRng=="}]},"_npmUser":{"name":"cdanzig","email":"chris@danzigmedia.com"},"directories":{},"maintainers":[{"name":"cdanzig","email":"chris@danzigmedia.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/react_photobooth_0.1.2_1759928067187_0.22296734923229655"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-11T01:33:11.327Z","modified":"2025-10-08T12:54:27.597Z","0.1.0":"2025-04-11T01:33:11.575Z","0.1.1":"2025-06-10T21:39:40.294Z","0.1.2":"2025-10-08T12:54:27.389Z"},"author":{"name":"Chris Danzig"},"license":"UNLICENSED","keywords":["video","recorder","cameratag","webrtc","upload","transcoding","player"],"description":"A React Component wrapping CameraTag's Photo Booth (<photobooth>). Allows users to snap or upload photos from your product using their webcam or mobile device. Requires a CameraTag account.","maintainers":[{"name":"cdanzig","email":"chris@danzigmedia.com"}],"readme":"# CameraTag's Photo Booth\nThis react component allows you to embed a [CameraTag](https://www.cameratag.com) &lt;Photobooth> in your React app.\n\n## Initialize A Recorder\nBelow is an example of how to load a &lt;Photobooth> in your app.\n```js\nimport Photobooth from \"@cameratag/react_photobooth\";\n\nexport default function App() {\n  return <Photobooth appUuid='a-6793d070-dbac-013b-f57a-529b7d4fe95c' id='myBooth'/>\n}\n```\n\n## Call Methods / Observe Events\nIf you want to call methods on the &lt;Photobooth> from our [JS API](https://www.cameratag.com/docs) you can pass a function into the onInit prop and the function will be passed a handle to the newly initialized &lt;Photobooth>. \n```js\nimport Photobooth from \"@cameratag/react_photobooth\";\n\nexport default function App() {\n\n  // grab a handle for the JS API\n  function getHandle(myBooth) {\n    // you can call then call API methods or observe events\n    myBooth.takePicture();\n    myBooth.observe(\"photoTaken\", ()=>{\n      console.log(\"Looking good!\");\n    });\n  }\n\n  return <Photobooth onInit={getHandle} appUuid='a-6793d070-dbac-013b-f57a-529b7d4fe95c' id='myBooth'/>\n}\n```\n","readmeFilename":"README.md"}