{"id":23488453,"url":"https://github.com/onesy-me/amqp","last_synced_at":"2026-05-03T01:34:18.542Z","repository":{"id":41101971,"uuid":"455232021","full_name":"onesy-me/amqp","owner":"onesy-me","description":"AMQP ","archived":false,"fork":false,"pushed_at":"2025-09-28T12:13:47.000Z","size":254,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-28T13:07:09.270Z","etag":null,"topics":["amaui","amqp","back-end","backend","js","library","node","nodejs","rabbitmq","typescript","utils","web"],"latest_commit_sha":null,"homepage":"https://docs.onesy.me/library/amqp","language":"TypeScript","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/onesy-me.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}},"created_at":"2022-02-03T16:03:46.000Z","updated_at":"2025-09-28T12:13:50.000Z","dependencies_parsed_at":"2024-01-21T13:26:27.341Z","dependency_job_id":"e69fd44a-803a-4344-9213-60c50509975c","html_url":"https://github.com/onesy-me/amqp","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"de83ed638db4fee206f4c87e2abfa24ab5d33394"},"previous_names":["onesy-me/amaui-amqp","amaui-org/amaui-amqp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/onesy-me/amqp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onesy-me%2Famqp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onesy-me%2Famqp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onesy-me%2Famqp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onesy-me%2Famqp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onesy-me","download_url":"https://codeload.github.com/onesy-me/amqp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onesy-me%2Famqp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32555839,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T00:31:16.350Z","status":"ssl_error","status_checked_at":"2026-05-03T00:31:15.546Z","response_time":132,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["amaui","amqp","back-end","backend","js","library","node","nodejs","rabbitmq","typescript","utils","web"],"created_at":"2024-12-24T23:11:31.642Z","updated_at":"2026-05-03T01:34:18.537Z","avatar_url":"https://github.com/onesy-me.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003c/br\u003e\n\u003c/br\u003e\n\n\u003cp align='center'\u003e\n  \u003ca target='_blank' rel='noopener noreferrer' href='#'\u003e\n    \u003cimg width='auto' height='84' src='https://raw.githubusercontent.com/onesy-me/onesy/refs/heads/main/utils/images/logo.png' alt='onesy logo' /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align='center'\u003eonesy AMQP\u003c/h1\u003e\n\n\u003ch3 align='center'\u003e\n  \u003csub\u003eMIT license\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n  \u003csub\u003eProduction ready\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n  \u003csub\u003e100% test cov\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n  \u003csub\u003eNodejs\u003c/sub\u003e\n\u003c/h3\u003e\n\n\u003cp align='center'\u003e\n    \u003csub\u003eVery simple code\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n    \u003csub\u003eModern code\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n    \u003csub\u003eJunior friendly\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n    \u003csub\u003eTypescript\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n    \u003csub\u003eMade with :yellow_heart:\u003c/sub\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n### Add\n\n```sh\nyarn add @onesy/amqp\n```\n\nAdd `amqplib` peer dependency.\n\n```sh\nyarn add amqplib\n```\n\n### Use\n\n```javascript\n  import OnesyAmqp from '@onesy/amqp';\n  // Make if you wanna a config file and\n  // inside of it add all the process.env related props\n  import Config from './config';\n\n  // Make a new amqp instance\n  const onesyAmqp = new OnesyAmqp({\n    uri: Config.amqp.rabbitmq.uri,\n    queues: Config.amqp.rabbitmq.queues,\n    exchanges: Config.amqp.rabbitmq.exchanges,\n  });\n\n  // Await for a channel\n  await onesyAmqp.channel;\n\n  // Send to a queue\n  await onesyAmqp.send('a', 'a');\n\n  // Check a queue\n  await onesyAmqp.checkQueue();\n\n  // { queue: 'a', messageCount: 1, etc. }\n```\n\n### Dev\n\n\nInstall\n\n```sh\nyarn\n```\n\nTest\n\n```sh\nyarn test\n```\n\nOne time local setup\n\nInstall docker and docker-compose\n\n  - https://docs.docker.com/get-docker\n  - https://docs.docker.com/compose/install\n\nMake docker containers\n\n```sh\nyarn docker\n```\n\n### Prod\n\nBuild\n\n```sh\nyarn build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonesy-me%2Famqp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonesy-me%2Famqp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonesy-me%2Famqp/lists"}