{"id":16542564,"url":"https://github.com/tada5hi/amqp-extension","last_synced_at":"2026-03-02T07:02:26.685Z","repository":{"id":36967721,"uuid":"409899875","full_name":"tada5hi/amqp-extension","owner":"tada5hi","description":"This is a library on top of the amqplib library and is meant to simplify the process of consuming \u0026 publishing queue messages.","archived":false,"fork":false,"pushed_at":"2025-10-06T06:02:52.000Z","size":2156,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":0,"default_branch":"develop","last_synced_at":"2025-10-10T04:59:52.143Z","etag":null,"topics":["abstraction-layer","amqp","rabbitmq","typescript"],"latest_commit_sha":null,"homepage":"","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/tada5hi.png","metadata":{"files":{"readme":"README.MD","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["tada5hi"]}},"created_at":"2021-09-24T09:03:55.000Z","updated_at":"2025-03-31T14:21:25.000Z","dependencies_parsed_at":"2024-03-06T12:26:14.408Z","dependency_job_id":"e8e70f5c-d26c-40a2-ab08-c2386ceb8836","html_url":"https://github.com/tada5hi/amqp-extension","commit_stats":{"total_commits":150,"total_committers":3,"mean_commits":50.0,"dds":0.3466666666666667,"last_synced_commit":"4600389e9534f79fd5e5cd06af0d03ee7aff34ca"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/tada5hi/amqp-extension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tada5hi%2Famqp-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tada5hi%2Famqp-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tada5hi%2Famqp-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tada5hi%2Famqp-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tada5hi","download_url":"https://codeload.github.com/tada5hi/amqp-extension/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tada5hi%2Famqp-extension/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29994618,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"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":["abstraction-layer","amqp","rabbitmq","typescript"],"created_at":"2024-10-11T18:57:57.430Z","updated_at":"2026-03-02T07:02:26.643Z","avatar_url":"https://github.com/tada5hi.png","language":"TypeScript","funding_links":["https://github.com/sponsors/tada5hi"],"categories":[],"sub_categories":[],"readme":"# AMQP Extension 🏰\n\n[![npm version](https://badge.fury.io/js/amqp-extension.svg)](https://badge.fury.io/js/amqp-extension)\n[![codecov](https://codecov.io/gh/Tada5hi/amqp-extension/branch/master/graph/badge.svg?token=6YELWNP9HG)](https://codecov.io/gh/Tada5hi/amqp-extension)\n[![Master Workflow](https://github.com/tada5hi/amqp-extension/actions/workflows/main.yml/badge.svg)](https://github.com/Tada5hi/amqp-extension)\n[![Known Vulnerabilities](https://snyk.io/test/github/Tada5hi/amqp-extension/badge.svg?targetFile=package.json)](https://snyk.io/test/github/Tada5hi/amqp-extension?targetFile=package.json)\n[![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)\n\nThis is a library on top of the [amqplib](https://www.npmjs.com/package/amqplib) library and is meant to simplify the process of consuming \u0026 publishing queue messages.\n\n**Table of Contents**\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Publish](#publish)\n  - [Consume](#consume)\n- [License](#license)\n\n\n## Installation\n\n```bash\nnpm install amqp-extension --save\n```\n\n## Usage\n\n### Publish\n\nThe `publish` method allows you to send messages quickly.\n\n```typescript\nimport { Client } from \"amqp-extension\";\n\nconst client = new Client({\n    connectionOptions: 'amqp://\u003cuser\u003e:\u003cpassword\u003e@\u003chost\u003e',\n    exchange: {\n        name: '\u003cname\u003e',\n        type: 'topic'\n    }\n});\n\n(async () =\u003e {\n    await client.publish('\u003crouting-key\u003e', {\n        foo: 'bar'\n    });\n})();\n```\n\n### Consume\n\nTo consume a queue use the `consume` function.\n```typescript\nimport {\n    Client,\n    ConsumeMessage,\n    ConsumeOptions,\n} from \"amqp-extension\";\n\nconst client = new Client({\n    connectionOptions: 'amqp://\u003cuser\u003e:\u003cpassword\u003e@\u003chost\u003e',\n    exchange: {\n        name: '\u003cname\u003e',\n        type: 'topic'\n    }\n});\n\n(async () =\u003e {\n    await client.consume('\u003crouting-key\u003e', {\n        $any: async (message: ConsumeMessage) =\u003e {\n            const content = message.content.toString('utf-8');\n            const payload = JSON.parse(content);\n            console.log(payload);\n            // { type: 'resourceCreated', name: 'foo' }\n        }\n    });\n})();\n```\n\n## License\n\nMade with 💚\n\nPublished under [MIT License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftada5hi%2Famqp-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftada5hi%2Famqp-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftada5hi%2Famqp-extension/lists"}