{"id":34709240,"url":"https://github.com/daack/nsq-rocket","last_synced_at":"2026-05-27T09:34:19.106Z","repository":{"id":65465828,"uuid":"72940673","full_name":"daack/nsq-rocket","owner":"daack","description":"Simple framework to handle request response pattern on nsq.io","archived":false,"fork":false,"pushed_at":"2016-12-01T08:42:21.000Z","size":19,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-10T09:20:50.732Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/nsq-rocket","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/daack.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-11-05T17:02:34.000Z","updated_at":"2019-02-21T03:48:51.000Z","dependencies_parsed_at":"2023-01-25T08:45:33.755Z","dependency_job_id":null,"html_url":"https://github.com/daack/nsq-rocket","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/daack/nsq-rocket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daack%2Fnsq-rocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daack%2Fnsq-rocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daack%2Fnsq-rocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daack%2Fnsq-rocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daack","download_url":"https://codeload.github.com/daack/nsq-rocket/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daack%2Fnsq-rocket/sbom","scorecard":{"id":316111,"data":{"date":"2025-08-11","repo":{"name":"github.com/daack/nsq-rocket","commit":"11d781923f36b2331d748c0f0922a4d05e18f2ba"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/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":"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":"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":"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":"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":"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":"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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 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-18T00:13:00.237Z","repository_id":65465828,"created_at":"2025-08-18T00:13:00.237Z","updated_at":"2025-08-18T00:13:00.237Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33560727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"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":[],"created_at":"2025-12-24T23:53:34.565Z","updated_at":"2026-05-27T09:34:19.101Z","avatar_url":"https://github.com/daack.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NSQ Rocket :rocket:\n\nSimple framework to handle request response pattern on nsq.io\n\n* [Install](#install)\n* [Example](#example)\n* [API](#api)\n* [Events](#events)\n\n\u003ca name=\"install\"\u003e\u003c/a\u003e\n## Install\n\nTo install nsq-rocket, simply use npm:\n\n```\nnpm install nsq-rocket --save\n```\n\n\u003ca name=\"example\"\u003e\u003c/a\u003e\n## Example\n\n```javascript\nvar Rocket = require('nsq-rocket');\n\nvar rocket = Rocket({\n  serviceId: 'id',\n  loggerLevel: 'info',\n  writer: {\n    //nsqjs writer configuration\n    host: '127.0.0.1',\n    port: 4150\n  },\n  reader: {\n    //nsqjs reader configuration\n    lookupdHTTPAddresses: '127.0.0.1:4161'\n  }\n});\n\nrocket\n.topic('sample_topic')\n.landing('test_channel', 'key', function(msg, done) {\n  console.log(msg.content)\n  done(null, 'reply')\n})\n.landing('test_channel', {pattern: 'object'}, function(msg, done) {\n  console.log(msg.content)\n  done(null, 'reply')\n})\n//Default cb for this topic if no key found\n.default(function(msg, done) {\n  console.log(msg.content)\n  done(null, 'reply')\n})\n.topic('change_topic')\n//No key landing\n.landing('test_channel', function(msg, done) {\n  console.log(msg.content)\n  done(null, 'reply')\n});\n\nrocket\n.topic('sample_topic')\n.launch('message', 'key', function(err, res) {\n  if (err) throw new Error(err)\n  console.log(res.content)\n  res.finish()\n})\n.launch('message', {pattern: 'object'}, function(err, res) {\n  if (err) throw new Error(err)\n  console.log(res.content)\n  res.finish()\n})\n//No Routing Key\n.launch('message', function(err, res) {\n  if (err) throw new Error(err)\n  console.log(res.content)\n  res.finish()\n})\n```\n\n\u003ca name=\"api\"\u003e\u003c/a\u003e\n## API\n\n  * \u003ca href=\"#constructor\"\u003e\u003ccode\u003e\u003cb\u003eRocket()\u003c/b\u003e\u003c/code\u003e\u003c/a\u003e\n  * \u003ca href=\"#topic\"\u003e\u003ccode\u003einstance.\u003cb\u003etopic()\u003c/b\u003e\u003c/code\u003e\u003c/a\u003e\n  * \u003ca href=\"#landing\"\u003e\u003ccode\u003einstance.\u003cb\u003elanding()\u003c/b\u003e\u003c/code\u003e\u003c/a\u003e\n  * \u003ca href=\"#launch\"\u003e\u003ccode\u003einstance.\u003cb\u003elaunch()\u003c/b\u003e\u003c/code\u003e\u003c/a\u003e\n  * \u003ca href=\"#default\"\u003e\u003ccode\u003einstance.\u003cb\u003edefault()\u003c/b\u003e\u003c/code\u003e\u003c/a\u003e\n\n-------------------------------------------------------\n\u003ca name=\"constructor\"\u003e\u003c/a\u003e\n### Rocket([opts])\n\nCreates a new instance of Rocket.\n\nOptions are:\n\n* `serviceId`\n* `loggerLevel` ['silent', 'info', 'warn', 'error', 'fatal']\n* `reader` (nsqjs reader)\n* `writer` (nsqjs writer)\n\n-------------------------------------------------------\n\u003ca name=\"topic\"\u003e\u003c/a\u003e\n### instance.topic(topic)\n\nChange the current topic\n\n-------------------------------------------------------\n\u003ca name=\"landing\"\u003e\u003c/a\u003e\n### instance.landing([channel, pattern, cb])\n\nSet a new listener for NSQ\n\n* `channel`, you can put your cb here if you want a random channel and no pattern\n* `pattern`, you can put your cb here if you want no pattern\n\n-------------------------------------------------------\n\u003ca name=\"launch\"\u003e\u003c/a\u003e\n### instance.launch(message,[pattern, cb])\n\nPublish a new message to NSQ\n\n* `pattern`, publish with a specific pattern\n* `cb`, if you want listen for reply\n\n-------------------------------------------------------\n\u003ca name=\"default\"\u003e\u003c/a\u003e\n### instance.default(cb)\n\nSet a default cb for the current topic\n\n\u003ca name=\"events\"\u003e\u003c/a\u003e\n## Events\n\n  * \u003ca href=\"#reader\"\u003e\u003ccode\u003e\u003cb\u003ereader\u003c/b\u003e\u003c/code\u003e\u003c/a\u003e\n  * \u003ca href=\"#writer\"\u003e\u003ccode\u003e\u003cb\u003ewriter\u003c/b\u003e\u003c/code\u003e\u003c/a\u003e\n\n-------------------------------------------------------\n\u003ca name=\"reader\"\u003e\u003c/a\u003e\n### instance.reader.on(event, data)\n\n  * discard -\u003e message\n  * error -\u003e error\n  * connected -\u003e {host: host, port: port}\n  * closed -\u003e {host: host, port: port}\n  * replier_error -\u003e error\n\n-------------------------------------------------------\n\u003ca name=\"writer\"\u003e\u003c/a\u003e\n### instance.writer.on(event, data)\n\n  * ready\n  * closed\n  * error -\u003e error\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaack%2Fnsq-rocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaack%2Fnsq-rocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaack%2Fnsq-rocket/lists"}