Skip to main content

Built and signed on GitHub Actions

AMQP/RabbitMQ driver for Fedify

This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
100%
Published
4 weeks ago (0.1.0)

@fedify/amqp: AMQP/RabbitMQ driver for Fedify

JSR npm GitHub Actions

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
});

Installation

Deno

deno add @fedify/amqp

Node.js

npm install @fedify/amqp

Bun

bun add @fedify/amqp

Changelog

Version 0.1.0

Initial release. Released on October 14, 2024.

Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@fedify/amqp

Import symbol

import * as _fedify_amqp from "@fedify/amqp";

---- OR ----

Import directly with a jsr specifier

import * as _fedify_amqp from "jsr:@fedify/amqp";

Add Package

npx jsr add @fedify/amqp

Import symbol

import * as _fedify_amqp from "@fedify/amqp";

Add Package

yarn dlx jsr add @fedify/amqp

Import symbol

import * as _fedify_amqp from "@fedify/amqp";

Add Package

pnpm dlx jsr add @fedify/amqp

Import symbol

import * as _fedify_amqp from "@fedify/amqp";

Add Package

bunx jsr add @fedify/amqp

Import symbol

import * as _fedify_amqp from "@fedify/amqp";