Skip to main content
This release is 9 versions behind 1.3.0 — the latest version of @fedify/fedify. Jump to latest

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
a month ago (1.2.0)
interface ActorCallbackSetters

Additional settings for the actor dispatcher.

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

Type Parameters

TContextData

Methods

Sets the key pairs dispatcher for actors.

Sets the callback function that maps a WebFinger username to the corresponding actor's identifier. If it's omitted, the identifier is assumed to be the same as the WebFinger username, which makes your actors have the immutable handles. If you want to let your actors change their fediverse handles, you should set this dispatcher.

Specifies the conditions under which requests are authorized.

Add Package

deno add jsr:@fedify/fedify

Import symbol

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

---- OR ----

Import directly with a jsr specifier

import { type ActorCallbackSetters } from "jsr:@fedify/fedify";

Add Package

npx jsr add @fedify/fedify

Import symbol

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

Add Package

yarn dlx jsr add @fedify/fedify

Import symbol

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

Add Package

pnpm dlx jsr add @fedify/fedify

Import symbol

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

Add Package

bunx jsr add @fedify/fedify

Import symbol

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