Important
This repository is obsolete and has been archived in favor of the monorepo fedify-dev/fedify.
This package provides a simple way to integrate Fedify with Express.
The integration code looks like this:
importexpressfrom"express";import{integrateFederation}from"@fedify/express";import{federation}from"./federation";// Your `Federation` instanceexportconstapp=express();app.set("trust proxy",true);app.use(integrateFederation(federation,(req)=>"context data goes here"));To be released.
Released on May 11, 2025.
- Fixed an invalid version constraint in the
peerDependencies. [#3 by Emelia Smith]
Released on September 30, 2024.
- Relaxed the requirement for the peer dependency
@fedify/fedifyto allow any version under 2.0.0.
Released on August 31, 2024.
- Fixed a bug where it throws
TypeErrorwith messageRequestInit: duplex option is required when sending a body.
Released on August 5, 2024.
- Fixed the middleware to not fill
Request.bodywhen the request method isGETorHEAD. - Fixed the middleware to content-negotiate the response based on
the
Acceptheader.
Released on August 5, 2024.
- Fixed incorrectly configured export targets in package.json.
Released on August 5, 2024.
- Added missing entry points to the package.json.
Initial release. Released on August 5, 2024.