TL;DR

  • There are decentralised protocols for the social web: ATProto and ActivityPub
  • While different in the details, the goal is to avoid a central authority on the social web
  • ActivityPub resembles how email works with servers federating with other servers
  • ATProto separates services from data and identity

Remember when we all were hanging out on Twitter? Yes, before it turned to shit and before it was owned by Phony Stark?

I do. I wrote a tiny client back in 2009. It sat in the system area of my taskbar and showed a little popup when someone mentioned me in a Tweet. I made friends there, I found news before the news agencies picked them up and I stayed in touch with people across the globe who I met at conferences.

It was a great time.

Then they turned away from the ecosystem and locked things down. Then came the Musk-a-geddon and the subsequent downfall into an angry mob and spam shite.

Where were we - centralised social networks

When it all shattered and people left the platform in droves it became clear that we should not put our trust in a single authority (in this case the platform formerly known as Twitter).

The whole social network depends on a central place, a central authority

So, delegating the whole social network to a central authority is not a good idea. For so many reasons, like:

  • censorship: If the network owner doesn't like something, they can unilaterally decide to ban anyone from the network with little pushback possible
  • privacy: The network owner sees all your data and behaviour in their apps and on their websites, so they gather usage and behavioural data from you, too. They can sell that data to third parties or use it to target advertising to your profile and show you ads that might reinforce negative behaviour.
  • ranking and visibility: Some opaque provider chooses what and who you'll see in your feed, how often you see which content and how often and to whom your content is shown in the network. So people you care about might not show up, for example, or your content won't show up as often as you think for people who follow you.
  • availability: If the company operating the network is going out of business or suffers a larger outage, everyone is cut off everyone else. Total communication breakdown.

The infamous Fail Whale from the earlier Twitter days CC-BY-SA 2.0 - Flickr photo by Ben Ho. Original design by Yiying Lu, who is awesome, by the way.

How do we get away from it?

The fundamental idea is to create open protocols, ways that multiple systems can talk to each other and exchange information. These protocols should be "open", meaning they should be governed and developed by more than one person or organisation and documented publicly.

That should allow everyone to use these protocols to build things that work with other things using the same protocol. Wow, that sounded very abstract, let's look at a few examples.

My own data and access

I remember very well when the birdsite shut out third-party clients in January 2023. Back in 2008, I've built a small Twitter client myself. It has spent years without me using it, but still: This was a big shift. Twitter, from that point on, dictated how and where I can access my own data.

This is possible, because they store my data and control access to it.

In a decentralised network run through open protocols, I can learn how the protocol works (how data is exchanged) and how I can access it. I can build my own system to store my data and build my own access control to participate in the network, without giving control of the data or access to it to others, unless I want to.

So I can build my own apps that let me post, find people, follow them, etc.

Different choices

Many social networks try to maximise engagement. They do so by showing you shiny new things or things that elicit an emotional reaction. In doing so, they might prioritize showing you cute kitties over the boring "I liked this cool game that I found on the attic" post from a close friend.

In a decentralised network run on open protocols, you can build your own systems to prioritize content from your close friends over everything else. Or you can build an app that shows you content other apps would hide (weird side note: I remember Vienna's art museums moving to OnlyFans because it doesn't censor artworks that show nudity.)

Or you could build an app that forces you to limit your daily dose of doomscrolling. And so on and so forth. I tried grain.social as an Instagram alternative on atproto, but wanted something different - resulting in imagos that uses the same data on atproto, but adds things like albums.

Two such open protocols emerged as of today: ActivityPub and ATProto. Let's look at them!

Mastodon and ActivityPub

In ActivityPub different instances federate data for their local users to other instances in the network

ActivityPub is a W3C Recommendation and in turn based on ActivityStreams 2.0, another W3C Recommendation.

In short, it's basically organised like Email: Users authenticate themselves to a server (like you log in to your email provider). Your data lives on the server you chose (like your email being stored on your email provider's server).

This starts like the centralised example - you login to the server, you create a post on the server. And this is where it starts to differ: A message to someone else will arrive even if the other person is on a different server.

This is absolutely normal with Email - if I send an email from someguy@gmail.com to mysteryman@example.com it's normal that they'll receive my message.

But let's phrase it this way: I send a whatsapp to someone on instagram. Does it arrive? No. Or someone tweets at my LinkedIn? Do you expect the message to work? No. Why not? This isn't normal. We just learned to accept this.

With ActivityPub, you can set up your own server or join an existing server. The birdsite equivalent on ActivityPub would be Mastodon with a bunch of providers running the server for you.

Usernames for ActivityPub look very much like email addresses: user@example.com.

The whole ecosystem is called the Fediverse, the universe of federated activities, basically, I guess?

You can also find me on mastodon.social but I'm not very active there.

ActivityPub has users associated with servers and servers federate information between each other, similar to how email works

The Fediverse

In the Fediverse (which is all services using ActivityPub to work together) you have an account (or profile), let's say on mastodon.social. Then you can sign in with that account on other services, let's say you want to use pixelfed.social (the Fediverse version of a photo-sharing social network). On your first login, Pixelfed will create a user account and your data for Pixelfed will be stored on their server. Now:

  • your login data lives on your Mastodon server
  • your Mastodon posts live on your Mastodon server, too
  • your photo posts etc. live on your Pixelfed server

So each service keeps its data on its own server.

My Mastodon experience

