{"id":20732795,"url":"https://github.com/montyanderson/scatternet","last_synced_at":"2026-04-19T18:33:09.529Z","repository":{"id":69224704,"uuid":"103401210","full_name":"montyanderson/scatternet","owner":"montyanderson","description":"A lightweight peer-to-peer network framework.","archived":false,"fork":false,"pushed_at":"2017-10-01T12:00:51.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-11T10:45:18.608Z","etag":null,"topics":["javascript","network","node","nodejs","p2p","socket","udp"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/montyanderson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"publiccode":null,"codemeta":null}},"created_at":"2017-09-13T13:09:59.000Z","updated_at":"2024-12-28T04:33:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"b9f7fd3c-c0a7-46eb-a137-7ff459ebf2df","html_url":"https://github.com/montyanderson/scatternet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/montyanderson/scatternet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montyanderson%2Fscatternet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montyanderson%2Fscatternet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montyanderson%2Fscatternet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montyanderson%2Fscatternet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/montyanderson","download_url":"https://codeload.github.com/montyanderson/scatternet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/montyanderson%2Fscatternet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32017992,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","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":["javascript","network","node","nodejs","p2p","socket","udp"],"created_at":"2024-11-17T05:21:44.081Z","updated_at":"2026-04-19T18:33:09.512Z","avatar_url":"https://github.com/montyanderson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scatternet\n\nA lightweight peer-to-peer network framework.\n\n## Decentralised chat appliction example\n\n``` javascript\nconst { Node } = require(\"scatternet\");\n\nconst node = new Node(\"simplechat\");\n\nnode.directory(6000, \"public-directory-example.net\");\nnode.listen();\n\nnode.on(\"message\", ({ peer, msg }) =\u003e {\n\tprocess.stdout.write(`\\r${peer} - ${msg}`);\n\tprocess.stdout.write(\"- \");\n});\n\nnode.on(\"peer\", peer =\u003e {\n\tprocess.stdout.write(`\\r${peer} joined the chat!\\n`);\n\tprocess.stdout.write(\"- \");\n});\n\nprocess.stdout.write(\"- \");\n\nprocess.stdin.on(\"readable\", () =\u003e {\n\tconst chunk = process.stdin.read();\n\n\tif(chunk) {\n\t\tprocess.stdout.write(\"- \");\n\t\tnode.broadcast(chunk);\n\t}\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmontyanderson%2Fscatternet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmontyanderson%2Fscatternet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmontyanderson%2Fscatternet/lists"}