{"id":26956561,"url":"https://github.com/xogroup/bunnybus","last_synced_at":"2025-08-02T20:04:43.442Z","repository":{"id":41322205,"uuid":"76069093","full_name":"xogroup/bunnybus","owner":"xogroup","description":"Enterprise bus facade for creating a data transit system.","archived":false,"fork":false,"pushed_at":"2024-05-24T18:58:03.000Z","size":699,"stargazers_count":46,"open_issues_count":7,"forks_count":9,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-07-08T18:48:37.110Z","etag":null,"topics":["enterprise-bus","javascript","messaging","nodejs","rabbitmq"],"latest_commit_sha":null,"homepage":"","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/xogroup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":null,"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}},"created_at":"2016-12-09T20:45:04.000Z","updated_at":"2023-02-17T20:12:38.000Z","dependencies_parsed_at":"2024-06-18T21:26:33.654Z","dependency_job_id":"364b03f8-587e-4575-857b-d20b87174709","html_url":"https://github.com/xogroup/bunnybus","commit_stats":{"total_commits":402,"total_committers":10,"mean_commits":40.2,"dds":0.5373134328358209,"last_synced_commit":"62f2c18a0d14fba661aafaed8ee7dde9783139d4"},"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"purl":"pkg:github/xogroup/bunnybus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xogroup%2Fbunnybus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xogroup%2Fbunnybus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xogroup%2Fbunnybus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xogroup%2Fbunnybus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xogroup","download_url":"https://codeload.github.com/xogroup/bunnybus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xogroup%2Fbunnybus/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268448175,"owners_count":24251994,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"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":["enterprise-bus","javascript","messaging","nodejs","rabbitmq"],"created_at":"2025-04-03T03:30:25.095Z","updated_at":"2025-08-02T20:04:43.364Z","avatar_url":"https://github.com/xogroup.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bunnybus\nBunnyBus is a high level enterprise bus implementation making pub/sub and queue management easy. \n\nCurrently supports the following queueing frameworks.\n\n- [RabbitMQ](https://www.rabbitmq.com/)\n\nLead Maintainer: [Lam Chan](https://github.com/lamchakchan)\n\n## Introduction\nBunnyBus abstracts away low level queue driver details such as creating a connection, creating a channel, creating bindings, creating subscribing queues and etc.  BunnyBus provides safe defaults for many setups which can also be configured.  The core of BunnyBus implements native node callbacks providing maximum performance.  BunnyBus provides two flavors of API for callbacks and Promise alike.  The BunnyBus CLI can be found [here](https://github.com/xogroup/bunnybus-cli) implementing this core driver.\n\n**If you require strict FIFO behavior** keep in mind that while your handlers will be called in order, if you yield to the event loop you may resolve out of order. BunnyBus contains an optional setting to enforce strict FIFO behavior, but this comes at significant performance penalty and shouldn't be used by most consumers. You can enable this behavior in your bunnybus config by setting `server.dispatchType` to `'serial'`.\n\n## Installation\n```\n➜  npm i bunnybus\n```\n\n## Usage\n\n### Async / Await\n```javascript\nconst BunnyBus = require('bunnybus');\nconst bunnyBus = new BunnyBus();\n\n//create a subscription\nawait bunnyBus.subscribe('queue1', { \n    'create-event' : async (message, ack) =\u003e {\n        console.log(message.comment);\n        await ack();\n    }}\n);\n\n//publish to the above subscription\nawait bunnyBus.publish({ event : 'create-event', comment : 'hello world!' });\n\n);\n```\n\n## Documentation\n\n### API\n\nSee the [API Reference](http://github.com/xogroup/bunnybus/blob/master/API.md).\n\n### Examples\n\nCheck out the [Examples](http://github.com/xogroup/bunnybus/blob/master/Example.md).\n\n### Diagrams\n\n[Visual Guide](http://github.com/xogroup/bunnybus/blob/master/Diagram.md) to integrating with `BunnyBus`.\n\n## Articles\n\n* [@Medium](https://medium.com/xo-tech/bunnybus-building-a-data-transit-system-b9647f6283e5#.f9ghb6mzl)\n\n## Contributing\n\nWe love community and contributions! Please check out our [guidelines](http://github.com/xogroup/bunnybus/blob/master/.github/CONTRIBUTING.md) before making any PRs.\n\n## Setting up for development\n\n1. Install [Docker](https://docs.docker.com/engine/installation/)\n2. Clone this project and `cd` into the project directory\n3. Run the commands below\n\n```\nnpm install\nnpm run start-docker\nnpm test\nnpm run stop-docker\n```\n\nFor normal development/test iterations, there is no need to stop the docker container.  When the docker container is already running, just run `npm test`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxogroup%2Fbunnybus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxogroup%2Fbunnybus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxogroup%2Fbunnybus/lists"}