{"id":15294698,"url":"https://github.com/m-esm/node-multi-branch","last_synced_at":"2025-06-12T19:05:56.830Z","repository":{"id":43989656,"uuid":"225950264","full_name":"m-esm/node-multi-branch","owner":"m-esm","description":"It runs an instance per branch of your node project repository. and let you access different branches by setting a header key","archived":false,"fork":false,"pushed_at":"2022-12-11T16:00:46.000Z","size":460,"stargazers_count":5,"open_issues_count":6,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-16T21:48:42.931Z","etag":null,"topics":["branch","git","node","nodejs","reverse-proxy","stage","staging"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/m-esm.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-12-04T20:22:13.000Z","updated_at":"2021-12-10T05:27:40.000Z","dependencies_parsed_at":"2023-01-27T02:30:18.673Z","dependency_job_id":null,"html_url":"https://github.com/m-esm/node-multi-branch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/m-esm/node-multi-branch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-esm%2Fnode-multi-branch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-esm%2Fnode-multi-branch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-esm%2Fnode-multi-branch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-esm%2Fnode-multi-branch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m-esm","download_url":"https://codeload.github.com/m-esm/node-multi-branch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-esm%2Fnode-multi-branch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259519776,"owners_count":22870365,"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":["branch","git","node","nodejs","reverse-proxy","stage","staging"],"created_at":"2024-09-30T17:06:10.799Z","updated_at":"2025-06-12T19:05:56.806Z","avatar_url":"https://github.com/m-esm.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"```___\n         /\\  \\         _____\n        |::\\  \\       /::\\  \\\n        |:|:\\  \\     /:/\\:\\  \\\n      __|:|\\:\\  \\   /:/ /::\\__\\\n     /::::|_\\:\\__\\ /:/_/:/\\:|__|\n     \\:\\~~\\  \\/__/ \\:\\/:/ /:/  /\n      \\:\\  \\        \\::/_/:/  /\n       \\:\\  \\        \\:\\/:/  /\n        \\:\\__\\        \\::/  /\n         \\/__/         \\/__/\n```\n\n### Multi Branch\n\ndid you ever want to run more than one branch of your code at a time? and have the ability to switch between them by simply setting an HTTP header key named 'branch'\n\nTo easily use multi-branch install [ModHeader extension for chrome](https://chrome.google.com/webstore/detail/modheader/idgpnmonknjnojddfkpgkljpfnnfcklj?hl=en). you can set the \"branch\" header key with this tool.\n\n\n\n### Installation\n\n1. install the package\n\n```\nnpm install multi-branch --save\n```\n\n2. add this command to your existing npm start command\n\n```\nmulti-branch --only=staging --branches=master,stage --default-branch=stage \u0026\u0026\n```\n\nexample (package.json):\n\n```json\n{\n  \"name\": ...,\n  \"version\": ...,\n  \"repository\": ...,\n  \"author\": ...,\n  \"license\": ...,\n  \"scripts\": {\n    \"start\": \"multi-branch --only=staging --branches=master,stage --default-branch=stage \u0026\u0026 node app.js\"\n  },\n  \"dependencies\": {\n    ...\n  }\n}\n```\n\n**arguments:**\n\n```\n    -p,--port to specify port MultiBranch will listen to\n\n    --port-env to specify project port env name\n\n    --default-branch to specify default branch for reverse proxy\n\n    --only to specify multi branch run env\n\n    -b,--branch comma separated branch names to run\n\n    -h,--help to view help\n```\n\n### Maintenance routes\n\n#### [GET] /multi-branch\n\nthis route will be available at top of reverse proxy server and shows you information about branch processes\n\n#### [GET] /multi-branch/stats\n\nget last 100 process usage stat\n\n#### [GET] /multi-branch/logs\n\n![Multi-Branch logs](https://raw.githubusercontent.com/m-esm/node-multi-branch/master/screenshot-logs.png \"Multi-Branch logs\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-esm%2Fnode-multi-branch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm-esm%2Fnode-multi-branch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-esm%2Fnode-multi-branch/lists"}