Skip to main content
Home
Works with
This package works with Node.js, DenoIt is unknown whether this package works with Cloudflare Workers, Bun
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
JSR Score88%
License
MIT
Downloads31/wk
Published7 hours ago (2.3.2)

Integrate Fedify with Fastify

@fedify/fastify: Integrate Fedify with Fastify

npm Matrix @fedify@hackers.pub

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

The integration code looks like this:

import Fastify from "fastify";
import { fedifyPlugin } from "@fedify/fastify";
import { federation } from "./federation.ts";  // Your `Federation` instance

const fastify = Fastify({ logger: true });

await fastify.register(fedifyPlugin, {
  federation,
  contextDataFactory: () => undefined,
});

fastify.listen({ port: 3000 });

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/fastify

Import symbol

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

Import directly with a jsr specifier

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