Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
fedify-dev/fedifyWorks with
•JSR Score100%•This package works with Deno
License
•MIT
Downloads1/wk
•Published2 days ago (2.1.2)
Integrate Fedify with Fresh
@fedify/fresh: Integrate Fedify with Fresh 2.x
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
Add Package
deno add jsr:@fedify/fresh
Import symbol
import * as fresh from "@fedify/fresh";
Import directly with a jsr specifier
import * as fresh from "jsr:@fedify/fresh";