{"id":24493068,"url":"https://github.com/open-node/open-router","last_synced_at":"2026-04-14T17:31:53.471Z","repository":{"id":57315142,"uuid":"64118226","full_name":"open-node/open-router","owner":"open-node","description":null,"archived":false,"fork":false,"pushed_at":"2017-12-20T04:26:19.000Z","size":39,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T10:29:38.178Z","etag":null,"topics":["http-router","resitfy-router","restify","route","router"],"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/open-node.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":"2016-07-25T08:42:19.000Z","updated_at":"2018-05-23T00:23:01.000Z","dependencies_parsed_at":"2022-09-18T20:51:31.373Z","dependency_job_id":null,"html_url":"https://github.com/open-node/open-router","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/open-node/open-router","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-node%2Fopen-router","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-node%2Fopen-router/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-node%2Fopen-router/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-node%2Fopen-router/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/open-node","download_url":"https://codeload.github.com/open-node/open-router/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-node%2Fopen-router/sbom","scorecard":{"id":708459,"data":{"date":"2025-08-11","repo":{"name":"github.com/open-node/open-router","commit":"9709f85be5103206cf2e9e6c7b9babdb80a3294b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/23 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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":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":"Vulnerabilities","score":0,"reason":"58 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-mh2h-6j8q-x246","Warn: Project is vulnerable to: GHSA-5q88-cjfq-g2mh","Warn: Project is vulnerable to: GHSA-xp63-6vf5-xf3v","Warn: Project is vulnerable to: GHSA-rq8g-5pc5-wrhr","Warn: Project is vulnerable to: GHSA-582f-p4pg-xc74","Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-qrmc-fj45-qfc2","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-qh2h-chj9-jffq","Warn: Project is vulnerable to: GHSA-q42p-pg8m-cqh6","Warn: Project is vulnerable to: GHSA-w457-6q6x-cgp9","Warn: Project is vulnerable to: GHSA-62gr-4qp9-h98f","Warn: Project is vulnerable to: GHSA-f52g-6jhx-586p","Warn: Project is vulnerable to: GHSA-2cf5-4w76-r9qv","Warn: Project is vulnerable to: GHSA-3cqr-58rm-57f8","Warn: Project is vulnerable to: GHSA-g9r4-xpmj-mj65","Warn: Project is vulnerable to: GHSA-q2c6-c6pm-g3gh","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-44pw-h2cw-w3vq","Warn: Project is vulnerable to: GHSA-jp4x-w63m-7wgm","Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp","Warn: Project is vulnerable to: GHSA-4hpf-3wq7-5rpr","Warn: Project is vulnerable to: GHSA-f522-ffg8-j8r6","Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-282f-qqgm-c34q","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-8hfj-j24r-96c4","Warn: Project is vulnerable to: GHSA-wc69-rhjr-hc9g","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: GHSA-2m39-62fm-q8r3","Warn: Project is vulnerable to: GHSA-mf6x-7mm4-x2g7","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-cf4h-3jhx-xvhq","Warn: Project is vulnerable to: GHSA-qgmg-gppg-76g5"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T07:26:41.338Z","repository_id":57315142,"created_at":"2025-08-22T07:26:41.338Z","updated_at":"2025-08-22T07:26:41.338Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31808505,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T11:13:53.975Z","status":"ssl_error","status_checked_at":"2026-04-14T11:13:53.299Z","response_time":153,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["http-router","resitfy-router","restify","route","router"],"created_at":"2025-01-21T19:19:02.151Z","updated_at":"2026-04-14T17:31:53.448Z","avatar_url":"https://github.com/open-node.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# open-router\n==================\n\nA router for restify or framework based on restify.\n\n[![Build status](https://api.travis-ci.org/open-node/open-router.svg?branch=master)](https://travis-ci.org/open-node/open-router)\n[![codecov](https://codecov.io/gh/open-node/open-router/branch/master/graph/badge.svg)](https://codecov.io/gh/open-node/open-router)\n\n## Node version\n\u003cpre\u003e \u003e= 6 \u003c/pre\u003e\n\n## Usage\n\u003cpre\u003enpm install open-router --save\u003c/pre\u003e\n\n## Example router definition\n```js\nvar Router = require('open-router');\n\n/**\n * @return router instance\n *\n * @params server\n *     restify.createServer() return result\n * @params controllers\n *     All controllers object,\n *      {\n *        controllerName: {\n *          methodName: method\n *        }\n *      }\n * @params defaultCtl\n *    {\n *      list: function() {},\n *      modify: function() {},\n *      detail: function() {},\n *      remove: function() {},\n *      add: function() {}\n *    }\n * @params opts\n *          apis The uri list all rest api;\n */\nvar router = Router(server, controllers, defaultCtl, opts);\n\n//or chainning call, without argument order.\n// var router = Router\n//                .server(server)\n//                .ctls(controllers)\n//                .defaults(defaultCtl)\n//                .opts(opts)\n//                .exec()\n\n```\n\n## Methods\n\n### router.get(routePath, actionPath)\n\nHTTP.verb `GET`\n\nEquivalent to\n\nGET: /routePath\n\n\n__Arguments__\n* `routePath` - uri ，eg `/users/:id` or `/users/:userId/books`\n* `actionPath` - controllerMethodPath，eg.`user#detail` { user: detail: function() {} }\n\n__Example__\n```js\nrouter.get('/users', 'user#list'); When request `/users` by GET, user controller's `list` method will be called.\n\n```\n\n### router.put(routePath, actionPath)\n\nHTTP.verb `PUT`\n\nEquivalent to\n\nPUT: /routePath\n\n\n__Arguments__\n* `routePath` - uri ，eg `/users/:id` or `/users/:userId/books`\n* `actionPath` - controllerMethodPath，eg.`user#detail` { user: detail: function() {} }\n\n__Example__\n```js\nrouter.get('/users/:id', 'user#modify'); When request `/users/:id` by PUT, user controller's `modify` method will be called.\n\n```\n\n### router.patch(routePath, actionPath)\n\nHTTP.verb `PATCH`\n\nEquivalent to\n\nPATCH: /routePath\n\n### router.post(routePath, actionPath)\n\nHTTP.verb `POST`\n\nEquivalent to\n\nPOST: /routePath\n\n\n### router.del(routePath, actionPath)\n\nHTTP.verb `DELETE`\n\nEquivalent to\n\nDELETE: /routePath\n\n### router.resource(name, routePath)\n\nHTTP.verb `DELETE` or `GET` or `PATCH` or `PUT`\n\nEquivalent to\n\nPOST: /routePath\nPUT: /routePath/:id\nPATCH: /routePath/:id\nGET: /routePath\nGET: /routePath/:id\nDELETE: /routePath/:id\n\n__Arguments__\n\n* `name` - Response's name. eg: `user`, `book`, `order`\n* `routePath` - optional, uri\n\n\n__Example__\n\n```js\nrouter.resource('user')\n\n// Equivalent to\n// router.get('/users', 'user#list');\n// router.get('/users/:id', 'user#detail');\n// router.put('/users/:id', 'user#modify');\n// router.patch('/users/:id', 'user#modify');\n// router.delete('/users/:id', 'user#remove');\n// router.post('/users', 'user#add');\n```\n\n### router.model(name, routePath)\n\nHTTP.verb `DELETE` or `GET` or `PATCH` or `PUT`\n\nEquivalent to\n\nPUT: /routePath\nPATCH: /routePath\nGET: /routePath\nDELETE: /routePath\n\n\n__Arguments__\n\n* `name` - Response's name. eg: `user`, `book`, `order`\n* `routePath` - optional, uri\n\n__Example__\n\n```js\nrouter.model('user')\n\n// Equivalent to\n// router.get('/users/:id', 'user#detail');\n// router.put('/users/:id', 'user#modify');\n// router.patch('/users/:id', 'user#modify');\n// router.delete('/users/:id', 'user#remove');\n\nrouter.model('user', '/systems/users')\n\n// Equivalent to\n// router.get('/systems/users/:id', 'user#detail');\n// router.put('/systems/users/:id', 'user#modify');\n// router.patch('/systems/users/:id', 'user#modify');\n// router.delete('/systems/users/:id', 'user#remove');\n```\n\n### router.collection(name, routePath)\n\nHTTP.verb `DELETE` or `GET` or `PATCH` or `PUT`\n\nEquivalent to\n\n// List the resource\nGET: /routePath\n// Create a resource\nPOST: /routePath\n\n\n__Arguments__\n\n* `name` - Response's name. eg: `user`, `book`, `order`\n* `routePath` - optional, uri\n* `parent` - optional, The resource's parent resource name\n\n__Example__\n\n```js\nrouter.collection('book', null, 'user')\n\n// Equivalent to\n\n// router.get('/users/:userId/books', 'user#books');\n// router.post('/users/:userId/books', 'user#addBook');\n\nrouter.collection('book', '/users/:creatorId/books', 'user')\n\n// Equivalent to\n\n// router.get('/users/:creatorId/books', 'user#books');\n// router.post('/users/:creatorId/books', 'user#addBook');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-node%2Fopen-router","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopen-node%2Fopen-router","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-node%2Fopen-router/lists"}