{"id":17172230,"url":"https://github.com/lucasconstantino/procsy","last_synced_at":"2025-04-13T16:11:50.212Z","repository":{"id":57330918,"uuid":"170915187","full_name":"lucasconstantino/procsy","owner":"lucasconstantino","description":"A proxy building helper with subdomain support","archived":false,"fork":false,"pushed_at":"2019-04-16T16:37:35.000Z","size":64,"stargazers_count":8,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T16:11:44.630Z","etag":null,"topics":["cli","oclif","proxy","proxy-server"],"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/lucasconstantino.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":"2019-02-15T19:10:13.000Z","updated_at":"2020-07-02T14:00:31.000Z","dependencies_parsed_at":"2022-08-29T10:00:28.584Z","dependency_job_id":null,"html_url":"https://github.com/lucasconstantino/procsy","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/lucasconstantino%2Fprocsy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasconstantino%2Fprocsy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasconstantino%2Fprocsy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasconstantino%2Fprocsy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucasconstantino","download_url":"https://codeload.github.com/lucasconstantino/procsy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248741198,"owners_count":21154255,"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":["cli","oclif","proxy","proxy-server"],"created_at":"2024-10-14T23:36:27.673Z","updated_at":"2025-04-13T16:11:50.185Z","avatar_url":"https://github.com/lucasconstantino.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# procsy\n\nA proxy building helper with subdomain support.\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/procsy.svg)](https://npmjs.org/package/procsy)\n[![Downloads/week](https://img.shields.io/npm/dw/procsy.svg)](https://npmjs.org/package/procsy)\n[![License](https://img.shields.io/npm/l/procsy.svg)](https://github.com/lucasconstantino/procsy/blob/master/package.json)\n\n\u003c!-- toc --\u003e\n\n# Usage\n\n```sh\nnpm install -g procsy\n\nprocsy -t http://google.com\n```\n\n## Subdomains\n\n\u003e Subdomain proxying in the localhost requires you [configure the `hosts` file](https://stackoverflow.com/questions/1078193/hosts-file-and-multiple-sub-domains) properly.\n\nTo proxy subdomain based requests, you can specify source subdomains and their targets in the following syntax:\n\n`[subdomain],[target]`\n\n## Examples:\n\n### 1. Single subdomain\n\n#### `/etc/hosts`:\n\n```\n127.0.0.1 app.dev api.app.dev\n```\n\n#### command:\n\n```sh\nprocsy -t api,http://my-external-api.com\n```\n\n#### outcome:\n\n| from                        | to                                |\n| --------------------------- | --------------------------------- |\n| `http://api.local.dev/path` | `http://my-external-api.com/path` |\n| `http://local.dev/path`     | `404`                             |\n\n### 2. Multiple subdomains\n\n#### `/etc/hosts`:\n\n```\n127.0.0.1 app.dev api.app.dev tracking.app.dev\n```\n\n#### command:\n\n```sh\nprocsy -t api,http://my-external-api.com tracking,http://analytics.com\n```\n\n#### outcome:\n\n| from                             | to                                |\n| -------------------------------- | --------------------------------- |\n| `http://api.local.dev/path`      | `http://my-external-api.com/path` |\n| `http://tracking.local.dev/path` | `http://analytics.com/path`       |\n| `http://local.dev/path`          | `404`                             |\n\n### 3. Subdomain \u0026 domain\n\n#### `/etc/hosts`:\n\n```\n127.0.0.1 app.dev api.app.dev\n```\n\n#### command:\n\n```sh\nprocsy -t api,http://my-external-api.com *,http://my-app.com\n```\n\n#### outcome:\n\n| from                        | to                                |\n| --------------------------- | --------------------------------- |\n| `http://api.local.dev/path` | `http://my-external-api.com/path` |\n| `http://local.dev/path`     | `http://my-app.com/path`          |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasconstantino%2Fprocsy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasconstantino%2Fprocsy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasconstantino%2Fprocsy/lists"}