{"id":41518953,"url":"https://github.com/nodecraft/spawnpoint-nats","last_synced_at":"2026-01-23T20:44:29.643Z","repository":{"id":20565870,"uuid":"90282732","full_name":"nodecraft/spawnpoint-nats","owner":"nodecraft","description":"NATS Plugin for Spawnpoint","archived":false,"fork":false,"pushed_at":"2026-01-21T23:42:28.000Z","size":426,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-01-22T12:50:57.049Z","etag":null,"topics":["nats","spawnpoint"],"latest_commit_sha":null,"homepage":"https://github.com/nodecraft/spawnpoint","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/nodecraft.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-05-04T15:59:55.000Z","updated_at":"2026-01-21T23:42:28.000Z","dependencies_parsed_at":"2023-02-16T22:15:58.080Z","dependency_job_id":"97b9c5e9-b4e0-459f-a8e2-5cc247b346b2","html_url":"https://github.com/nodecraft/spawnpoint-nats","commit_stats":{"total_commits":71,"total_committers":11,"mean_commits":6.454545454545454,"dds":0.6901408450704225,"last_synced_commit":"05b08dbcf8e6bf5dd7caae447215534e3422e091"},"previous_names":["nodecraft/appframe-nats.js"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nodecraft/spawnpoint-nats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodecraft%2Fspawnpoint-nats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodecraft%2Fspawnpoint-nats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodecraft%2Fspawnpoint-nats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodecraft%2Fspawnpoint-nats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodecraft","download_url":"https://codeload.github.com/nodecraft/spawnpoint-nats/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodecraft%2Fspawnpoint-nats/sbom","scorecard":{"id":692361,"data":{"date":"2025-08-11","repo":{"name":"github.com/nodecraft/spawnpoint-nats","commit":"b4daa7278babf56cf8e596b6212383986a91dd4a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"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":"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":2,"reason":"Found 2/10 approved changesets -- score normalized to 2","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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/nodecraft/spawnpoint-nats/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/nodecraft/spawnpoint-nats/test.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/test.yml:19","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"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":"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":"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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 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"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv"],"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-22T02:35:03.444Z","repository_id":20565870,"created_at":"2025-08-22T02:35:03.444Z","updated_at":"2025-08-22T02:35:03.444Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28699807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T17:25:48.045Z","status":"ssl_error","status_checked_at":"2026-01-23T17:25:47.153Z","response_time":59,"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":["nats","spawnpoint"],"created_at":"2026-01-23T20:44:29.584Z","updated_at":"2026-01-23T20:44:29.631Z","avatar_url":"https://github.com/nodecraft.png","language":"JavaScript","readme":"# spawnpoint-nats.js\n[NATS](https://nats.io/) Plugin for [Spawnpoint](https://github.com/nodecraft/spawnpoint) on NPM\n\n[![npm version](https://badge.fury.io/js/spawnpoint-nats.svg)](https://badge.fury.io/js/spawnpoint-nats)\n[![dependencies Status](https://david-dm.org/nodecraft/spawnpoint-nats/status.svg)](https://david-dm.org/nodecraft/spawnpoint-nats)\n[![Actions Status](https://github.com/nodecraft/spawnpoint-nats/workflows/Test/badge.svg)](https://github.com/nodecraft/spawnpoint-nats/actions?workflow=Test)\n[![Greenkeeper badge](https://badges.greenkeeper.io/nodecraft/spawnpoint-nats.svg)](https://greenkeeper.io/)\n\n## Installation\nMake sure to install NATS and the plugin for Spawnpoint NATS separately. NATS is treated as a peer dependency so you can change version separately.\n```npm i nats spawnpoint-nats```\n\n## NATS Versions\n- This module's version `2.x.x` is designed for a NATS server running `2.x`\n- This module's version `1.x.x` is designed for a NATS server running `1.x`\n\n## API\nThis api is mounted at `app.nats` to access these methods:\n\n##### `app.nats.publish(subject, message, callback)`\nSends a message to a subscriber. Expects no response. Callback issued when message is sent to the NATS server. No guarantee of receipt.\n - `subject` *string* - subject to publish message to\n - `message` *object|array|string|buffer* - Message body for published message\n - `callback` *function* - Optional callback fired when sent\n\n##### `app.nats.request(subject, message, options, callback, updateCallback)`\nSends a message to a subscriber with the expectation of at least one reply. Main callback only listens for the final reply. Can get updates to provide realtime stats/progress and/or acknowledgments to reset timeouts. Returns event emitter for `update`, `ack`, `response`, \u0026 `timeout` events.\n\n - `subject` *string* - subject to publish message to\n - `message` *object|array|string|buffer* - Message body for published message\n - `options` *object* - Options passed to `PUB` [method](http://nats.io/documentation/internals/nats-protocol/#PUB).\n   - `max` *number* - Number of replies to receive before unsubscribing from replies, optional\n   - `timeout` *number* - Number of ms to wait until firing a timeout error. If omitted it will default to config settings. Setting to falsey value will disable timeout\n - `callback` *function* - Optional callback fired when final response is sent. Callback includes two arguments\n   - `err` *error|null* - If the response failed via timeout or was reported as an error from the response.\n   - `results` **object|array|string|buffer* - Response body\n - `updateCallback` *function* - Optional callback fired when update is sent. Callback includes one argument\n   - `results` *object|array|string|buffer* - Response body\n\n###### Example:\n ```javascript\n app.nats.request('lookup', {\n    domain: \"google.com\"\n  }, function(err, results){\n      if(err){\n        return console.error('ERROR', err);\n      }\n      console.log('Lookup results', results);\n  }, function(update){\n    console.log('update', update);\n  });\n  ```\n  ##### `app.nats.subscribe(subject, options, callback, updateCallback)`\nSends a message to a subscriber with the expectation of at least one reply. Main callback only listens for the final reply. Can get updates to provide realtime stats/progress and/or acknowledgments to reset timeouts. Returns event emitter for `update`, `ack`, `response`, \u0026 `timeout` events.\n\n - `subject` *string* - subject to subscribe to\n - `options` *object* - Options passed to `PUB` [method](http://nats.io/documentation/internals/nats-protocol/#PUB).\n   - `queue` *string* - Name of queue to join\n   - `max` *number* - Maximum number of messages to receive before automatically unsubscribing.\n   - `noAck` *boolean* - Prevents automatic `ack` message when set to true. Defaults to false.\n   - `noPrefix` *string* - Prevents configurable prefix string from adding to subject. Defaults to false.\n - `callback` *function* - callback fired when messages are received. Callback includes two arguments\n   - `response` *object|array|string|buffer* - Message body\n   - `handler` *eventEmitter* - Event emitter with helper methods to handle updates, acks, and replies.\n     - Emittable EVENTS - These events need to be emitted to send messages\n       - `ack` - timeout *int*: Resets the timeout for the request. If not timeout is specified it will reset the timer that was used by the requester. `timeout` is in ms.\n       - `update` - data *string*: Sends a message with data update the request. Also resets the timeout.\n       - `response` - err *error|null*, results *object|array|string|buffer*: Sends an error or response to the request\n     - Helper Methods - These methods are helper methods to make emitting the events above easier\n        - `ack()`: Tells the request to reset timeout, has no body or data to send\n        - `update(data *string*)`: Sends a message with data update the request. Also resets the timeout.\n        - `response(err *error|null*, results *object|array|string|buffer*)`: Sends an error or response to the request\n   - `subject` *string* - Copy of the message subject. Useful for wildcard subscriptions. Does not include prefix where applicable.\n\n###### Example:\n ```javascript\n app.nats.handle('lookup', {\n    queue: \"dns.lookup\"\n  }, function(msg, handler){\n    setTimeout(function(){\n      handler.ack();\n    }, 2500);\n    setTimeout(function(){\n      handler.update({\n        pending: true\n      });\n    }, 5000);\n    setTimeout(function(){\n      handler.response(null, msg);\n    }, 7500);\n  });\n  ```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodecraft%2Fspawnpoint-nats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodecraft%2Fspawnpoint-nats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodecraft%2Fspawnpoint-nats/lists"}