{"id":19908923,"url":"https://github.com/monkeydioude/capybara","last_synced_at":"2025-05-03T02:31:30.427Z","repository":{"id":57587590,"uuid":"130744553","full_name":"monkeydioude/capybara","owner":"monkeydioude","description":"Capybara, simple reverse-proxy (api gateway) for localhost services","archived":false,"fork":false,"pushed_at":"2025-02-28T15:00:24.000Z","size":13114,"stargazers_count":29,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-26T08:49:35.821Z","etag":null,"topics":["api-gateway","go","reverse-proxy"],"latest_commit_sha":null,"homepage":"","language":"Go","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/monkeydioude.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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":"2018-04-23T19:13:41.000Z","updated_at":"2025-02-28T15:00:28.000Z","dependencies_parsed_at":"2024-12-08T18:19:41.988Z","dependency_job_id":"3708e6fb-d420-42fe-b0cd-4af9a3df74f5","html_url":"https://github.com/monkeydioude/capybara","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeydioude%2Fcapybara","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeydioude%2Fcapybara/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeydioude%2Fcapybara/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeydioude%2Fcapybara/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monkeydioude","download_url":"https://codeload.github.com/monkeydioude/capybara/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252133716,"owners_count":21699585,"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":["api-gateway","go","reverse-proxy"],"created_at":"2024-11-12T21:13:51.378Z","updated_at":"2025-05-03T02:31:30.158Z","avatar_url":"https://github.com/monkeydioude.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"### CAPYBARAS ARE LOVE\n\n[![Build Status](https://travis-ci.org/monkeydioude/capybara.svg?branch=master)](https://travis-ci.org/monkeydioude/capybara)\n\nSimple Reverse-Proxy written in go.\n\nListen to a port and redirect any url matching a pattern to another port.\n\nI made this as a solution for hosting multiple services on the same \"url\" without relying on having a port straight in the URL. Some companies/organizations block any request to a url using a port as one of their security measures.\n\n**First parameter must be the path to your config json file**\n\nExample of config.json\n\n```\n{\n    \"proxy\": {\n        \"port\": 80\n    },\n    \"services\": [\n        {\n            \"id\": \"duck\",\n            \"pattern\": \"^/kwak/\",\n            \"port\": 9090\n        },\n        {\n            \"id\": \"stoned\",\n            \"method\": \"string\",\n            \"pattern\": \"/jesus\",\n            \"port\": 9091\n        }\n    ]    \n}\n\n```\n\nEntries in \"services\" by id:\n- \"duck\" will redirect any request caught on port 80, starting with \"/kwak\" to the port 9090 using a **regex** as matching (default) method.\n- \"stoned\" will redirect any request caught on port 80, starting with \"/jesus\" to the port 9091 using a **string** as matching method. This method compare the string with the beginning of the URI. It does not try to find the string inside the URI.\n\n**/ ! \\ On Linux (did not try on other system), capybara must be run with sudo if chosen proxy port is under 1024. It will fail otherwise.**\n\n\nThis project still needs:\n- Tests\n- Refacto (so it can be more easily tested)\n- Allow config refresh through config file\n- More methods of matching besides \"string\" and \"regex\"\n- Refacto \"RemovePattern\" behavior to a \"RedirectPath\" behavior\n\n\nThis project might need:\n- Redirect HTTPS ?\n- Better logging ?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonkeydioude%2Fcapybara","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonkeydioude%2Fcapybara","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonkeydioude%2Fcapybara/lists"}