{"id":19071912,"url":"https://github.com/cyansalt/whistle.try","last_synced_at":"2026-01-05T02:33:41.491Z","repository":{"id":58125266,"uuid":"530120548","full_name":"CyanSalt/whistle.try","owner":"CyanSalt","description":"Provide fallback functionality for local rules of whistle","archived":false,"fork":false,"pushed_at":"2024-05-22T06:10:05.000Z","size":133,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T21:58:57.866Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CyanSalt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-08-29T07:56:04.000Z","updated_at":"2024-05-22T06:10:09.000Z","dependencies_parsed_at":"2024-05-22T07:27:47.620Z","dependency_job_id":"05076b92-f4ab-4dc8-b870-ca3333451a9b","html_url":"https://github.com/CyanSalt/whistle.try","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"f3714f76bce569bcd16c08687a9bd23ee22539f7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyanSalt%2Fwhistle.try","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyanSalt%2Fwhistle.try/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyanSalt%2Fwhistle.try/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyanSalt%2Fwhistle.try/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CyanSalt","download_url":"https://codeload.github.com/CyanSalt/whistle.try/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245036122,"owners_count":20550661,"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":[],"created_at":"2024-11-09T01:32:30.209Z","updated_at":"2026-01-05T02:33:41.466Z","avatar_url":"https://github.com/CyanSalt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# whistle.try\n\n[![npm](https://img.shields.io/npm/v/whistle.try.svg)](https://www.npmjs.com/package/whistle.try)\n\nProvide fallback functionality for local rules of [whistle](https://github.com/avwo/whistle)\n\n## Installation\n\n```shell\nnpm install -g whistle.try\n```\n\n## Usage\n\nAdd `try://` in front of your local rules:\n\n```diff\n- example.com https://localhost:8000\n+ example.com try://https://localhost:8000\n```\n\nThe rule will automatically change to a transparent proxy when the corresponding local service is not started.\n\nFor automatic protocols, you can use any of the following forms:\n\n```hosts\nexample.com try:////localhost:8000\n# or\nexample.com try://localhost:8000\n```\n\nWhen using interpolation, you may need to adjust the position of the interpolation:\n\n```diff\n- example.com https://`localhost:8000${path}`\n+ example.com try://`https://localhost:8000${path}`\n```\n\n## How it works\n\nThis plugin will check the service status through HEAD requests before proxying real requests. Therefore, **it only works for HTTP/HTTPS requests**.\n\nAvoid using this plugin rule for non-local proxies as it may introduce a large overhead.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyansalt%2Fwhistle.try","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyansalt%2Fwhistle.try","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyansalt%2Fwhistle.try/lists"}