Instance

A self-hosted service registered in the directory. Each instance has a URL, type (e.g. SearXNG, Invidious), name, region, health history, and priority score.

Instance Type

The category of service. Examples: searxng (meta-search engine), invidious (YouTube proxy). The directory supports multiple types and can be extended.

Relay

The server running the Relay software. It maintains an instance store, runs health checks, exposes an API, and participates in the gossip mesh.

Gossip Mesh

A network of relays that share instance directories with each other. When one relay discovers a new instance, it propagates through the mesh at configurable intervals. No central registry.

Peer

Another relay that your relay talks to. Configured via --peers or RELAY_PEERS. Your relay pulls instances from peers and merges them into its own directory.

Health Check

An automatic HTTP ping to each instance. The relay tracks: HTTP status code, response time, uptime percentage, and whether the instance is behind Cloudflare. Health checks run at a configurable interval (default 60s).

Priority Score

A composite score used to rank instances. Determined by: health status (healthy > degraded > down), average response time (lower is better), and a Cloudflare penalty (non-CF instances score higher).

Feature Toggle

Modules that can be enabled or disabled at startup via --disable or RELAY_DISABLE. Options: instances, guestbook, security. Instance directory is the primary feature.

Federation Protocol

The HTTP JSON protocol used by relays to exchange instance data. A relay exposes GET /api/v1/federation/instances for peers to pull from, and POST /api/v1/federation/instances/push to receive pushes.