{"id":21293206,"url":"https://github.com/guest271314/native-messaging-llrt","last_synced_at":"2026-01-20T23:02:04.094Z","repository":{"id":251561707,"uuid":"837772796","full_name":"guest271314/native-messaging-llrt","owner":"guest271314","description":" Amazon Web Services - Labs LLRT (Low Latency Runtime) Native Messaging host","archived":false,"fork":false,"pushed_at":"2024-08-04T03:02:17.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T18:05:17.658Z","etag":null,"topics":["javascript","native-messaging","native-messaging-host"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guest271314.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":"2024-08-04T01:43:58.000Z","updated_at":"2024-08-04T23:33:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"8e970e91-2a65-4760-9777-4a7f19c4d918","html_url":"https://github.com/guest271314/native-messaging-llrt","commit_stats":null,"previous_names":["guest271314/native-messaging-llrt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/guest271314/native-messaging-llrt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guest271314%2Fnative-messaging-llrt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guest271314%2Fnative-messaging-llrt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guest271314%2Fnative-messaging-llrt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guest271314%2Fnative-messaging-llrt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guest271314","download_url":"https://codeload.github.com/guest271314/native-messaging-llrt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guest271314%2Fnative-messaging-llrt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28618328,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T22:24:05.405Z","status":"ssl_error","status_checked_at":"2026-01-20T22:20:31.342Z","response_time":117,"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":["javascript","native-messaging","native-messaging-host"],"created_at":"2024-11-21T13:53:45.780Z","updated_at":"2026-01-20T23:02:04.089Z","avatar_url":"https://github.com/guest271314.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Amazon Web Services - Labs LLRT (Low Latency Runtime) Native Messaging host\n\nInstallation and usage on Chrome and Chromium\n\n1. Navigate to `chrome://extensions`.\n2. Toggle `Developer mode`.\n3. Click `Load unpacked`.\n4. Select `native-messaging-llrt` folder.\n5. Note the generated extension ID.\n6. Open `nm_llrt.json` in a text editor, set `\"path\"` to absolute path of `nm_llrt.js` and `chrome-extension://\u003cID\u003e/` using ID from 5 in `\"allowed_origins\"` array. \n7. Copy the file to Chrome or Chromium configuration folder, e.g., Chromium on \\*nix `~/.config/chromium/NativeMessagingHosts`; Chrome dev channel on \\*nix `~/.config/google-chrome-unstable/NativeMessagingHosts`; and similar for Chrome For Testing.\n8. Make sure `nm_llrt.js` is executable. See [Notes](https://github.com/guest271314/native-messaging-llrt#notes) for why Bash or QuickJS are used to read standard input stream to `llrt`. \n\n9. To test click `service worker` link in panel of unpacked extension which is DevTools for background.js in MV3 `ServiceWorker`, observe echo'ed message from `llrt` Native Messaging host. The communication mechanism can be extended to run `llrt` from any arbitrary Web page using various means, including, but not limited to utilizing `\"externally_connectable\"` to message to and from the `ServiceWorker` on specific Web pages over IPC; `\"web_accessible_resources\"` to append an extension `iframe` to any document and use `postMessage()` to transfer messages between browsing contexts; an offscreen document or side-panel document to connect to the host and transfer messages back and forth to the arbitrary Web page in the browser, et al.\n\n### Notes\n\nStandard input and standard output are not specified by ECMA-262. \n\nThere does not appear to be a straigtforward way to read standard input to `llrt`.\n\nWe use [`pgrep`](https://man7.org/linux/man-pages/man1/pgrep.1.html) command to get the PID of the current process, then or GNU Coreutils [`head`](https://www.gnu.org/software/coreutils/manual/html_node/head-invocation.html),\n[`dd`](https://www.gnu.org/software/coreutils/manual/html_node/dd-invocation.html#dd-invocation) command, or [QuickJS](https://bellard.org/quickjs/quickjs.html) to read `/proc/$@/fd/0`, then echo the STDIN to the current `llrt` process to `llrt`. \n\n### Compatibility\n\nFor differences between OS and browser implementations see [Chrome incompatibilities](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Chrome_incompatibilities#native_messaging).\n\n# License\nDo What the Fuck You Want to Public License [WTFPLv2](http://www.wtfpl.net/about/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguest271314%2Fnative-messaging-llrt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguest271314%2Fnative-messaging-llrt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguest271314%2Fnative-messaging-llrt/lists"}