{"id":13836161,"url":"https://github.com/Techie-Qabila/fastify-nats","last_synced_at":"2025-07-10T13:31:58.117Z","repository":{"id":57233337,"uuid":"104036727","full_name":"Techie-Qabila/fastify-nats","owner":"Techie-Qabila","description":"Plugin for sharing nats connection across Fastify","archived":false,"fork":false,"pushed_at":"2018-12-06T18:50:18.000Z","size":64,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-12T16:33:57.428Z","etag":null,"topics":["broker","fastify","messaging","nats","pubsub","rpc"],"latest_commit_sha":null,"homepage":"","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/Techie-Qabila.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}},"created_at":"2017-09-19T06:42:07.000Z","updated_at":"2023-05-26T03:41:47.000Z","dependencies_parsed_at":"2022-08-31T14:11:25.683Z","dependency_job_id":null,"html_url":"https://github.com/Techie-Qabila/fastify-nats","commit_stats":null,"previous_names":["mahmed8003/fastify-nats"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Techie-Qabila%2Ffastify-nats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Techie-Qabila%2Ffastify-nats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Techie-Qabila%2Ffastify-nats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Techie-Qabila%2Ffastify-nats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Techie-Qabila","download_url":"https://codeload.github.com/Techie-Qabila/fastify-nats/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":213184703,"owners_count":15549393,"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","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":["broker","fastify","messaging","nats","pubsub","rpc"],"created_at":"2024-08-04T15:00:37.060Z","updated_at":"2024-11-20T22:32:06.634Z","avatar_url":"https://github.com/Techie-Qabila.png","language":"JavaScript","funding_links":[],"categories":["\u003ch2 align=\"center\"\u003eAwesome Fastify\u003c/h2\u003e"],"sub_categories":["\u003ch2 align=\"center\"\u003eEcosystem\u003c/h2\u003e"],"readme":"# fastify-nats\n\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)\n[![npm version](https://img.shields.io/npm/v/fastify-nats.svg?style=flat-square)](https://www.npmjs.com/package/fastify-nats)\n[![npm downloads](https://img.shields.io/npm/dm/fastify-nats.svg?style=flat-square)](https://www.npmjs.com/package/fastify-nats)\n\n[NATS](http://nats.io) Server is a simple, high performance open source messaging system for cloud native applications, IoT messaging, and microservices architectures.\n\nUnder the hood [NATS](https://github.com/nats-io/node-nats) client is used, the options that you pass to `register` will be passed to the nats client.\n\n## Install\n```\nnpm i fastify-nats --save\n```\n## Usage\nAdd it to you project with `register` and you are done!  \nYou can access the *nats Connection* via `fastify.nats`.\n```js\nconst fastify = require('fastify')\n\nfastify.register(require('fastify-nats'), {\n  url: 'nats:demo.nats.io:4222'\n}, err =\u003e {\n  if (err) throw err\n})\n\nfastify.listen(3000, err =\u003e {\n  if (err) throw err\n  console.log(`server listening on ${fastify.server.address().port}`)\n})\n```\n\nand later\n```js\nfastify.nats.publish(topic, message);\n```\n\n## License\n\nLicensed under [MIT](./LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTechie-Qabila%2Ffastify-nats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTechie-Qabila%2Ffastify-nats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTechie-Qabila%2Ffastify-nats/lists"}