{"id":28169447,"url":"https://github.com/around25/amqpbus","last_synced_at":"2026-07-14T07:31:28.876Z","repository":{"id":33250098,"uuid":"36894489","full_name":"Around25/amqpbus","owner":"Around25","description":"A simpler way of working with AMQP messages from NodeJs.","archived":false,"fork":false,"pushed_at":"2015-07-07T22:44:30.000Z","size":184,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-15T16:17:15.467Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Around25.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":"2015-06-04T20:44:41.000Z","updated_at":"2024-02-05T09:46:44.000Z","dependencies_parsed_at":"2022-08-07T20:17:15.007Z","dependency_job_id":null,"html_url":"https://github.com/Around25/amqpbus","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Around25%2Famqpbus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Around25%2Famqpbus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Around25%2Famqpbus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Around25%2Famqpbus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Around25","download_url":"https://codeload.github.com/Around25/amqpbus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254374529,"owners_count":22060614,"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":[],"created_at":"2025-05-15T16:17:14.229Z","updated_at":"2025-10-26T15:50:02.750Z","avatar_url":"https://github.com/Around25.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"amqpbus\n=======\n\nA simpler way to interact with an AMQP server from a nodejs application\n\n[![Build Status](https://travis-ci.org/Around25/amqpbus.svg)](http://travis-ci.org/Around25/amqpbus)\n\nInstall\n-------\n```\nnpm install amqpbus --save\n```\n\nExample\n-------\n\n### Server.js\n```javascript\nvar MessageBus = require('amqpbus');\nvar bus = new MessageBus('amqp://' + process.env.RABBITMQ_PORT_5672_TCP_ADDR, function () {\n  // connected\n});\n\n// subscribe to \"notification\" messages\nvar stream = bus.getStream('SUB', 'notify', {prefetch: 1});\n\n// listen for \"auth\" requests\nvar replyStream = bus.getStream('REP', 'auth', {prefetch: 1});\n\n// handle notifications\nstream.receive(function (event, next) {\n  console.log('Notification:', event.body);\n  next(); // acknowledge the message as received\n});\n\n// handle a request message\nreplyStream.receive(function (event, next) {\n  console.log('Auth message:', event.body);\n  next({user: 'Cosmin'}); // send back a reply message\n});\n```\n\n### Client.js\n```javascript\nvar MessageBus = require('amqpbus');\nvar bus = new MessageBus('amqp://' + process.env.RABBITMQ_PORT_5672_TCP_ADDR, function () {\n  // connected\n});\n\nvar pubStream = bus.getStream('PUB', 'notify');\nvar reqStream = bus.getStream('REQ', 'auth');\n\n// publish a notification\npubStream.send({content: 'John just signed out'});\n\n// make an RPC call\nreqStream.send({user: 'cosmin', pass: 'secret'}, function (msg){\n  console.log('User:', msg.body);\n});\n```\n\nLicense\n=======\n\nThe MIT License (MIT)\n\nCopyright (c) 2015 Around25\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faround25%2Famqpbus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faround25%2Famqpbus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faround25%2Famqpbus/lists"}