Amqp
AMQP/RabbitMQ driver for Fedify
Install / Use
/learn @fedify-dev/AmqpREADME
@fedify/amqp: AMQP/RabbitMQ driver for Fedify
[!IMPORTANT] This repository is obsolete and has been archived in favor of the monorepo fedify-dev/fedify.
[!NOTE]
Although it's theoretically possible to be used with any AMQP 0-9-1 broker, this package is primarily designed for and tested with RabbitMQ.
This package provides Fedify's MessageQueue implementation for AMQP, which
is supported by RabbitMQ:
Here is an example of how to use it:
import { createFederation } from "@fedify/fedify";
import { AmqpMessageQueue } from "@fedify/amqp";
import { connect } from "amqplib";
const federation = createFederation({
queue: new AmqpMessageQueue(await connect("amqp://localhost")),
// ... other configurations
});
The AmqpMessageQueue constructor accepts options as the second
parameter, which can be used to configure the message queue:
new AmqpMessageQueue(await connect("amqp://localhost"), {
queue: "my_queue",
})
For more details, please refer to the docs of AmqpMessageQueueOptions.
Installation
Deno
deno add @fedify/amqp
Node.js
npm install @fedify/amqp
Bun
bun add @fedify/amqp
Changelog
Version 0.4.0
To be released.
Version 0.3.0
Released on June 25, 2025.
-
Added
nativeRetrialoption toAmqpMessageQueueOptionsto enable native retrial of messages. -
The type of the
AmqpMessageQueue()constructor's first parameter has been changed fromConnectiontoChannelModel.
Version 0.2.0
Released on March 28, 2025.
-
Added
AmqpMessageQueue.enqueueMany()method for efficiently enqueuing multiple messages at once. -
Updated @js-temporal/polyfill to 0.5.0 for Node.js and Bun. On Deno, there is no change because the polyfill is not used.
Version 0.1.0
Initial release. Released on October 14, 2024.
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
