latest
fedify-dev/fedifyWorks with
•JSR Score88%•This package works with Node.js, DenoIt is unknown whether this package works with Cloudflare Workers, Bun



License
•MIT
Downloads31/wk
•Published7 hours ago (2.3.2)
Integrate Fedify with Fastify
@fedify/fastify: Integrate Fedify with Fastify
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 });
Add Package
deno add jsr:@fedify/fastify
Import symbol
import * as fastify from "@fedify/fastify";
Import directly with a jsr specifier
import * as fastify from "jsr:@fedify/fastify";