Fedify 2.0.0
Released on February 22, 2026.
@fedify/fedify
-
Remove
contextLoaderoption (which was deprecated) fromFederationOptionsinterface in favor ofcontextLoaderFactoryoption for better flexibility. [#376, #445 by Hasang Cho] -
Migrated from @phensley/language-tag package and its
LanguageTagclass to the standardizedIntl.Localeclass for representing language tags. [#280, #392 by Jang Hanarae]- The
LanguageString.languageproperty is nowLanguageString.localeand is of typeIntl.Localeinstead ofLanguageTag. - The
LanguageStringconstructor now accepts either anIntl.Localeobject or a string for the language parameter. - The
Link.languageproperty is now of typeIntl.Localeinstead ofLanguageTag. - Removed the
@phensley/language-tagdependency.
- The
-
Remove
documentLoaderoption (which was deprecated) fromFederationOptionsinterface in favor ofdocumentLoaderFactoryoption for better flexibility. [#376, #393 by Hasang Cho] -
Remove
CreateFederationOptions<TContextData>interface (which was deprecated since 1.6.0). UseFederationOptions<TContextData>instead. [#376] -
Remove
fetchDocumentLoader()function (which was deprecated since 0.14.0). UsegetDocumentLoader()from@fedify/vocab-runtimeinstead. [#376] -
Remove
{ handle: string }parameter form fromsendActivity(),forwardActivity(),getDocumentLoader(), andParseUriResult. Use{ identifier: string }or{ username: string }instead. [#376] -
Changed NodeInfo
software.versionfield type fromSemVertostringto properly handle non-SemVer version strings in accordance with the NodeInfo specification. [#366, #433 by Hyeonseo Kim]- The
parseNodeInfo()function now returns version asstringinstead ofSemVerobject. - The
Software.versionfield is now ofstring(was ofSemVer). - Removed
parseSemVer()andformatSemVer()functions. - Updated related CLI tools and documentation.
- The
-
Federation dispatchers are now only triggered when the request accepts ActivityPub-compatible content types. This improves compatibility with applications that serve both HTML and ActivityPub content from the same URLs. [#434 by Emelia Smith]
- Actor, object, and collection dispatchers will no longer be called for requests with
Accept: text/htmlor other non-ActivityPub content types. - The
notAcceptablecallback is now triggered at the middleware level before dispatchers are invoked. - If your application relies on dispatchers being called regardless of
Acceptheader, you may need to adjust your routing logic.
- Actor, object, and collection dispatchers will no longer be called for requests with
-
Changed the default activity idempotency strategy from
"per-origin"to"per-inbox"to align with standard ActivityPub behavior. [#441]- Activities are now deduplicated per inbox by default, allowing the same activity ID to be processed once per inbox independently.
- The previous
"per-origin"strategy (deduplicate per receiving server) can still be explicitly configured using.withIdempotency("per-origin"). - This change ensures proper delivery of activities to multiple inboxes on the same server, fixing issues where activities were incorrectly deduplicated globally.
-
Separated modules from
@fedify/fedify/runtimeto improve modularity and reduce coupling between vocabulary generation and core federation functionality. [#444, #451 by ChanHaeng Lee]- Modules related to ActivityPub vocabulary generation have been extracted into the new
@fedify/vocab-runtimepackage. - Other utility modules from
@fedify/fedify/runtimehave been reorganized into the@fedify/fedify/utilsdirectory within the main package. - Updated import paths throughout the codebase to reflect the new module organization.
- Modules related to ActivityPub vocabulary generation have been extracted into the new
-
Deprecated the
@fedify/fedify/runtimemodule in favor of the new@fedify/vocab-runtimepackage. The@fedify/fedify/runtimemodule now re-exports all exports from@fedify/vocab-runtimefor backward compatibility, but will be removed in a future version. Please migrate to@fedify/vocab-runtimedirectly. [#560] -
The
KvCacheParameters.rulesoption's type became[string | URL | URLPattern, Temporal.Duration | Temporal.DurationLike][](was[string | URL | URLPattern, Temporal.Duration][]). -
The
@fedify/fedify/x/*modules are removed. Also, there are no Fresh integration for now. [#391 by Chanhaeng Lee]- Removed
@fedify/fedify/x/cfworkersin favor of@fedify/cfworkers. - Removed
@fedify/fedify/x/denokvin favor of@fedify/denokv. - Removed
@fedify/fedify/x/honoin favor of@fedify/hono. - Removed
@fedify/fedify/x/sveltekitin favor of@fedify/sveltekit. - Removed
@fedify/fedify/x/fresh(Fresh integration). [#466]
- Removed
-
Deprecated the
@fedify/fedify/vocabmodule in favor of the new@fedify/vocabpackage. The@fedify/fedify/vocabmodule now re-exports all exports from@fedify/vocabfor backward compatibility, but will be removed in a future version. Please migrate to@fedify/vocabdirectly. [#437, #517 by ChanHaeng Lee] -
The
KvStore.list()method is now required instead of optional. This method was added as optional in version 1.10.0 to give existing implementations time to add support. All officialKvStoreimplementations already support this method. [#499, #506] -
Added
orderingKeyoption toMessageQueueEnqueueOptionsinterface for ordered message delivery. Messages with the same ordering key are guaranteed to be processed in the order they were enqueued, while messages with different ordering keys can be processed in parallel. This helps prevent race conditions when processing related activities (e.g., ensuring aDeleteactivity is processed after aCreateactivity for the same object). [#536, #538, #540, #544]- Added
MessageQueueEnqueueOptions.orderingKeyproperty. - All properties in
MessageQueueEnqueueOptionsare nowreadonly. InProcessMessageQueuenow supports theorderingKeyoption.- Added
SendActivityOptions.orderingKeyoption to ensure ordered delivery of activities for the same object. When specified, activities with the sameorderingKeyare guaranteed to be delivered in order to each recipient server.
- Added
-
Added
Federatable.setOutboxPermanentFailureHandler()method to handle permanent delivery failures (such as410 Goneor404 Not Found) when sending activities to remote inboxes. This allows applications to clean up unreachable followers and avoid future delivery attempts to permanently failed inboxes. [#548, #559] -
Added
permanentFailureStatusCodesoption toFederationOptionsto configure which HTTP status codes are treated as permanent delivery failures. By default,404and410are treated as permanent failures. [#548, #559] -
Added
SendActivityErrorclass, a structured error that is thrown when an activity fails to send to a remote inbox. It includes the HTTP status code, the inbox URL, and the response body, making it easier to programmatically handle delivery errors. [#548, #559] -
Added
traceIdandspanIdto LogTape context in federation middleware so that log records emitted during request handling and queue processing include the OpenTelemetry trace and span IDs in their properties. This enables the@fedify/debuggerdashboard to display per-trace logs. [#561, #564] -
Fixed unbounded memory consumption when activity delivery fails with large error responses. The
SendActivityError.responseBodyproperty is now limited to 1 KiB to prevent memory pressure when remote servers return large HTML error pages (e.g., Cloudflare error pages of 50–100 KB each). This prevents potential OOM crashes in production environments with many unreachable inboxes. [#569]
@fedify/cli
-
The Fedify CLI now runs natively on Node.js and Bun without requiring compiled binaries, providing a more natural JavaScript package experience for Node.js and Bun users. [#374, #456, #457]
-
Added
fedify generate-vocabcommand to generate Activity Vocabulary classes from schema files. This command uses the new @fedify/vocab-tools package internally and allows users to extend Activity Vocabulary with custom types. [#444, #458 by ChanHaeng Lee] -
Updated
fedify initcommand for better DX. [#397, #435 by Chanhaeng Lee]- If the directory is not empty, prompts the user for confirmation before proceeding. If the user agrees, it moves the remaining directory to trash and continue the initialization from new created directory.
- Ask again if some options is not specified or invalid.
-
The
fedify lookupcommand now supports multiple URLs with the-t/--traverseoption, allowing users to traverse multiple collections in a single command. [#408, #449 by Jiwon Kwon] -
The
fedify initcommand now supports Elysia as a web framework option, with runtime-specific templates for Deno, Bun, and Node.js environments. [#460, #496 by Hyeonseo Kim] -
Fixed a bug in the
fedify initcommand where Deno import map generation incorrectly handled dependencies with registry prefixes (e.g.,npm:), creating invalid specifiers in deno.json. [#460, #496 by Hyeonseo Kim] -
Added
fedify relaycommand to run an ephemeral ActivityPub relay server. [#510, #518 by Jiwon Kwon]- Supports both Mastodon and LitePub relay protocols via
--protocoloption. - Provides optional persistent storage via
--persistentoption with SQLite database. - Allows configuring subscription approval/rejection via
--accept-followand--reject-followoptions. - Tunnels the relay server to the public internet by default for external access, with
--no-tunneloption to run locally only.
- Supports both Mastodon and LitePub relay protocols via
-
Added
--tunnel-serviceoption tofedify lookup,fedify inbox, andfedify relaycommands to select the tunneling service (localhost.run, serveo.net, or pinggy.io). Also added--tunnel-serviceas an alias to the existing-s/--serviceoption infedify tunnelfor consistency. [#525, #529, #531 by Jiwon Kwon] -
Added configuration file support for CLI commands. The CLI now loads settings from configuration files at multiple levels, with a well-defined precedence chain. [#555, #566 by Jiwon Kwon]
- By default, configuration is loaded (in order of increasing precedence) from a system-wide configuration file (/etc/xdg/fedify/config.toml), a user-level configuration file (~/.config/fedify/config.toml), and .fedify.toml in the current directory; later files override earlier ones.
- Added
--configoption to specify a custom configuration file path; this file has the highest precedence over all other configuration sources. - Added
--ignore-configoption to skip configuration file loading. - All command options (
inbox,lookup,webfinger,nodeinfo,tunnel,relay) can now be configured via any of the configuration files.
@fedify/debugger
-
Created the @fedify/debugger package, an embedded real-time ActivityPub debug dashboard for Fedify. It wraps an existing
Federationobject as a proxy, intercepting requests to a configurable path prefix (default/__debug__) and serving an SSR-based web UI. [#561, #564]- Added
createFederationDebugger()function that returns aFederationproxy with a built-in debug dashboard. When called without anexporteroption, it automatically sets up OpenTelemetry tracing (creatingMemoryKvStore,FedifySpanExporter,BasicTracerProvider) and registers it as the global tracer provider—no manual OTel configuration needed. - Traces list page showing trace IDs, activity types, activity counts, and timestamps, with auto-polling for real-time updates.
- Trace detail page showing activity direction, type, actor, signature verification details, inbox URL, and expandable activity JSON.
- JSON API endpoint at
/__debug__/api/tracesfor programmatic access. - Added per-trace log collection using LogTape. The returned federation object now includes a
sinkproperty (a LogTapeSinkfunction) that captures log records grouped by trace ID. In the simplified overload (withoutexporter), LogTape is auto-configured. - Trace detail page now shows a “Logs” section with log level, timestamp, logger category, and message for each log record in the trace.
- JSON API endpoint at
/__debug__/api/logs/:traceIdfor retrieving log records for a specific trace. - Added optional
authconfiguration for protecting the debug dashboard with authentication. Supports three modes: password-only, username + password, and request-based (e.g., IP filtering). Each mode supports both static credentials and callback functions. Uses cookie-based sessions with HMAC-signed tokens.
- Added
@fedify/relay
-
Created ActivityPub relay integration as the @fedify/relay package. [#359, #459, #471, #490, #510, #518 by Jiwon Kwon]
- Added
Relayinterface defining the common contract for relay implementations. - Added
MastodonRelayclass implementing Mastodon-compatible relay protocol. - Added
LitePubRelayclass implementing LitePub-compatible relay protocol. - Added
SubscriptionRequestHandlertype for custom subscription approval logic. - Added
RelayOptionsinterface for relay configuration. - Added
RelayTypetype alias to document the type-safe parameter - Added
createRelay()factory function as a key public API
- Added
@fedify/vocab-tools
-
Created Activity Vocabulary code generator as the @fedify/vocab-tools package. Separated vocabulary code generation tools from the main @fedify/fedify package to improve modularity and enable custom vocabulary extensions across different JavaScript runtimes. [#444, #458 by ChanHaeng Lee]
- Made the code generator runtime-agnostic, supporting Deno, Node.js, and Bun environments.
- Provides programmatic API for generating vocabulary classes from schema files.
- Integrated with
fedify generate-vocabCLI command. - Published to both npm and JSR for broad ecosystem compatibility.
@fedify/vocab-runtime
-
Created ActivityPub vocabulary runtime as the @fedify/vocab-runtime package. Separated core vocabulary generation and processing modules from the main @fedify/fedify package to improve modularity and reduce coupling between vocabulary processing and federation functionality. [#444, #451 by ChanHaeng Lee]
- Extracted
DocumentLoader,RemoteDocument, and related types from the main package. - Moved cryptographic key processing utilities, e.g.,
importSpki,exportSpki,importMultibaseKey,exportMultibaseKey. - Relocated multibase encoding/decoding functionality.
- Separated language string processing (
LanguageStringclass). - This package is primarily used by generated vocabulary classes and provides the runtime infrastructure for ActivityPub object processing.
- Extracted
@fedify/elysia
- Added deno.json configuration file to enable proper Deno tooling support in the package. [#460, #496]
@fedify/lint
- Created Fedify linting tools as the @fedify/lint package. This package provides shared Deno Lint and ESLint configurations for consistent code style across Fedify packages and user projects. [#297, #494 by ChanHaeng Lee]
@fedify/fresh
- Created a new @fedify/fresh package that provides seamless integration between Fedify and Fresh 2.0, replacing the deprecated
@fedify/fedify/x/freshmodule that was designed for Fresh 1.x. [#466, #478 by Hyeonseo Kim]
@fedify/webfinger
- Created WebFinger utilities as the @fedify/webfinger package. This package provides tools for working with WebFinger resources, including parsing and generating WebFinger documents. [#517 by ChanHaeng Lee]
@fedify/vocab
-
Created ActivityPub Vocabulary API package as the @fedify/vocab package. This package contains the generated Activity Vocabulary classes and related types, separated from the main @fedify/fedify package to improve modularity and enable custom vocabulary extensions. The previous
@fedify/fedify/vocabmodule is now deprecated and re-exports all exports from this package for backward compatibility. [#437, #517 by ChanHaeng Lee] -
@fedify/vocabnow re-exportsLanguageString,DocumentLoader,GetUserAgentOptions, andRemoteDocumentfrom@fedify/vocab-runtimeso that downstream consumers do not need to depend on@fedify/vocab-runtimedirectly. [#560] -
Fixed
@fedify/vocab-runtimebeing bundled inline into@fedify/vocab's ESM/CJS output instead of being kept as an external dependency. This causedinstanceof LanguageStringchecks to fail because two distinctLanguageStringclasses existed at runtime. [#560]
@fedify/sqlite
-
Added
SqliteMessageQueueclass implementingMessageQueueinterface using SQLite as the backing store. This implementation uses polling to check for new messages and is suitable for single-node deployments and development environments. [#477, #526 by ChanHaeng Lee]- Added
SqliteMessageQueueclass. - Added
SqliteMessageQueueOptionsinterface.
- Added
-
SqliteMessageQueuenow supports theorderingKeyoption to ensure messages with the same ordering key are processed sequentially. [#538, #540]- Added
ordering_keycolumn to the message queue table schema. - The new table schema is created when
SqliteMessageQueue.initialize()is called on a fresh database.
- Added
@fedify/testing
-
Added
testMessageQueue()utility function for standardized testing ofMessageQueueimplementations. This function provides a reusable test harness that covers common message queue operations includingenqueue(),enqueue()with delay,enqueueMany(), and multiple listener scenarios. [#477, #526 by ChanHaeng Lee]- Added
testMessageQueue()function. - Added
waitFor()helper function. - Added
getRandomKey()helper function.
- Added
-
Added
TestMessageQueueOptionsinterface and optionaloptionsparameter totestMessageQueue()function. [#538, #540]- Added
TestMessageQueueOptionsinterface. - Added
testOrderingKeyoption to enable ordering key tests.
- Added
@fedify/redis
-
Fixed a race condition in
RedisMessageQueue.listen()where pub/sub notifications could be missed ifenqueue()was called immediately afterlisten()started. The issue occurred because the message handler was attached inside an async callback, allowing a timing window where messages could be published before the handler was ready. [#515, #532 by Jiwon Kwon] -
RedisMessageQueuenow supports theorderingKeyoption to ensure messages with the same ordering key are processed sequentially. [#538, #540]
@fedify/postgres
-
PostgresMessageQueuenow supports theorderingKeyoption to ensure messages with the same ordering key are processed sequentially. [#538, #540]- Added
ordering_keycolumn to the message queue table schema. - The new table schema is created when
PostgresMessageQueue.initialize()is called on a fresh database.
- Added
-
Fixed a race condition in
PostgresMessageQueue.initialize()where concurrent calls fromlisten()andenqueue()would run DDL statements in parallel, causing redundant table creation andALTER TABLEoperations. The initialization promise is now cached so that concurrent callers share the same work. -
Fixed
PostgresMessageQueue.listen()spawning many concurrentpoll()calls when a burst ofNOTIFYsignals arrived (e.g., from bulk enqueue of 100 messages), causing excessive database contention. Poll executions are now serialized so that at most one runs at a time, with subsequent requests queued after the current one finishes.
@fedify/amqp
-
AmqpMessageQueuenow supports theorderingKeyoption to ensure messages with the same ordering key are processed sequentially. [#538, #540]- Uses RabbitMQ's
rabbitmq_consistent_hash_exchangeplugin to route messages with the same ordering key to the same queue. - The plugin must be enabled on the RabbitMQ server for ordering key support to work.
- Uses RabbitMQ's
@fedify/cfworkers
-
WorkersMessageQueuenow supports theorderingKeyoption to ensure messages with the same ordering key are processed sequentially. [#538, #540]- Added
WorkersMessageQueueOptionsinterface withorderingKv,orderingKeyPrefix, andorderingLockTtloptions. - Added
processMessage()method to handle lock acquisition and release. - Requires a Workers KV namespace for lock management.
- Due to Workers KV eventual consistency, ordering is best-effort.
- Added
@fedify/init
-
Created project initializer as the @fedify/init package. Separated the
fedify initfunctionality from @fedify/cli into a standalone package to improve modularity and enable reuse by other tools such as@fedify/create. [#482 by Chanhaeng Lee]- Added
runInit()function as the main initialization action handler. - Added
initCommandandinitOptionsfor CLI integration. - Added
testInitCommandfor comprehensive testing of all init combinations.
- Added
@fedify/create
-
Created standalone project scaffolding CLI as the @fedify/create package. This enables creating new Fedify projects without installing the full
@fedify/clitoolchain. [#351 by Chanhaeng Lee]- Supports
npm init @fedify,pnpm create @fedify,yarn create @fedify, andbunx @fedify/create. - Uses
@fedify/initinternally for all initialization logic. - Supports the same interactive prompts and CLI options as
fedify init.
- Supports