{"id":19443491,"url":"https://github.com/tbeseda/nodejs18.16-executable-test","last_synced_at":"2025-10-08T20:10:06.559Z","repository":{"id":232884553,"uuid":"627224697","full_name":"tbeseda/nodejs18.16-executable-test","owner":"tbeseda","description":"Node.js v18.16.0 single executable applications test","archived":false,"fork":false,"pushed_at":"2023-04-13T03:10:24.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-25T08:15:53.091Z","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/tbeseda.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}},"created_at":"2023-04-13T03:09:43.000Z","updated_at":"2023-04-13T03:09:50.000Z","dependencies_parsed_at":"2024-04-12T03:31:55.609Z","dependency_job_id":"e7e1ef58-059e-489a-a9f9-fb2a61efacb2","html_url":"https://github.com/tbeseda/nodejs18.16-executable-test","commit_stats":null,"previous_names":["tbeseda/nodejs18.16-executable-test"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tbeseda/nodejs18.16-executable-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbeseda%2Fnodejs18.16-executable-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbeseda%2Fnodejs18.16-executable-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbeseda%2Fnodejs18.16-executable-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbeseda%2Fnodejs18.16-executable-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tbeseda","download_url":"https://codeload.github.com/tbeseda/nodejs18.16-executable-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbeseda%2Fnodejs18.16-executable-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000681,"owners_count":26082818,"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-08T02:00:06.501Z","response_time":56,"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-10T15:43:15.996Z","updated_at":"2025-10-08T20:10:06.540Z","avatar_url":"https://github.com/tbeseda.png","language":"JavaScript","readme":"# Node.js 18.16.0 Single Executable Applications (SEA)\n\nNifty. Hope we can get the file size down:\n\n```\n.rwxr-xr-x@  82M  hello\n```\n\nFor what it's worth this is on par with a compiled Deno binary.\n\n## macOS process\n\nMake sure you've got Node.js 18.16.0 installed.\n\n```sh\necho 'console.log(`Hello, ${process.argv[2]}!`);' \u003e hello.js\n```\n\n```sh\ncp $(command -v node) hello\n```\n\n```sh\ncodesign --remove-signature hello\n```\n\n```sh\nnpx postject hello NODE_JS_CODE hello.js \\\n  --sentinel-fuse NODE_JS_FUSE_fce680ab2cc467b6e072b8b5df1996b2 \\\n  --macho-segment-name NODE_JS\n```\n\n```sh\ncodesign --sign - hello\n```\n\n```sh\n./hello world\n```\n\n♠️\n\n## v19 (unreleased)\n\nMake use of the `--experimental-sea-config` flag to generate the binary blob ahead of injection.\n\nExample config in sea-config.json:\n\n```json\n{ \"main\": \"hello.js\", \"output\": \"sea-prep.blob\" }\n```\n\n## References:\n\n- [v18.16 SEA doc](https://nodejs.org/dist/latest-v18.x/docs/api/single-executable-applications.html)\n  - currently doesn't mention binary signing, but the rest works\n- [18.16.0 Release Notes](https://nodejs.org/en/blog/release/v18.16.0)\n- [SEA PR](https://github.com/nodejs/node/pull/45038)\n- [SEA Initiative task](https://github.com/nodejs/node/issues/43432)\n  - started June 14, 2022\n- [mention of `codesign`](https://github.com/nodejs/postject/issues/76)\n  - same issue I had where the process is immediately killed\n\n#### Future version is configurable\n\n- [unreleased v19 doc](https://github.com/nodejs/node/blob/527394783ece910bf8c543f5a01f100ae37e5c33/doc/api/single-executable-applications.md)\n  - with `--experimental-sea-config` flag\n- [related PR](https://github.com/nodejs/node/pull/47125)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbeseda%2Fnodejs18.16-executable-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftbeseda%2Fnodejs18.16-executable-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbeseda%2Fnodejs18.16-executable-test/lists"}