Skip to content

Clarify and test relay package behavior #899

Description

@dahlia

Why

@fedify/relay is small, but relay behavior is easy to misunderstand because it sits between local federation code and remote server expectations. The package has tests for Mastodon and Litepub relay flows, but the documented behavior should make the supported contract clear.

Scope

Review packages/relay/src/, packages/relay/README.md, and the manual relay documentation. Tighten the docs around what createRelay() supports, which remote relay protocols are covered, and what an application still has to configure itself.

Add focused tests where the code promises behavior that is not currently covered, especially around follow setup and actor/inbox selection. Avoid broad protocol redesign in this issue.

Suggested checks

Run mise run check-each relay and hongdown --check packages/relay/README.md docs/manual/relay.md if both documents are changed.

Metadata

Metadata

Assignees

No one assigned

    Fields

    Priority

    Low

    Effort

    Medium

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions