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%
License
MIT
Downloads20/wk
Published2 days ago (2.1.2)

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

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

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";