Fediverse Discovery Providers

Exploring decentralized search and discovery for the Fediverse

A NGI Search project led by Mastodon gGmbH

Summary

This project explores the possibilities for better search and discovery on the Fediverse in the form of an optional, pluggable service. This service should be decentralized, independent of any one specific Fediverse service and respect user choice and privacy.

Motivation

The Fediverse is a decentralized network of different servers, often called “instances”, running different kinds of social media software that can interoperate by using a shared protocol, ActivityPub.

A user on a server running the microblogging service “Pleroma” can follow a user on the photo sharing service “Pixelfed” and vice-versa.

A pleroma instance, a peertube instance, a pixelfed instance and a mastodon instance all federating via the ActivityPub protocol

Today, each application (and server/instance) that participates in the Fediverse is largely independent when it comes to discovery. A basic form of user discovery is possible via the WebFinger protocol, but a real user search, discovery of content, trends and recommendations are not easily possible across the network.

More often than not, the search and discovery experience is limited to content from the instance a user is on. This poses a problem, especially on small instances.

A pleroma instance, a peertube instance, a pixelfed instance and a mastodon instance performing a local search indepent of each other

Project Goals

We will build a reference discovery provider and protocols (and an example consumer implementation, inside of Mastodon) to enable users to discover content across the rich diversity of the Fediverse.

The protocols and implementations will respect user privacy. Discovery providers should be “pluggable” - servers should be able to choose none, one or even several of them, in line with the decentralised and federated nature of the network.

A pleroma instance, a peertube instance, a pixelfed instance and a mastodon instance each using either none, one or two search providers

Privacy Concerns

Not everything that is shared on the Fediverse is meant to be public. But even with publicly shared content many creators are not comfortable with it being indexed for search purposes.

Fediverse platforms like Mastodon that offer search have thus made it opt-in and proposed a way to publish this information using the shared protocol, ActivityPub.

Our reference implementation will respect this setting and only ingest content from creators who opted in to discovery in the first place. Instances sending content to discovery providers should make sure to only send such content in the first place as well.

All other information a discovery provider gathers should be anonymous. This is especially true and important for statistics used to compute trends. Instances should only send data about likes and boosts that is anonymized.

In addition to these measures we are open to feedback about how to further ensure privacy for those that want or even need it. We recognize this is an important topic for many Fediverse users and want to make sure our proposal for discovery providers gets this right.

Community Participation

As mentioned, we are very much open to feedback. We would like to discuss all proposals with the wider Fediverse service implementer community.

If we have not made it clear enough before: Fediverse Discovery Providers are not a project just for Mastodon. We would like to make them usable and useful to as many Fediverse services as possible. For this we require feedback and engagement from fellow implementers.

That being said: The NGI Search project is on a fixed schedule and we need to meet certain deadlines. This means we might not always be able to incorporate all the feedback we get into the very first draft of everything we publish. But rest assured that we are committed to continue working on this even after this first project has ended, so we will be able to make adjustments later on.

We welcome participation on the specification Github project.

Specifications

As part of this project we will be working on specifications in two different, but related areas:

  1. A generic way to add “providers” to a Fediverse server instance. These “providers” might serve other purposes than just search and discovery, so we want to make sure server admins can easily add providers and choose which capabilities they would like to use.
  2. The server-to-server protocols between an instance and a discovery provider. This will specify how an instance will “feed” content to a discovery provider to index. And how a discovery provider can be queried to actually search and discover content.

This work takes place in this Github project.

Reference Implementation

Everyone should be able to implement the specifications above with whatever technology they prefer. But to make a proof-of-concept and provide everyone interested in creating their own providers with a starting point, we will develop a reference implementation of a discovery provider.

Project Partners

“Fediverse Discovery Providers” is a project funded by NGI Search and implemented by Mastodon gGmbH.

NGI Search is a project that funds development of innovative, open and privacy-respecting web search ideas as part of the EU’s Next Generation Internet initiative.

Mastodon gGmbH

Mastodon gGmbH is a non-profit from Germany that develops the Mastodon software. Mastodon is the leading federated microblogging platform.

FAQ

Is this for Mastodon only?

On the contrary: This project aims to specify how discovery providers can work for all services based on ActivityPub.

What if I do not want my posts to show up in search results?

Depending what service you use, privacy is handled differently. But most services will offer you different levels of privacy when you post something. Fediverse Discovery Providers should only ever index content clearly marked as “public”. In addition, some services, like Mastodon, allow you to opt-in to search and discovery explicitly. Again, Fediverse Discovery Providers should honor these settings and only index user data and content from users who have opted-into that.

Does a search and discovery provider not lead to centralization and thus go against the federated nature of ActivityPub/the Fediverse?

Absolutely not! Our proposal has federation in mind from the get-go. We want to specify how a discovery provider works and interfaces with a Fediverse server instance. We hope to inspire several competing implementations of the specification.

Also, we expect several independent installations, both public and private, of such providers. Fediverse server instances can then add whichever provider they like and even more than one provider at the same time. Two different instances could use completely different discovery providers.

How is this related to relays?

Relays can be used to get a more complete view of what is going on in the larger Fediverse. As such there are some similarities to this proposal.

From an instance operator’s point of view the biggest difference is that using a relay comes with a higher cost. The instance needs to ingest and index everything the relay sends which takes up processing power and storage. A discovery provider will do that work for one or more instances.

Implementation-wise we expect to see some similarities with how relays work, at least for real-time data. But discovery providers should be able to index historic data as well. So ingesting real-time data from instances is only part of the story. Querying instances for historic data is not currently something that relays do.