{"id":13583597,"url":"https://github.com/oyyd/http-proxy-to-socks","last_synced_at":"2025-05-14T19:07:06.127Z","repository":{"id":16940762,"uuid":"80898165","full_name":"oyyd/http-proxy-to-socks","owner":"oyyd","description":"hpts(http-proxy-to-socks) is a nodejs client to convert socks proxy into http proxy","archived":false,"fork":false,"pushed_at":"2025-04-05T03:25:01.000Z","size":151,"stargazers_count":556,"open_issues_count":26,"forks_count":95,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-04-07T02:02:50.600Z","etag":null,"topics":["http-proxy","shadowsocks","socks5"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oyyd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2017-02-04T06:13:05.000Z","updated_at":"2025-04-05T03:25:05.000Z","dependencies_parsed_at":"2023-01-13T19:05:26.547Z","dependency_job_id":"cdf1b118-f0b2-45c2-9499-60d2d1e8a2c1","html_url":"https://github.com/oyyd/http-proxy-to-socks","commit_stats":{"total_commits":22,"total_committers":3,"mean_commits":7.333333333333333,"dds":"0.13636363636363635","last_synced_commit":"4747645f5f4af3985c27f17158f79eb42548c6a5"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oyyd%2Fhttp-proxy-to-socks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oyyd%2Fhttp-proxy-to-socks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oyyd%2Fhttp-proxy-to-socks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oyyd%2Fhttp-proxy-to-socks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oyyd","download_url":"https://codeload.github.com/oyyd/http-proxy-to-socks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248824655,"owners_count":21167344,"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","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":["http-proxy","shadowsocks","socks5"],"created_at":"2024-08-01T15:03:37.372Z","updated_at":"2025-04-14T04:57:26.534Z","avatar_url":"https://github.com/oyyd.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","others","\u003ca id=\"d03d494700077f6a65092985c06bf8e8\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"57b8e953d394bbed52df2a6976d98dfa\"\u003e\u003c/a\u003eSocks"],"readme":"# http-proxy-to-socks\n\n[![build](https://api.travis-ci.org/oyyd/http-proxy-to-socks.svg?branch=master)](https://travis-ci.org/oyyd/http-proxy-to-socks)\n\n[简介](https://github.com/oyyd/http-proxy-to-socks/blob/master/READMECN.md)\n\nhpts(http-proxy-to-socks) is a nodejs tool to convert SOCKS proxy into http proxy.\n\nMany clients support setting up http proxy to speed up network requests and for sometimes only SOCKS proxy is available to you. SOCKS proxy supports TCP so that it's possible to convert those requests from http proxy into SOCKS protocol. In this way, you can still keep the goodness provided by your SOCKS proxy(e.g. encryption).\n\n## Setup\n\n```\nnpm install -g http-proxy-to-socks\n```\n\nMake sure your nodejs version is greater than `4`.\n\n## Usage\n\n```\nhpts -s 127.0.0.1:1080 -p 8080\n```\n\nThis will start a process listening on `8080` as a http proxy. It will convert http requests into socks requests and send them to port `1080`. Please make sure your socks service is available at the corresponding port.\n\nOther options:\n\n```\nOptions:\n  -V, --version          output the version number\n  -s, --socks [socks]    specify your socks proxy host, default: 127.0.0.1:1080\n  -p, --port [port]      specify the listening port of http proxy server, default: 8080\n  -l, --host [host]      specify the listening host of http proxy server, default: 127.0.0.1\n  -c, --config [config]  read configs from file in json format\n  --level [level]        log level, vals: info, error\n  -h, --help             output usage information\n```\n\nYou can specify a `json` config file with `-c`:\n\n```json\n{\n  \"socks\": \"127.0.0.1:1080\",\n  \"port\": 8080\n}\n```\n\n## CONTRIBUTE\n\nPlease add more tests for corresponding features when you send a PR:\n\n```\nnpm run test\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foyyd%2Fhttp-proxy-to-socks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foyyd%2Fhttp-proxy-to-socks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foyyd%2Fhttp-proxy-to-socks/lists"}