JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 935
  • Score
    100M100P100Q83159F
  • License MIT

Integrate Fedify with Fastify

Package Exports

  • @fedify/fastify
  • @fedify/fastify/package.json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@fedify/fastify) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@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 });