Skip to main content

Built and signed on GitHub Actions

Works with
This package works with Deno
This package works with Deno
JSR Score100%
License
MIT
Downloads1/wk
Published2 days ago (2.1.2)

Integrate Fedify with Fresh

@fedify/fresh: Integrate Fedify with Fresh 2.x

Follow @fedify@hollo.social

This package provides a simple way to integrate Fedify with Fresh.

The integration code looks like this:

import { integrateHandler } from "@fedify/fresh";
import { App, staticFiles } from "fresh";
import { federation } from "./federation.ts";
import { define, type State } from "./utils.ts";

const fedifyMiddleware = define.middleware(
  integrateHandler<void, State>(federation, () => undefined),
);

app.use(fedifyMiddleware);
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/fresh

Import symbol

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

Import directly with a jsr specifier

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