# @fedify/fastify

> Integrate Fedify with Fastify

Latest version **2.4.4** (published 2026-10-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @fedify/fastify
pnpm add @fedify/fastify
yarn add @fedify/fastify
bun add @fedify/fastify
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.4.4 |
| Published | 2026-10-12 |
| First published | 2025-10-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 1 |
| Unpacked size | 17.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1012 |
| Author | An Nyeong |
| Maintainers | hongminhee, z9mb1, 2chanhaeng |
| Keywords | Fedify, Fastify |

## Links

- npm: https://www.npmjs.com/package/@fedify/fastify
- Repository: https://github.com/fedify-dev/fedify
- Homepage: https://fedify.dev/
- Issues: https://github.com/fedify-dev/fedify/issues
- Funding: https://opencollective.com/fedify
- npm.io page: https://npm.io/package/@fedify/fastify

## Dependencies (1)

- [fastify-plugin](https://npm.io/package/fastify-plugin.md) ^5.0.1

## Recent versions

- 2.4.4 (latest) — 2026-10-12
- 2.0.35-dev.2480 (dev) — 2026-10-22
- 2.4.0-pr.1006.44 (pr-1006) — 2026-09-18
- 2.4.0-pr.1020.43 (pr-1020) — 2026-09-02
- 2.4.0-pr.936.41 (pr-936) — 2026-07-12
- 2.4.0-pr.934.40 (pr-934) — 2026-07-11
- 2.3.0-pr.809.39 (pr-809) — 2026-06-18
- 2.2.0-pr.732.35 (pr-732) — 2026-04-27
- 2.2.0-pr.731.34 (pr-731) — 2026-04-27
- 2.2.0-pr.731.0.33 (pr-731.0) — 2026-04-27
- 2.2.0-pr.715.28 (pr-715) — 2026-04-23
- 2.2.0-pr.710.26 (pr-710) — 2026-04-23
- 2.2.0-pr.695.23 (pr-695) — 2026-04-22
- 2.2.0-pr.709.20 (pr-709) — 2026-04-22
- 2.2.0-pr.708.19 (pr-708) — 2026-04-21
- … 569 more at https://npm.io/package/@fedify/fastify/versions

## README

<!-- deno-fmt-ignore-file -->

@fedify/fastify: Integrate Fedify with Fastify
==============================================

[![npm][npm badge]][npm]
[![Matrix][Matrix badge]][Matrix]
[![@fedify@hackers.pub][@fedify@hackers.pub badge]][@fedify@hackers.pub]

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

The integration code looks like this:

~~~~ typescript
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 });
~~~~

[npm badge]: https://img.shields.io/npm/v/@fedify/fastify?logo=npm
[npm]: https://www.npmjs.com/package/@fedify/fastify
[Matrix badge]: https://img.shields.io/matrix/fedify%3Amatrix.org
[Matrix]: https://matrix.to/#/#fedify:matrix.org
[@fedify@hackers.pub badge]: https://fedi-badge.minhee.org/@fedify@hackers.pub/followers.svg
[@fedify@hackers.pub]: https://hackers.pub/@fedify
[Fedify]: https://fedify.dev/
[Fastify]: https://fastify.dev/

---
_Source: https://npm.io/package/@fedify/fastify · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
