JSPM

@fedify/solidstart

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

Integrate Fedify with SolidStart

Package Exports

  • @fedify/solidstart
  • @fedify/solidstart/package.json

Readme

@fedify/solidstart: Integrate Fedify with SolidStart

npm Matrix Follow @fedify@hollo.social

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

The integration code looks like this:

// src/middleware/index.ts
import { fedifyMiddleware } from "@fedify/solidstart";
import federation from "../lib/federation";

export default fedifyMiddleware(federation, (event) => "context data");

Put the above code in your src/middleware/index.ts file, and set middleware: "src/middleware/index.ts" in your app.config.ts.