Skip to main content

Built and signed on GitHub Actions

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

Integrate Fedify with Fastify

@fedify/fastify: Integrate Fedify with Fastify

npm Matrix Follow @fedify@hollo.social

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 });
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/fastify

Import symbol

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

Import directly with a jsr specifier

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