{"id":39939340,"url":"https://github.com/ulwanski/unix-dgram-socket","last_synced_at":"2026-01-18T19:03:51.685Z","repository":{"id":34158724,"uuid":"170588396","full_name":"ulwanski/unix-dgram-socket","owner":"ulwanski","description":"Node implementation of unix datagram socket writed in TypeScript","archived":false,"fork":false,"pushed_at":"2023-02-04T13:13:16.000Z","size":1923,"stargazers_count":4,"open_issues_count":8,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-12T09:45:28.352Z","etag":null,"topics":["dgram","ipc","node","nodejs","nodejs-modules","nodejs-socket","socket","unix-socket"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ulwanski.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-13T22:20:49.000Z","updated_at":"2022-06-15T22:10:15.000Z","dependencies_parsed_at":"2023-02-18T16:35:31.364Z","dependency_job_id":null,"html_url":"https://github.com/ulwanski/unix-dgram-socket","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ulwanski/unix-dgram-socket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulwanski%2Funix-dgram-socket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulwanski%2Funix-dgram-socket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulwanski%2Funix-dgram-socket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulwanski%2Funix-dgram-socket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ulwanski","download_url":"https://codeload.github.com/ulwanski/unix-dgram-socket/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulwanski%2Funix-dgram-socket/sbom","scorecard":{"id":908249,"data":{"date":"2025-08-11","repo":{"name":"github.com/ulwanski/unix-dgram-socket","commit":"e437ea6ef94ef789f57c542b82f7ceeba6858690"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/14 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/compatibility.yml:1","Warn: no topLevel permission defined: .github/workflows/coverage-reporter.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":1,"reason":"dependency not pinned by hash detected -- score normalized to 1","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/compatibility.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/ulwanski/unix-dgram-socket/compatibility.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/compatibility.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/ulwanski/unix-dgram-socket/compatibility.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/coverage-reporter.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/ulwanski/unix-dgram-socket/coverage-reporter.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/coverage-reporter.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/ulwanski/unix-dgram-socket/coverage-reporter.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/coverage-reporter.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/ulwanski/unix-dgram-socket/coverage-reporter.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/ulwanski/unix-dgram-socket/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/ulwanski/unix-dgram-socket/release.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/compatibility.yml:48","Warn: npmCommand not pinned by hash: .github/workflows/coverage-reporter.yml:23","Warn: npmCommand not pinned by hash: .github/workflows/release.yml:18","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   1 out of   4 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"31 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T18:11:14.478Z","repository_id":34158724,"created_at":"2025-08-24T18:11:14.479Z","updated_at":"2025-08-24T18:11:14.479Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28548954,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T19:02:06.365Z","status":"ssl_error","status_checked_at":"2026-01-18T19:01:46.239Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["dgram","ipc","node","nodejs","nodejs-modules","nodejs-socket","socket","unix-socket"],"created_at":"2026-01-18T19:03:51.613Z","updated_at":"2026-01-18T19:03:51.675Z","avatar_url":"https://github.com/ulwanski.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unix-dgram-socket\n[![Node compatibility](https://github.com/ulwanski/unix-dgram-socket/actions/workflows/compatibility.yml/badge.svg?branch=master)](https://github.com/ulwanski/unix-dgram-socket/actions/workflows/compatibility.yml)\n\nConnection-less, reliable unix datagram socket implementation with abstract namespace support for local interprocess communication in Node.JS application.\nUNIX domain sockets can be either unnamed, or bound to a filesystem pathname (marked as being of type socket).\nLinux also supports an abstract namespace which is independent of the filesystem.\n\n[![Maintainability](https://api.codeclimate.com/v1/badges/dbc4719bb948227082c5/maintainability)](https://codeclimate.com/github/ulwanski/unix-dgram-socket/maintainability) \n[![Test Coverage](https://api.codeclimate.com/v1/badges/dbc4719bb948227082c5/test_coverage)](https://codeclimate.com/github/ulwanski/unix-dgram-socket/test_coverage) \n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/ab95c156fa6b44f79eebc780c5dd4b08)](https://www.codacy.com/gh/ulwanski/unix-dgram-socket/dashboard?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=ulwanski/unix-dgram-socket\u0026amp;utm_campaign=Badge_Grade)\n![](https://img.shields.io/github/issues-raw/ulwanski/unix-dgram-socket.svg?style=flat)\n![](https://img.shields.io/snyk/vulnerabilities/npm/unix-dgram-socket.svg?style=flat-square)\n\n## Installation\n```bash\nnpm i unix-dgram-socket --save\n```\nPackage C++ addons will be compiled during installation.\n\n## Examples\n#### Open socket\n```typescript\nimport {UnixDgramSocket} from \"unix-dgram-socket\";\n\nconst socket = new UnixDgramSocket();\n\n// Call on error\nsocket.on('error', (error: any) =\u003e {\n    console.log(error);\n});\n\n// Call when new message is received\nsocket.on('message', (message: Buffer, info: any) =\u003e {\n    console.log(message.toString(UnixDgramSocket.payloadEncoding));\n    console.log(info);\n});\n\n// Call when socket is bind to path\nsocket.on('listening', (path: string) =\u003e {\n    console.log(`socket listening on path: ${path}`);\n});\n\n// Bind socket to filesystem path\nsocket.bind(\"/tmp/socket1.sock\");\n```\n\n#### Sending messages\n```typescript\nimport {UnixDgramSocket} from \"unix-dgram-socket\";\n\nconst socket = new UnixDgramSocket();\n\n// Call on error\nsocket.on('error', (error: any) =\u003e {\n    console.log(error);\n});\n\n// Call when new message is received\nsocket.on('message', (message: Buffer, info: any) =\u003e {\n    console.log(message.toString(UnixDgramSocket.payloadEncoding));\n    console.log(info);\n});\n\n// Call on successful connect\nsocket.on('connect', (path: string) =\u003e {\n    console.log(`socket connected to path: ${path}`);\n});\n\n// Call when socket is bind to path\nsocket.on('listening', (path: string) =\u003e {\n    console.log(`socket listening on path: ${path}`);\n});\n\nsocket.send(\"Special inter-process delivery!\", \"/tmp/socket1.sock\");\n\n// Dgram socket is connection-less so call connect only set default destination path and can be called many times\nsocket.connect(\"/tmp/socket1.sock\");\n\n// Send can be called without path if 'connect' was called before\nsocket.send(\"I will be send to default path, set by connect!\");\n\n// CLose socket to prevent further communication\nsocket.close();\n```\n\n#### Operating with abstract namespace path\nAbstract namespace path can be passed by starting path string from null byte ('\\0') or \"@\" character.\n```typescript\n// Bind socket to abstract path\nsocket.bind(\"@/abstract/path/socket1.sock\");\n\n// Send data to abstract namespace path\nsocket.send(\"Special inter-process delivery!\", \"@/abstract/path/socket1.sock\");\n```\n\n## Additional information \n#### Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n#### License\n[GPL-3.0](https://choosealicense.com/licenses/gpl-3.0/)\n\n#### References\n- http://man7.org/linux/man-pages/man7/unix.7.html\n- http://man7.org/linux/man-pages/man2/socket.2.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulwanski%2Funix-dgram-socket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fulwanski%2Funix-dgram-socket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulwanski%2Funix-dgram-socket/lists"}