Spyke
fediverse·FediversebyGohos

How do the different federated software interact with each other?

Hello everyone.
I am relatively new here on Lemmy, and the Fediverse, and there is still a lot I am trying to learn.
I think I understand the general theory of how the different instances and communities work here on Lemmy, but I'm struggling to understand how the different federated software interacts with each other.
For example, I understand that it is possible to follow a community, commenting on its posts, or a user subscribed to Lemmy even from Mastodon. Similarly, it is possible to follow an author on Write.as, again through Mastodon.
What I wanted to understand is what software in the Fediverse interacts with each other, how, and how do you get them to interact.
I hope someone can help me better understand how things work, as I find the idea of the Fediverse absolutely fascinating, a real breath of fresh air in the modern Internet landscape.

View original on lemmy.ml
lemmy.ml

Every user, post, community, etc. on each of these services is represented as an ActivityPub object. Let's take the example of following your Lemmy user from Mastodon. I can search for @[email protected] in Mastodon and in the background my Mastodon instance will issue the following WebFinger request to lemmy.ml: https://lemmy.ml/.well-known/webfinger?resource=acct:[email protected]. This will return the following JSON: -

{
  "subject": "acct:[email protected]",
  "links": [
    {
      "rel": "http://webfinger.net/rel/profile-page",
      "type": "text/html",
      "href": "https://lemmy.ml/u/Gohos"
    },
    {
      "rel": "self",
      "type": "application/activity+json",
      "href": "https://lemmy.ml/u/Gohos",
      "properties": {
        "https://www.w3.org/ns/activitystreams#type": "Person"
      }
    }
  ]
}

From here I can request the application/activity+json URL at https://lemmy.ml/u/Gohos and if I request JSON I get: -

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1",
    {
      "lemmy": "https://join-lemmy.org/ns#",
      "litepub": "http://litepub.social/ns#",
      "pt": "https://joinpeertube.org/ns#",
      "sc": "http://schema.org/",
      "ChatMessage": "litepub:ChatMessage",
      "commentsEnabled": "pt:commentsEnabled",
      "sensitive": "as:sensitive",
      "matrixUserId": "lemmy:matrixUserId",
      "postingRestrictedToMods": "lemmy:postingRestrictedToMods",
      "removeData": "lemmy:removeData",
      "stickied": "lemmy:stickied",
      "moderators": {
        "@type": "@id",
        "@id": "lemmy:moderators"
      },
      "expires": "as:endTime",
      "distinguished": "lemmy:distinguished",
      "language": "sc:inLanguage",
      "identifier": "sc:identifier"
    }
  ],
  "type": "Person",
  "id": "https://lemmy.ml/u/Gohos",
  "preferredUsername": "Gohos",
  "inbox": "https://lemmy.ml/u/Gohos/inbox",
  "outbox": "https://lemmy.ml/u/Gohos/outbox",
  "publicKey": {
    "id": "https://lemmy.ml/u/Gohos#main-key",
    "owner": "https://lemmy.ml/u/Gohos",
    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwDc9TbmcvR/eRx0zuXl5\nqUu8vwcU3K1/70BqLdae/HtbjqXoHbVUI3exSVOTLVmPQ4oHjf6Lq5axyRRwihTh\nbDgWYSBCqZ07L6VrgXVg2APCkFpX32XlbFbbMQDXf+kodj6YrzwelXEJ03eTDKaa\nuFkFt0Uelu1k0AZVydGYT3U2iZ0jNGvpUMWQycTJ/k0r8n61JLuEMkvkVlH4ZDGb\nGTjwjLRds/zawe8FAK/Grn+AW/UTmW/1kBLcqhkeRYzWhyrVy+/f9jf03s0rW92w\n8PWM02AAE9edIpnK2XgElfkVWJenQzw7WDp045XPHMlUh5iizAJGcPAzdeEVNLq8\nGQIDAQAB\n-----END PUBLIC KEY-----\n"
  },
  "endpoints": {
    "sharedInbox": "https://lemmy.ml/inbox"
  },
  "published": "2023-06-03T17:30:16.990908+00:00"
}

This includes two important properties: inbox and outbox. Using ActivityPub I now know I can send you a message by POSTing a request to your inbox and I can fetch posts, comments, etc. you've made via your outbox.

Your public key is also included. This is how, if you sent me a message, I can verify that the message actually came from you.

That's a very brief overview but I hope that helps!

15
lemmy.world

ActivityPub. It's a protocol just like SMTP for email. It allows these different platforms you mentioned to interact with each other. They all together form the fediverse.

6
Gohosreply
lemmy.ml

So far I have understood it.
I meant the question in the most practical way: how can I make different software in the Fediverse interact, and which ones can interact with each other?
For example, since it is possible to follow a Lemmy community on Mastodon is it also possible to do the reverse and follow a Mastodon user here on Lemmy? Or is it possible to follow a Peertube channel here on Lemmy?

3

I'm asking myself the same question. Do I need to make an account for every platform/service I'm interested in, or can I just use the same account for everything?

From what I've understood so far, the ActivityPub seems to support the integration of different platforms in theory, but there is currently no client software that can show me an integrated feed with everything.

2

All platforms on the fediverse interact because they are part of the same protocol, ActivityPub. (While there are more federated and decentralised protocols, "Fediverse" refers to ActivityPub based social network)

Other federated and/or decentralised platforms have other protocols, for example Diaspora* which has its own protocol, also supported by Hubzilla (which main protocol is Zot and also supports AP), Friendica (also AP and Ostatus) and SocialHome. Or Ostatus (GNU Social, Pleroma (also AP), and Matrix (Matrix)

A social media can interact with other social media that share the same protocol.

so Friendica can interact with Diaspora, Lemmy and GNU social, because it supports Diapora*, AP and OStatus, but the other three, being mono-protocol cannot interact with each other.

3

I tried to summarize a bit of the user experience of interacting across the family of ActivityPub apps here: https://lemmy.world/comment/37121

Quoting for convenience:

From Mastodon…

  • A Lemmy community looks like a mastodon user. You can post to the community by at-mentioning the user. The first line of the toot becomes the post name, the rest of the toot becomes the post body. If you ever see posts with the title @communityname, you can bet that’s a mastodon user who didn’t format their toot in a way that maximizes readability on Lemmy.
  • Existing posts from Lemmy look like toot threads in Mastodon, with each comment as a toot. You can reply to a comment by replying to the toot. Again, if you see a comment beginning with the username being replied to, it’s a decent bet that reply is from a mastodon user.

From kbin, Lemmy communities look like magazines, I think… and behave pretty much like communities.

Other apps may interoperate differently, or may just feel a bit broken depending on the specifics of how it uses ActivityPub compared to Lemmy.

In short, you kind of just have to try stuff and see what works. Cross-app interactions might be very useful and convenient or they might be very confusing and broken.

1

You reached the end

How do the different federated software interact with each other? | Spyke