I joined Mastodon quite early-ish, I guess, in 2016. It often got sluggish, I couldn't quite find my crowd and a lot of the discussion felt very geeky (yay! :)) but also quite pedantic (nay :()

I set up my own server at some point, to try it out. Setup was easy, running it was somewhat easy (there were a few updates that felt a bit hairy, but overall it was fine). But I noticed some missed messages and some hiccups here and there, but that was all fine.

I also noticed that when I switch applications in the Fediverse, I have to create new accounts. I can sign into Pixelfed or Peertube with my Mastodon account, sure, but they then ask me to create a profile within their service.

In the end, for some reason that is still somewhat intangible to me today, I didn't feel at home there, though. Very esoteric, very vague, I know.

Bluesky and ATproto

In 2023, I joined Bluesky. The other promising decentralised social network run on a different open protocol, called ATproto. I have since created a different account, two years later that started as my test account for tinkering with ATproto.

The ecosystem around ATproto - the "Authenticated Transfers" protocol - is often called the "atmosphere" (or how I like to spell it: "ATmosphere"). So like the Fediverse, there's the ATmosphere of decentralised social web services.

I won't bore you to death with details, but this works slightly differently than ActivityPub and "recently" got a working group at IETF.

Users authenticate with their personal data server and services use data in the PDS

Separating data and services

The biggest difference between the ATmosphere and the Fediverse is the separation between your identity (including your data) and the services.

When you create an account in the ATmosphere, you get a handle (we will discuss this in a moment) from the service where you create your account. Your data will be stored with the service in a Personal Data Server, aka PDS.

A cryptographic mechanism ties my identity to a PDS and all my data lives in the PDS I choose. This is the main difference: Instead of each service keeping some of my data, my PDS keeps all of it. Every service then authenticates me through my ATmosphere identity (similar to how I can log in with any Fediverse account into other Fediverse services), but stores data in my repository on my PDS.

Handles and DIDs

In ATproto you have two ways to identify your account: A handle that looks like a domain (ATproto handles usually add an @ at the beginning to make it obvious that it's not just a domain, but an ATproto handle). You can either use your own domain, like I do with my handle @splitti.online or you can use a subdomain of the service you use. For example Bluesky users by default have handles in the form @username.bsky.social.

The other identifier is called a DID (Distributed IDentifier). It's a W3C Recommendation and defines how these work. The identifier is tying things together - cryptographic keys, my handle and my PDS.

Here's how that looks in my case:

{
  "@context": [
      "https://www.w3.org/ns/did/v1",
      "https://w3id.org/security/multikey/v1",
      "https://w3id.org/security/suites/secp256k1-2019/v1"
  ],
  "id": "did:plc:oe36mdjaqxkfck7w7rzziafo",
  "alsoKnownAs": [
      "at://splitti.online"
  ],
  "verificationMethod": [
      {
          "id": "did:plc:oe36mdjaqxkfck7w7rzziafo#atproto",
          "type": "Multikey",
          "controller": "did:plc:oe36mdjaqxkfck7w7rzziafo",
          "publicKeyMultibase": "zQ3shjgkQz2iDhJtMo4N7CLTaJGeYLb5HrvFFLWpR5xhZjSSB"
      }
  ],
  "service": [
      {
          "id": "#atproto_pds",
          "type": "AtprotoPersonalDataServer",
          "serviceEndpoint": "https://eurosky.social"
      }
  ]
}

This is my ATmosphere identity. It contains information on where my PDS is (https://eurosky.social), what my current handle is (@splitti.online) and some crypto key information to verify it's me.

My experience with the ATmosphere

So far it's been great. I found my crowd on Bluesky, I use feeds and lists to find things that are interesting to me (and I have many interests, just not all at the same time.). The mood was mostly chill and I felt welcome. I then started exploring more applications on the ATmosphere and slowly started replacing centralised services with decentralised ones.

I've been using a bunch of ATmosphere services, such as

  • Bluesky as my birdsite replacement,
  • grain.social as my Instagram replacement,
  • popfeed as my alternative to Letterboxd (tracking movies I saw) and GoodReads (tracking books I read)
  • beehive to replace GoodReads before I discovered Popfeed.
  • teal.fm to replace LastFM and store my Spotify listening history
  • sifa.id as a LinkedIn alternative
  • leaflet to run a blog on ATproto

I experimented with a bunch more, but these are the applications that I use more or less regularly. The exception is grain.social because I've built my own app, Imagos which uses the data from grain.social and extends it with a few features.

Taking my data with me

I also realised that I'm not okay with my data being stored in the US, when I have alternatives available. I ran my own PDS at some point, which was easy enough to do - and the migration was silky-smooth, thanks to the PDSMoover. I also use the backup service that Bailey Townsend provides for free.

So my data started on the Bluesky PDS, then seamlessly moved to my own PDS, then to Eurosky (because I can't be arsed to run my own PDS). Then I wanted to import my massive Spotify history into teal.fm and to avoid hitting the rate limit during that process, I moved my data to my own PDS again and once it was done back to Eurosky. 🤣

That proves, that I truly control my data. All my services keep working, no matter where my data sits and moving between PDSes was easy.

My takeaway

I'm done with centralised services. Whenever possible, I choose something on the ATmosphere. Because my data stays in a place I have control over. I've seen what services on the atmosphere can do and how interoperable things are (like Imagos using data from Bluesky and grain.social). So if I don't like a service, I move to another one that uses the data I already have.

It's bring your own data and it's an exciting ecosystem. Go try it out!