{"_id":"@alt-javascript/camel-lite-component-amqp","_rev":"3-cc9e9ebfad1ff136522c228fe82d3faf","name":"@alt-javascript/camel-lite-component-amqp","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.2":{"name":"@alt-javascript/camel-lite-component-amqp","version":"1.0.2","keywords":["alt-javascript","camel","camel-lite","eai","eip","integration","amqp","messaging","rabbitmq","activemq","component"],"author":{"name":"Craig Parravicini"},"_id":"@alt-javascript/camel-lite-component-amqp@1.0.2","maintainers":[{"name":"craigparra","email":"craigparra@gmail.com"}],"contributors":[{"url":"Anthropic","name":"Claude"},{"name":"Apache Camel — design inspiration and pattern source"}],"homepage":"https://github.com/alt-javascript/camel-lite#readme","bugs":{"url":"https://github.com/alt-javascript/camel-lite/issues"},"dist":{"shasum":"0d4cea7ec35cfe42e759bd42443be4abef3c5c45","tarball":"https://registry.npmjs.org/@alt-javascript/camel-lite-component-amqp/-/camel-lite-component-amqp-1.0.2.tgz","fileCount":15,"integrity":"sha512-NW+0vnmLZIG3vyn++rgyEX0fWxLlKnq+mywHNyBe1PrasVb/ZgLNSmq5bG03RwzFwqhK2iBcO5fWQxgjY/XlbQ==","signatures":[{"sig":"MEUCIQDSCkns2/YnYKGRpYAu1QJY5zDI4lVK2SJ9UahD4ShoxAIgSoDlItm3Oj1Ql1gD0lVuvmWkHgge5azFV+VuNVYdE3Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alt-javascript%2fcamel-lite-component-amqp@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":43635},"type":"module","exports":{".":"./src/index.js"},"gitHead":"9f948b9f02d85c9f593229684c475cd209369f2c","scripts":{"test":"node --test"},"_npmUser":{"name":"craigparra","email":"craigparra@gmail.com"},"repository":{"url":"git+https://github.com/alt-javascript/camel-lite.git","type":"git"},"_npmVersion":"11.9.0","description":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)","directories":{},"_nodeVersion":"24.14.0","dependencies":{"rhea":"^3.0.4","amqplib":"^0.10.0","@alt-javascript/common":"^3.0.7","@alt-javascript/config":"^3.0.7","@alt-javascript/logger":"^3.0.7","@alt-javascript/camel-lite-core":"1.0.2"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/camel-lite-component-amqp_1.0.2_1774595589488_0.09284832033733825","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@alt-javascript/camel-lite-component-amqp","version":"1.1.0","keywords":["alt-javascript","camel","camel-lite","eai","eip","integration","amqp","messaging","rabbitmq","activemq","component"],"author":{"name":"Craig Parravicini"},"_id":"@alt-javascript/camel-lite-component-amqp@1.1.0","maintainers":[{"name":"craigparra","email":"craigparra@gmail.com"}],"contributors":[{"url":"Anthropic","name":"Claude"}],"homepage":"https://github.com/alt-javascript/camel-lite#readme","bugs":{"url":"https://github.com/alt-javascript/camel-lite/issues"},"dist":{"shasum":"7c1b3d07dc82d2bf702107bd810e8b03425151ea","tarball":"https://registry.npmjs.org/@alt-javascript/camel-lite-component-amqp/-/camel-lite-component-amqp-1.1.0.tgz","fileCount":15,"integrity":"sha512-MyVnyJRvjHRENdFdJRAYYTFaesCETFRJJSaDvJMoYPpVaIg4GLSOTmjGjky4BXl7hahBBbGynn6EFsv/Xq8zaA==","signatures":[{"sig":"MEUCIEbMeVeA2YhN6lxHcrJ3rdm36JHGACTLx2wZVSahIW+vAiEAn/5GXPA1bxkrRWNvW3KXAI599NKZ3nWtAlz6UBznsg0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alt-javascript%2fcamel-lite-component-amqp@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":43573},"type":"module","exports":{".":"./src/index.js"},"gitHead":"c227a03632d4b1e2f93b4562c7e74f52ba87d340","scripts":{"test":"node --test"},"_npmUser":{"name":"craigparra","email":"craigparra@gmail.com"},"repository":{"url":"git+https://github.com/alt-javascript/camel-lite.git","type":"git"},"_npmVersion":"11.9.0","description":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)","directories":{},"_nodeVersion":"24.14.0","dependencies":{"rhea":"^3.0.4","amqplib":"^0.10.0","@alt-javascript/common":"^3.0.7","@alt-javascript/config":"^3.0.7","@alt-javascript/logger":"^3.0.7","@alt-javascript/camel-lite-core":"1.1.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/camel-lite-component-amqp_1.1.0_1774763494714_0.5417748875826303","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@alt-javascript/camel-lite-component-amqp","version":"1.1.1","type":"module","exports":{".":"./src/index.js"},"dependencies":{"rhea":"^3.0.4","amqplib":"^0.10.0","@alt-javascript/logger":"^3.0.7","@alt-javascript/config":"^3.0.7","@alt-javascript/common":"^3.0.7","@alt-javascript/camel-lite-core":"1.1.1"},"scripts":{"test":"node --test"},"repository":{"type":"git","url":"git+https://github.com/alt-javascript/camel-lite.git"},"author":{"name":"Craig Parravicini"},"contributors":[{"name":"Claude","url":"Anthropic"}],"keywords":["alt-javascript","camel","camel-lite","eai","eip","integration","amqp","messaging","rabbitmq","activemq","component"],"publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"gitHead":"ff8501eed381d38ac20f56aea721274466d64212","_id":"@alt-javascript/camel-lite-component-amqp@1.1.1","description":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)","bugs":{"url":"https://github.com/alt-javascript/camel-lite/issues"},"homepage":"https://github.com/alt-javascript/camel-lite#readme","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-WsPUSwnTck/bZ26dyAgTVEwxCSDpNsnBsZvFW1MhF1/6PBJB2YdS4fez1HtSZqeLd4gtDKzuWXz5FNqPzLK0SQ==","shasum":"b7ac45bd1143bdef11654ec7a820ba955f53a312","tarball":"https://registry.npmjs.org/@alt-javascript/camel-lite-component-amqp/-/camel-lite-component-amqp-1.1.1.tgz","fileCount":15,"unpackedSize":43573,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alt-javascript%2fcamel-lite-component-amqp@1.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFaKH1Je4w8g7J4qBWWfktzXxeb1ZLdKZDORXpmtO3OwAiAqmEwVVVpfqjvkxgOGKOefLBxPZ8/YGCrjrHaSlE+MfA=="}]},"_npmUser":{"name":"craigparra","email":"craigparra@gmail.com"},"directories":{},"maintainers":[{"name":"craigparra","email":"craigparra@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/camel-lite-component-amqp_1.1.1_1774764451202_0.37263404002749945"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-27T07:13:09.021Z","modified":"2026-03-29T06:07:31.617Z","1.0.2":"2026-03-27T07:13:09.618Z","1.1.0":"2026-03-29T05:51:34.850Z","1.1.1":"2026-03-29T06:07:31.343Z"},"bugs":{"url":"https://github.com/alt-javascript/camel-lite/issues"},"author":{"name":"Craig Parravicini"},"homepage":"https://github.com/alt-javascript/camel-lite#readme","keywords":["alt-javascript","camel","camel-lite","eai","eip","integration","amqp","messaging","rabbitmq","activemq","component"],"repository":{"type":"git","url":"git+https://github.com/alt-javascript/camel-lite.git"},"description":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)","contributors":[{"name":"Claude","url":"Anthropic"}],"maintainers":[{"name":"craigparra","email":"craigparra@gmail.com"}],"readme":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n## What\n\nAMQP messaging supporting both AMQP 1.0 ([rhea](https://www.npmjs.com/package/rhea)) and AMQP 0-9-1 ([amqplib](https://www.npmjs.com/package/amqplib)). Producers send exchange body to a queue or topic; consumers receive messages and set them as the exchange body.\n\n## Install\n\n```sh\nnpm install camel-lite-component-amqp\n```\n\n## URI Syntax\n\n```\namqp:queue:name[?protocol=amqp10&url=amqp://localhost]\namqp:topic:name[?protocol=amqp10&url=amqp://localhost]\n```\n\n| Parameter  | Default         | Description |\n|------------|-----------------|-------------|\n| `protocol` | `amqp10`        | Wire protocol: `amqp10` (AMQP 1.0 via rhea) or `amqp091` (AMQP 0-9-1 via amqplib). |\n| `url`      | `amqp://localhost` | Broker connection URL. |\n\n## Usage\n\n**Producer — send to a queue:**\n\n```js\nimport { CamelContext } from 'camel-lite-core';\nimport { AmqpComponent } from 'camel-lite-component-amqp';\n\nconst context = new CamelContext();\ncontext.addComponent('amqp', new AmqpComponent());\n\ncontext.addRoutes({\n  configure(ctx) {\n    ctx.from('direct:send')\n      .to('amqp:queue:orders?protocol=amqp10&url=amqp://localhost:5672');\n  }\n});\n\nawait context.start();\n\nconst template = context.createProducerTemplate();\nawait template.sendBody('direct:send', JSON.stringify({ orderId: 42 }));\n\nawait context.stop();\n```\n\n**Consumer — receive from a queue:**\n\n```js\ncontext.addRoutes({\n  configure(ctx) {\n    ctx.from('amqp:queue:orders?protocol=amqp10&url=amqp://localhost:5672')\n      .process(exchange => {\n        console.log('Received:', exchange.in.body);\n      });\n  }\n});\n```\n\n## See Also\n\n[camel-lite — root README](../../README.md)\n","readmeFilename":"README.md"}