{"id":16369641,"url":"https://github.com/dcsunset/socks5-protocol","last_synced_at":"2026-05-03T15:33:31.905Z","repository":{"id":228675755,"uuid":"774625673","full_name":"DCsunset/socks5-protocol","owner":"DCsunset","description":"A Node.js library (in TypeScript and ESM) to encode/decode messages in SOCKS5 protocol.","archived":false,"fork":false,"pushed_at":"2024-03-25T01:42:47.000Z","size":42,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-13T03:35:38.610Z","etag":null,"topics":["encoding","network","nodejs","protocol","socks5","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DCsunset.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-03-19T22:01:47.000Z","updated_at":"2024-03-20T00:56:20.000Z","dependencies_parsed_at":"2024-11-08T08:54:29.706Z","dependency_job_id":"9c669023-76db-4844-9e85-92ddc553e391","html_url":"https://github.com/DCsunset/socks5-protocol","commit_stats":null,"previous_names":["dcsunset/socks5-protocol"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/DCsunset/socks5-protocol","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DCsunset%2Fsocks5-protocol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DCsunset%2Fsocks5-protocol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DCsunset%2Fsocks5-protocol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DCsunset%2Fsocks5-protocol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DCsunset","download_url":"https://codeload.github.com/DCsunset/socks5-protocol/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DCsunset%2Fsocks5-protocol/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32575110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"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":["encoding","network","nodejs","protocol","socks5","typescript"],"created_at":"2024-10-11T02:55:53.235Z","updated_at":"2026-05-03T15:33:31.888Z","avatar_url":"https://github.com/DCsunset.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# socks5-protocol\n\n[![NPM Version](https://img.shields.io/npm/v/socks5-protocol)](https://www.npmjs.com/package/socks5-protocol)\n[![GitHub License](https://img.shields.io/github/license/DCsunset/socks5-protocol)](https://github.com/DCsunset/socks5-protocol)\n\nA Node.js library (in TypeScript and ESM) to encode/decode messages in SOCKS5 protocol.\n\n\n## Installation\n\n```\nnpm i socks5-protocol\n```\n\n\n## Usage\n\nThe naming of message types mostly follows the [RFC 1928](https://www.rfc-editor.org/rfc/rfc1928).\n\nHere a list of implemented messages:\n\n- `AuthReq`: The message from client for auth method selection\n- `AuthResp`: Server's response to `AuthReq`\n- `ConnReq`: The message from client to request a connection, binding, or association\n- `ConnResp`: Server's response to `ConnReq`\n- `UdpReq`: Message for UDP communication between server and client\n\nAll the above message types have corresponding encoding and decoding functions.\nA `SockError` will be thrown when encoding/decoding fails.\n\n\n## License\n\nApache-2.0\n\n```\nCopyright 2024 DCsunset\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcsunset%2Fsocks5-protocol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcsunset%2Fsocks5-protocol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcsunset%2Fsocks5-protocol/lists"}