Skip to main content

Built and signed on GitHub Actions

An ActivityPub/fediverse server framework

This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
100%
Published
5 days ago (0.11.3)
interface ActorCallbackSetters

Additional settings for the actor dispatcher.

const federation = createFederation<void>({ ... });
federation.setActorDispatcher("/users/{handle}", async (ctx, handle, key) => {
  ...
})
  .setKeyPairsDispatcher(async (ctxData, handle) => {
    ...
  });

Type Parameters

TContextData

Methods

Sets the key pairs dispatcher for actors.

Sets the RSA-PKCS#1-v1.5 key pair dispatcher for actors.

Use ActorCallbackSetters.setKeyPairsDispatcher instead.

Specifies the conditions under which requests are authorized.

Add Package

deno add @fedify/fedify

Import symbol

import { type ActorCallbackSetters } from "@fedify/fedify/federation";

Add Package

npx jsr add @fedify/fedify

Import symbol

import { type ActorCallbackSetters } from "@fedify/fedify/federation";

Add Package

yarn dlx jsr add @fedify/fedify

Import symbol

import { type ActorCallbackSetters } from "@fedify/fedify/federation";

Add Package

pnpm dlx jsr add @fedify/fedify

Import symbol

import { type ActorCallbackSetters } from "@fedify/fedify/federation";

Add Package

bunx jsr add @fedify/fedify

Import symbol

import { type ActorCallbackSetters } from "@fedify/fedify/federation";