ActivityPub
W3C-standardized protocol for decentralized social networking that lets independent servers exchange posts, follows and replies across the fediverse.
ActivityPub is an open protocol for decentralized social networking, published by the World Wide Web Consortium as a Recommendation in January 2018. It defines how servers and clients create, update and deliver social activities such as posts, follows, likes and shares, so that people using different software on different servers can interact. It is the most widely used protocol of the Fediverse, the network of interconnected services that includes Mastodon, PeerTube and Pixelfed.
The protocol models every participant as an actor with an inbox and an outbox. Activities are expressed in the ActivityStreams 2.0 vocabulary, encoded as JSON-LD, and delivered from one server's outbox to the inboxes of followers on other servers. ActivityPub specifies both a client-to-server API and a server-to-server federation API, though most implementations use only the federation part and provide their own client interfaces. The standard was produced by the W3C Social Web Working Group.
By separating social networks from any single company, ActivityPub lets users choose or run their own server while keeping a shared social graph, an approach that challenges the network effect that keeps people on large platforms. Interest grew sharply after 2022, and large services including Meta's Threads, Flipboard and WordPress have added varying degrees of support. Open questions include account portability between servers, moderation across independent communities and how much interoperability large commercial platforms will actually provide.
Key points
- ActivityPub became a W3C Recommendation in January 2018.
- Each user is modeled as an actor with an inbox and outbox for exchanging activities.
- Mastodon, PeerTube and Pixelfed are among the services that federate using ActivityPub.
- Account portability and cross-server moderation remain open challenges for the protocol.
Related entries
Fediverse
Network of independently run social media servers that communicate through shared open protocols, chiefly ActivityPub, so users can interact across services.
Mastodon
Free and open-source software for running independent, interconnected microblogging servers that form a large part of the federated social web.
World Wide Web Consortium
International standards organization that develops open technical standards and guidelines for the World Wide Web, including CSS and accessibility guidelines.
JSON
Lightweight, text-based data interchange format that represents structured data as nested objects and arrays, derived from JavaScript syntax.
Interoperability
Ability of different systems, products or organizations to exchange information and make use of it, typically through shared standards and interfaces.
Open Standard
Technical standard that is publicly available and developed through an open process, so anyone can implement it, usually without restrictive royalties.
Matrix
Open standard and protocol for decentralized, federated real-time communication, supporting interoperable chat, calls and end-to-end encrypted rooms.
Network Effect
Phenomenon in which a product or service becomes more valuable to each user as more people use it, as with telephones or social networks.