{"id":15107338,"url":"https://github.com/erguotou520/simple-web-proxy","last_synced_at":"2025-10-23T02:31:03.015Z","repository":{"id":57361162,"uuid":"118733577","full_name":"erguotou520/simple-web-proxy","owner":"erguotou520","description":"基于Nodejs的简单http_proxy，给ss(r)的socks服务做代理比较有用","archived":false,"fork":false,"pushed_at":"2019-01-28T03:49:39.000Z","size":5,"stargazers_count":10,"open_issues_count":2,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-30T16:52:46.713Z","etag":null,"topics":["node","nodejs","proxy","proxy-server","shadowsocks","shadowsocksr","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erguotou520.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}},"created_at":"2018-01-24T08:07:31.000Z","updated_at":"2024-12-26T14:26:25.000Z","dependencies_parsed_at":"2022-09-26T16:40:50.339Z","dependency_job_id":null,"html_url":"https://github.com/erguotou520/simple-web-proxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erguotou520%2Fsimple-web-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erguotou520%2Fsimple-web-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erguotou520%2Fsimple-web-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erguotou520%2Fsimple-web-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erguotou520","download_url":"https://codeload.github.com/erguotou520/simple-web-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237763855,"owners_count":19362310,"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":["node","nodejs","proxy","proxy-server","shadowsocks","shadowsocksr","socks5"],"created_at":"2024-09-25T21:23:41.332Z","updated_at":"2025-10-23T02:31:02.684Z","avatar_url":"https://github.com/erguotou520.png","language":"JavaScript","readme":"# 一个简单的http_proxy服务器\r\n\r\n基于Nodejs的简单http_proxy，给`ss(r)`的`socks`服务做代理比较有用。\r\n\r\n## 安装\r\n\r\n```bash\r\nyarn add simple-web-proxy\r\n```\r\n\r\n## 开发\r\n\r\n```js\r\nconst proxyServer = require('simple-web-proxy')\r\n// 开启\r\nconst server = proxyServer({\r\n  listenHost: 'localhost',\r\n  listenPort: 12333,\r\n  socksHost: 'localhost',\r\n  socksPort: 1080,\r\n  socksUsername,\r\n  socksPassword\r\n})\r\n// 关闭\r\nserver.close()\r\n// 事件监听\r\nserver.on('request:error', console.log)\r\nserver.on('request:success', console.log)\r\nserver.on('connect:error', console.log)\r\nserver.on('connect:success', console.log)\r\n```\r\n\r\n## 使用\r\n\r\n```bash\r\nexport http_proxy=\"http://127.0.0.1:12333\"\r\nexport https_proxy=\"http://127.0.0.1:12333\"\r\ncurl https://twitter.com\r\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferguotou520%2Fsimple-web-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferguotou520%2Fsimple-web-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferguotou520%2Fsimple-web-proxy/lists"}