@fedify/debugger: Embedded ActivityPub debug dashboard for Fedify

This package is available since Fedify 2.0.0.
This package provides an embedded real-time debug dashboard for inspecting
ActivityPub traces and activities in your federated server app. It works as
a proxy that wraps your existing Federation object, intercepting HTTP requests
matching a configurable path prefix and serving the debug dashboard, while
delegating everything else to the inner federation.
import { createFederation, MemoryKvStore } from "@fedify/fedify";
import { createFederationDebugger } from "@fedify/debugger";
const innerFederation = createFederation<void>({
kv: new MemoryKvStore(),
});
const federation = createFederationDebugger(innerFederation);
The federation object returned by createFederationDebugger() is a drop-in
replacement for the original. You can use it everywhere you would normally use
the inner federation object, including with framework integrations such as
@fedify/hono and @fedify/express.
[!WARNING]
The debug dashboard is intended for development use only. It is strongly
recommended to enable authentication if the dashboard is accessible over
a network, as it exposes internal trace data.
For more details on configuration, authentication, dashboard pages, and
advanced setup, see the Debugging section of the Fedify manual.
Installation
deno add jsr:@fedify/debugger
npm add @fedify/debugger
pnpm add @fedify/debugger
yarn add @fedify/debugger
bun add @fedify/debugger