{"id":17159283,"url":"https://github.com/jamesmoriarty/forward-proxy","last_synced_at":"2025-04-06T17:13:16.037Z","repository":{"id":44560440,"uuid":"329300984","full_name":"jamesmoriarty/forward-proxy","owner":"jamesmoriarty","description":"Minimal HTTP(S) forward proxy using 150LOC and only standard libraries.","archived":false,"fork":false,"pushed_at":"2022-05-31T11:05:44.000Z","size":167,"stargazers_count":152,"open_issues_count":1,"forks_count":13,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-30T15:11:41.716Z","etag":null,"topics":["forward-proxy","forwardproxy","http","http-connect","http-proxy","https","proxy","proxy-server","ruby","tinycode"],"latest_commit_sha":null,"homepage":"http://www.jamesmoriarty.xyz/forward-proxy/","language":"Ruby","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/jamesmoriarty.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-13T12:27:19.000Z","updated_at":"2025-03-11T16:55:47.000Z","dependencies_parsed_at":"2022-09-09T09:11:31.017Z","dependency_job_id":null,"html_url":"https://github.com/jamesmoriarty/forward-proxy","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesmoriarty%2Fforward-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesmoriarty%2Fforward-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesmoriarty%2Fforward-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesmoriarty%2Fforward-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamesmoriarty","download_url":"https://codeload.github.com/jamesmoriarty/forward-proxy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247517921,"owners_count":20951719,"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":["forward-proxy","forwardproxy","http","http-connect","http-proxy","https","proxy","proxy-server","ruby","tinycode"],"created_at":"2024-10-14T22:13:52.656Z","updated_at":"2025-04-06T17:13:16.018Z","avatar_url":"https://github.com/jamesmoriarty.png","language":"Ruby","readme":"# ForwardProxy\n\n![Gem Version][3] ![Gem][1] ![Build Status][2]\n\nMinimal forward proxy using 150LOC and only standard libraries. Useful for development, testing, and teaching.\n\n```\n$ forward-proxy --binding 0.0.0.0 --port 3182 --threads 2\nI, [2021-07-04T10:33:32.947653 #1790]  INFO -- : Listening 0.0.0.0:3182\nI, [2021-07-04T10:33:32.998298 #1790]  INFO -- : CONNECT raw.githubusercontent.com:443 HTTP/1.1\n```\n\n## Features\n\n- Supports HTTPS `CONNECT` tunneling and HTTP `GET`, `POST`, and `HEAD` proxy request methods.\n- Configurable client connection thread pool and timeout.\n- `Transfer-Encoding: chunked` and response streaming.\n- Automated tests.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'forward-proxy'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install forward-proxy\n\n## Usage\n\n### CLI\n\n```\nforward-proxy\n```\n\n```\nUsage: forward-proxy [options]\n    -p, --port=PORT                  Bind to specified port. Default: 9292\n    -b, --binding=BINDING            Bind to the specified ip. Default: 127.0.0.1\n    -t, --timeout=TIMEOUT            Specify the connection timeout in seconds. Default: 300\n    -c, --threads=THREADS            Specify the number of client threads. Default: 128\n    -h, --help                       Prints this help.\n```\n\n### Library\n\n```ruby\nrequire 'forward_proxy'\n\nproxy = ForwardProxy::Server.new(\n  bind_address: \"127.0.0.1\",\n  bind_port: 3000\n)\n\nproxy.start\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/jamesmoriarty/forward-proxy. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/jamesmoriarty/forward-proxy/blob/master/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the ForwardProxy project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/jamesmoriarty/forward-proxy/blob/master/CODE_OF_CONDUCT.md).\n\n[1]: https://img.shields.io/gem/dt/forward-proxy\n[2]: https://github.com/jamesmoriarty/forward-proxy/workflows/Continuous%20Integration/badge.svg?branch=main\n[3]: https://img.shields.io/gem/v/forward-proxy\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesmoriarty%2Fforward-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamesmoriarty%2Fforward-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesmoriarty%2Fforward-proxy/lists"}