{"id":18251663,"url":"https://github.com/32teeth/selfiebg.js","last_synced_at":"2025-10-11T13:09:45.509Z","repository":{"id":26620089,"uuid":"30075496","full_name":"32teeth/selfiebg.js","owner":"32teeth","description":null,"archived":false,"fork":false,"pushed_at":"2015-01-30T15:56:34.000Z","size":417,"stargazers_count":7,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-04T16:43:31.778Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/32teeth.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":"2015-01-30T14:32:48.000Z","updated_at":"2023-03-09T21:07:29.000Z","dependencies_parsed_at":"2022-09-01T20:51:55.468Z","dependency_job_id":null,"html_url":"https://github.com/32teeth/selfiebg.js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/32teeth/selfiebg.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/32teeth%2Fselfiebg.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/32teeth%2Fselfiebg.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/32teeth%2Fselfiebg.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/32teeth%2Fselfiebg.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/32teeth","download_url":"https://codeload.github.com/32teeth/selfiebg.js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/32teeth%2Fselfiebg.js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007311,"owners_count":26084280,"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-11T02:00:06.511Z","response_time":55,"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-11-05T09:48:11.295Z","updated_at":"2025-10-11T13:09:45.489Z","avatar_url":"https://github.com/32teeth.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# selfiebg.js\n-----------\n##introduction\n**selfiebg.js** is a small script that injects and allows you to use the users web cam and streaming media as a video background to your website, kinda letting you allow your users to make the site their own\n\n### design pattern\n**selfiebg.js** is built on a module reveal pattern exposing three (3) core methods.\n\n* setup()\n* start()\n* stop()\n\n### usage\n**selfiebg.js** is an IIFE *(immediately-invoked function expression)* and executes the **setup()** method on load, simply include the file at the bottom of your html page before the closing ***body*** tag\n\n\u003cpre\u003e\n\t/*\n\t** @description include selfiebg.js or selfiebg.min.js\n\t*/\n\t\u0026lt;script src=\"selfiebg.min.js\"\u0026gt;\u0026lt;/script\u0026gt;\n\u0026lt;/body\u0026gt;\n\u003c/pre\u003e\n\n### options\nyou can set the boolean value of **button_require**, by default it is set to ***false***\nsetting the boolean value to ***true*** creates a button that allows the user to terminate the user media stream by invoking the **stop()** method \n\n##example\n----------\nBelow is a quick screengrab of the script running once the user allows the sharing of their camera *(yep, it's a pitcure of me)*\n\n![Open Source icon](example.png)\n\nview the [example](example.html) file for more information.\nor check out the [live example](http://www.selfiebgjs.32teeth.org/) here\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F32teeth%2Fselfiebg.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F32teeth%2Fselfiebg.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F32teeth%2Fselfiebg.js/lists"}