{"id":21918148,"url":"https://github.com/inf800/p2p-js","last_synced_at":"2025-03-22T09:49:40.128Z","repository":{"id":38269634,"uuid":"271487346","full_name":"INF800/P2P-JS","owner":"INF800","description":"P2P text and video chat","archived":false,"fork":false,"pushed_at":"2022-12-06T16:46:09.000Z","size":4457,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-27T09:43:38.133Z","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/INF800.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-06-11T08:01:39.000Z","updated_at":"2020-06-11T10:54:05.000Z","dependencies_parsed_at":"2023-01-24T04:46:56.506Z","dependency_job_id":null,"html_url":"https://github.com/INF800/P2P-JS","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/INF800%2FP2P-JS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/INF800%2FP2P-JS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/INF800%2FP2P-JS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/INF800%2FP2P-JS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/INF800","download_url":"https://codeload.github.com/INF800/P2P-JS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244937743,"owners_count":20535124,"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-11-28T19:49:10.378Z","updated_at":"2025-03-22T09:49:40.108Z","avatar_url":"https://github.com/INF800.png","language":"JavaScript","readme":"- `brew install npm`\n- `npm init` (contiously press enter. creates package.json)\n- `npm install simple-peer --save` (saves simple-peer to package.json)\n- `npm instal budo --save` (to package.json)\n- in bash: `budo index.js:bundle.js` (creates bundle.js in main dir)\n- now use `\u003cscript src=\"bundle.js\"\u003e\u003c/script\u003e` in html (`index.js` not needed)\n- add to `package.json`\n    ```\n    \"scripts\": {\n        \"start\": \"budo index.js:bundle.js\",\n    ...\n    \"devDependencies\": {\n        \"budo\": \"^4.1.0\"\n    },\n    ```\n    to automate it using `npm start`. \n    **You have to Run `npm start` everytime index.js is updated!**\n- host using vscode live/simply using file\n\n### How to use\n\n- run `npm install` to install from `package.json`\n- run `npm start` (if you want, see what `start` does in package.json)\n- now, as `bundle.js` is created, you can use client side! host using simple server or use file:///\n    - `budo` uses it's own server. goto mentioned host:port\n\n\n# github pages\n For production use browserify\n\n\n- simply generate `bundle.js` using `browserify index.js -o bundle.js`\n- static page!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finf800%2Fp2p-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finf800%2Fp2p-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finf800%2Fp2p-js/lists"}