{"id":15097776,"url":"https://github.com/popomore/koa-proxy","last_synced_at":"2025-10-08T02:31:46.822Z","repository":{"id":15361835,"uuid":"18092815","full_name":"popomore/koa-proxy","owner":"popomore","description":"Proxy middleware for koa","archived":true,"fork":false,"pushed_at":"2019-07-23T09:59:19.000Z","size":42,"stargazers_count":221,"open_issues_count":25,"forks_count":101,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-09T09:36:16.163Z","etag":null,"topics":["koa","proxy"],"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/popomore.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","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":"2014-03-25T07:59:25.000Z","updated_at":"2025-01-03T21:50:45.000Z","dependencies_parsed_at":"2022-08-30T17:40:49.296Z","dependency_job_id":null,"html_url":"https://github.com/popomore/koa-proxy","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/popomore/koa-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/popomore%2Fkoa-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/popomore%2Fkoa-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/popomore%2Fkoa-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/popomore%2Fkoa-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/popomore","download_url":"https://codeload.github.com/popomore/koa-proxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/popomore%2Fkoa-proxy/sbom","scorecard":{"id":741109,"data":{"date":"2025-08-11","repo":{"name":"github.com/popomore/koa-proxy","commit":"a1d6205817439a12a2e77fef0324ff8aa8ce0e3b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":3,"reason":"Found 9/26 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T17:29:50.810Z","repository_id":15361835,"created_at":"2025-08-22T17:29:50.811Z","updated_at":"2025-08-22T17:29:50.811Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278877640,"owners_count":26061488,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["koa","proxy"],"created_at":"2024-09-25T16:40:29.748Z","updated_at":"2025-10-08T02:31:46.580Z","avatar_url":"https://github.com/popomore.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# koa-proxy is been transfered to [edorivai](https://www.npmjs.com/~edorivai)\n\n# koa-proxy [![Build Status](https://travis-ci.org/popomore/koa-proxy.png?branch=master)](https://travis-ci.org/popomore/koa-proxy) [![Coverage Status](https://coveralls.io/repos/popomore/koa-proxy/badge.png?branch=master)](https://coveralls.io/r/popomore/koa-proxy?branch=master)\n\nProxy middleware for koa\n\n---\n\n## Install\n\n```\n$ npm install koa-proxy -S\n```\n\n## Usage\n\nWhen you request http://localhost:3000/index.js, it will fetch http://alicdn.com/index.js and return.\n\n```js\nvar koa = require('koa');\nvar proxy = require('koa-proxy');\nvar app = koa();\napp.use(proxy({\n  host: 'http://alicdn.com'\n}));\napp.listen(3000);\n```\n\nYou can proxy a specified url.\n\n```js\napp.get('index.js', proxy({\n  url: 'http://alicdn.com/index.js'\n}));\n```\n\nYou can specify a key/value object that can map your request's path to the other.\n\n```js\napp.get('index.js', proxy({\n  host: 'http://alicdn.com',\n  map: {\n    'index.js': 'index-1.js'\n  }\n}));\n```\n\nYou can specify a function that can map your request's path to the desired destination.\n\n```js\napp.get('index.js', proxy({\n  host: 'http://alicdn.com',\n  map: function(path) { return 'public/' + path; }\n}));\n```\n\nYou can specify match criteria to restrict proxy calls to a given path.\n\n```js\napp.use(proxy({\n  host:  'http://alicdn.com', // proxy alicdn.com...\n  match: /^\\/static\\//        // ...just the /static folder\n}));\n```\n\nOr you can use match to exclude a specific path.\n\n```js\napp.use(proxy({\n  host:  'http://alicdn.com',     // proxy alicdn.com...\n  match: /^(?!\\/dontproxy\\.html)/ // ...everything except /dontproxy.html\n}));\n```\n\nProxy won't send cookie to real server, you can set `jar = true` to send it.\n\n```js\napp.use(proxy({\n  jar: true,\n}));\n```\n\nProxy won't send 'foo' and 'bar' headers to real server, or recieve 'jar-jar' from real server.\n\n```js\napp.use(proxy({\n  suppressRequestHeaders: ['foo','bar'], // case-insensitive\n  suppressResponseHeaders: ['jar-jar'] // case-insensitive\n}));\n```\n\n## LICENSE\n\nCopyright (c) 2014 popomore. Licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpopomore%2Fkoa-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpopomore%2Fkoa-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpopomore%2Fkoa-proxy/lists"}