{"id":13734217,"url":"https://github.com/ginberg/webcamR","last_synced_at":"2025-05-08T10:31:09.506Z","repository":{"id":79355329,"uuid":"168129527","full_name":"ginberg/webcamR","owner":"ginberg","description":"Htmlwidget wrapper around the react-webcam library.","archived":false,"fork":false,"pushed_at":"2019-01-31T05:19:22.000Z","size":83,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T01:39:21.327Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"R","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/ginberg.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-01-29T09:42:25.000Z","updated_at":"2021-03-22T15:51:29.000Z","dependencies_parsed_at":"2023-03-24T04:33:06.843Z","dependency_job_id":null,"html_url":"https://github.com/ginberg/webcamR","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ginberg%2FwebcamR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ginberg%2FwebcamR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ginberg%2FwebcamR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ginberg%2FwebcamR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ginberg","download_url":"https://codeload.github.com/ginberg/webcamR/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253045661,"owners_count":21845746,"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":[],"created_at":"2024-08-03T03:00:53.576Z","updated_at":"2025-05-08T10:31:09.233Z","avatar_url":"https://github.com/ginberg.png","language":"R","funding_links":[],"categories":["UI Components"],"sub_categories":["Image / Audio / Video"],"readme":"# Webcam HTMLWidget\n\nThis example demonstrates creating an [htmlwidget](https://www.htmlwidgets.org/) wrapper around the [react-webcam](https://www.npmjs.com/package/react-webcam) library.\n\n# Building\n\nBecause this package includes Javascript source code that requires a compilation step, package installation is in two phases: Javascript tools build the Javascript, and R tools build and install the package. The R package includes the built Javascript files in the `inst/` directory.\n\n## Javascript Build Requirements\n\nBuilding Javascript should work on macOS, Linux, and Windows. The following tools are necessary regardless of your platform:\n\n- [Node.js](https://nodejs.org/en/)\n- [Yarn](https://yarnpkg.com/en/)\n\n## R Build Requirements\n\nYou should install the `reactR` package if you haven't, as this widget depends on it.\n\n## Development Workflow\n\nAfter you've installed Node.js and Yarn, run the following command to resolve and download dependencies:\n\n```\nyarn install\n```\n\nNow, run `yarn` to build `inst/htmlwidgets/webcamR.js`:\n\n```\nyarn run webpack --mode=development\n```\n\n\u003e To run `yarn webpack` automatically whenever sources change, use the command `yarn run webpack --mode=development --watch`\n\nNow that the Javascript is built, you can install the R package:\n\n```\ndevtools::document()\ndevtools::install()\n```\n\nFinally you can try the example app by running [app.R](app.R).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fginberg%2FwebcamR","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fginberg%2FwebcamR","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fginberg%2FwebcamR/lists"}