Skip to main content

Built and signed on GitHub Actions

Works with
This package works with Node.js, Deno, BunIt is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score100%
License
MIT
Downloads2/wk
Publisheda week ago (2.2.0)

Integrate Fedify with Astro

Functions

f
fedifyIntegration(): AstroIntegration

Create an Astro integration that configures Vite SSR settings for Fedify compatibility.

f
fedifyMiddleware<TContextData>(
federation: Federation<TContextData>,
contextDataFactory: ContextDataFactory<TContextData>
): MiddlewareHandler

Create an Astro middleware to integrate with the Federation object.

Type Aliases

T
ContextDataFactory<TContextData> = (context: APIContext) => TContextData | Promise<TContextData>

A factory function to create a context data for the Federation object.

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/astro

Import symbol

import * as mod from "@fedify/astro";
or

Import directly with a jsr specifier

import * as mod from "jsr:@fedify/astro";