Skip to main content
Home

Built and signed on GitHub Actions

Integrate Fedify with Fastify

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 Score
94%
Published
2 days ago (1.10.0)

@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

New Ticket: 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";

Add Package

pnpm i jsr:@fedify/fastify
or (using pnpm 10.8 or older)
pnpm dlx jsr add @fedify/fastify

Import symbol

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

Add Package

yarn add jsr:@fedify/fastify
or (using Yarn 4.8 or older)
yarn dlx jsr add @fedify/fastify

Import symbol

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

Add Package

vlt install jsr:@fedify/fastify

Import symbol

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

Add Package

npx jsr add @fedify/fastify

Import symbol

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

Add Package

bunx jsr add @fedify/fastify

Import symbol

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