{"id":15677061,"url":"https://github.com/soyuka/native-messaging-swarm","last_synced_at":"2026-03-10T07:02:51.755Z","repository":{"id":66040678,"uuid":"132786271","full_name":"soyuka/native-messaging-swarm","owner":"soyuka","description":"TCP/UDP swarm on top of WebExtension's native messaging protocol","archived":false,"fork":false,"pushed_at":"2018-05-12T17:15:53.000Z","size":32,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-22T07:37:03.376Z","etag":null,"topics":["bridge","dat-project","hyperdrive","swarm","tcp","udp"],"latest_commit_sha":null,"homepage":"","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/soyuka.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,"publiccode":null,"codemeta":null}},"created_at":"2018-05-09T16:44:37.000Z","updated_at":"2024-05-05T23:54:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"9e635897-f0bb-4833-b339-006d7a1aaaca","html_url":"https://github.com/soyuka/native-messaging-swarm","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"31421f74596b4dee8e6ed048b2d35a50c1173382"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/soyuka/native-messaging-swarm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soyuka%2Fnative-messaging-swarm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soyuka%2Fnative-messaging-swarm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soyuka%2Fnative-messaging-swarm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soyuka%2Fnative-messaging-swarm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soyuka","download_url":"https://codeload.github.com/soyuka/native-messaging-swarm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soyuka%2Fnative-messaging-swarm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30326893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bridge","dat-project","hyperdrive","swarm","tcp","udp"],"created_at":"2024-10-03T16:08:19.673Z","updated_at":"2026-03-10T07:02:51.696Z","avatar_url":"https://github.com/soyuka.png","language":"JavaScript","readme":"Native messaging swarm\n======================\n\nA swarm library that would allow to replicate a dat stream thorugh tcp/udp from the browser. It uses WebExtension's native messaging protocol.\n\n## Installation\n\n```\nnpm install native-messaging-swarm\n```\n\n## Usage\n\n```javascript\nconst runtime = require('browser.runtime') // or window.runtime\nconst hyperdrive = require('hyperdrive')\nconst swarm = require('native-messaging-swarm')\n\nconst archive = hyperdrive('./test')\nconst port = runtime.connectNative(`${__dirname}/native.js`)\n\narchive.ready(() =\u003e {\n  // shares the archive through tcp/udp from the native app\n  swarm(archive, port)\n})\n```\n\n## Example\n\nThanks to `browser.runtime`, on nodejs it'll `spawn` a new process that mimics the native messaging app. In the future the native app can be packaged (https://github.com/zeit/pkg) and would work through a native messaging manifest (see [WebExtensions](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Native_messaging)).\n\nTest this already by launching `node example.js`. It'll start an archive with a `dat.json` and share it through `hyperdiscovery` with the native app.\nTo clone using `hyperdiscovery` use `node clone.js [key]`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoyuka%2Fnative-messaging-swarm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoyuka%2Fnative-messaging-swarm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoyuka%2Fnative-messaging-swarm/lists"}