Skip to main content

Built and signed on GitHub Actions

Works with
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 Score76%
Downloads2/wk
Published4 weeks ago (1.10.0)

Integrate Fedify with Express

@fedify/express: Integrate Fedify with Express

npm Matrix Follow @fedify@hollo.social

This package provides a simple way to integrate Fedify with Express.

The integration code looks like this:

import express from "express";
import { integrateFederation } from "@fedify/express";
import { federation } from "./federation.ts";  // Your `Federation` instance

export const app = express();

app.set("trust proxy", true);

app.use(integrateFederation(federation, (req) => "context data goes here"));
Built and signed on
GitHub Actions

Add Package

deno add jsr:@fedify/express

Import symbol

import * as express from "@fedify/express";
or

Import directly with a jsr specifier

import * as express from "jsr:@fedify/express";

Add Package

pnpm i jsr:@fedify/express
or (using pnpm 10.8 or older)
pnpm dlx jsr add @fedify/express

Import symbol

import * as express from "@fedify/express";

Add Package

yarn add jsr:@fedify/express
or (using Yarn 4.8 or older)
yarn dlx jsr add @fedify/express

Import symbol

import * as express from "@fedify/express";

Add Package

vlt install jsr:@fedify/express

Import symbol

import * as express from "@fedify/express";

Add Package

npx jsr add @fedify/express

Import symbol

import * as express from "@fedify/express";

Add Package

bunx jsr add @fedify/express

Import symbol

import * as express from "@fedify/express";