{"id":14989582,"url":"https://github.com/posquit0/koa-legit","last_synced_at":"2026-01-25T16:31:22.154Z","repository":{"id":143882804,"uuid":"107000053","full_name":"posquit0/koa-legit","owner":"posquit0","description":":traffic_light: Koa middleware to validate and sanitize HTTP request","archived":false,"fork":false,"pushed_at":"2018-03-12T07:31:26.000Z","size":25,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-18T09:38:20.183Z","etag":null,"topics":["koa","koa-middleware","koa-validator","node-module","node-validator","sanitizer","validation","validator"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/posquit0.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},"funding":{"github":"posquit0","patreon":"posquit0","ko_fi":"posquit0","custom":"https://www.paypal.me/posquit0"}},"created_at":"2017-10-15T09:46:44.000Z","updated_at":"2023-09-08T17:31:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"690cbda5-6f66-43dc-a9d7-ad1154ad3f10","html_url":"https://github.com/posquit0/koa-legit","commit_stats":{"total_commits":43,"total_committers":1,"mean_commits":43.0,"dds":0.0,"last_synced_commit":"93348ecc509723abafbc86151babd9893f0f882e"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/posquit0/koa-legit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posquit0%2Fkoa-legit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posquit0%2Fkoa-legit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posquit0%2Fkoa-legit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posquit0%2Fkoa-legit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/posquit0","download_url":"https://codeload.github.com/posquit0/koa-legit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posquit0%2Fkoa-legit/sbom","scorecard":{"id":741645,"data":{"date":"2025-08-11","repo":{"name":"github.com/posquit0/koa-legit","commit":"93348ecc509723abafbc86151babd9893f0f882e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"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":"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":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","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":"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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"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"}}]},"last_synced_at":"2025-08-22T17:36:52.995Z","repository_id":143882804,"created_at":"2025-08-22T17:36:52.995Z","updated_at":"2025-08-22T17:36:52.995Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28755522,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T13:59:49.818Z","status":"ssl_error","status_checked_at":"2026-01-25T13:59:33.728Z","response_time":113,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","koa-middleware","koa-validator","node-module","node-validator","sanitizer","validation","validator"],"created_at":"2024-09-24T14:18:36.238Z","updated_at":"2026-01-25T16:31:22.135Z","avatar_url":"https://github.com/posquit0.png","language":"JavaScript","funding_links":["https://github.com/sponsors/posquit0","https://patreon.com/posquit0","https://ko-fi.com/posquit0","https://www.paypal.me/posquit0"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/posquit0/koa-legit\" title=\"Koa Legit\"\u003e\n    \u003cimg alt=\"Koa Legit\" src=\"http://www.hey.fr/fun/emoji/twitter/en/icon/twitter/706-emoji_twitter_horizontal_traffic_light.png\" width=\"220px\" /\u003e\n  \u003c/a\u003e\n  \u003cbr /\u003e\n  \u003ch1\u003eKoa Legit\u003c/h1\u003e\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n  :traffic_light: Koa middleware to validate and sanitize HTTP request\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://circleci.com/gh/posquit0/koa-legit\"\u003e\n    \u003cimg alt=\"CircleCI\" src=\"https://circleci.com/gh/posquit0/koa-legit.svg?style=shield\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://coveralls.io/github/posquit0/koa-legit\"\u003e\n    \u003cimg src=\"https://coveralls.io/repos/github/posquit0/koa-legit/badge.svg\" alt='Coverage Status' /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://badge.fury.io/js/koa-legit\"\u003e\n    \u003cimg alt=\"npm version\" src=\"https://badge.fury.io/js/koa-legit.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/koa-legit\"\u003e\n    \u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/dt/koa-legit.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://david-dm.org/posquit0/koa-legit\"\u003e\n    \u003cimg alt=\"npm\" src=\"https://img.shields.io/david/posquit0/koa-legit.svg?style=flat-square\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://opensource.org/licenses/mit-license.php\"\u003e\n    \u003cimg alt=\"MIT License\" src=\"https://badges.frapsoft.com/os/mit/mit.svg?v=103\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/ellerbrock/open-source-badge/\"\u003e\n    \u003cimg alt=\"Open Source Love\" src=\"https://badges.frapsoft.com/os/v1/open-source.svg?v=103\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\n**Koa Legit** is a Koa middleware to easily validate HTTP request data including headers, cookies, body, query strings, and url params. It's based on [validator](https://github.com/chriso/validator.js).\n\n- It was written for us on [**OMNIOUS**](http://www.omnious.com) which provides fashion A.I API service.\n\n\n## Installation\n\n```bash\n# NPM\n$ npm install --save koa-legit\n# Yarn\n$ yarn add koa-legit\n```\n\n\n## Example\n\n```node\nconst Koa = require('koa');\nconst bodyParser = require('koa-bodyparser');\nconst legit = require('koa-legit');\nconst Router = require('koa-router');\n\n\nconst app = new Koa();\n\n// Set middlewares\napp.use(bodyParser({ enableTypes: ['json', 'form'] }));\napp.use(legit());\n\n\n// Bootstrap application router\nconst router = new Roter();\napp.use(router.routes());\napp.use(router.allowedMethods());\n\napp.listen(3000);\n```\n\n\n## API\n\nTo be updated\n\n\n## Contributing\n\nThis project follows the [**Contributor Covenant**](http://contributor-covenant.org/version/1/4/) Code of Conduct.\n\n#### Bug Reports \u0026 Feature Requests\n\nPlease use the [issue tracker](https://github.com/posquit0/koa-legit/issues) to report any bugs or ask feature requests.\n\n\n## Self Promotion\n\nLike koa-legit? Follow the repository on [GitHub](https://github.com/posquit0/koa-legit). And if you're feeling especially charitable, follow [posquit0](https://posquit0.com) on [GitHub](https://github.com/posquit0).\n\n\n## Contact\n\nIf you have any questions, feel free to join me at [`#posquit0` on Freenode](irc://irc.freenode.net/posquit0) and ask away. Click [here](https://kiwiirc.com/client/irc.freenode.net/posquit0) to connect.\n\n\n## License\n\nProvided under the terms of the [MIT License](https://github.com/posquit0/koa-legit/blob/master/LICENSE).\n\nCopyright © 2017, [Byungjin Park](http://www.posquit0.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposquit0%2Fkoa-legit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fposquit0%2Fkoa-legit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposquit0%2Fkoa-legit/lists"}