ActivityPub

From HandWiki

ActivityPub is a protocol and open standard for decentralized social networking. It provides a client-to-server (C2S) API for creating and modifying content, as well as a federated server-to-server (S2S) protocol for delivering notifications and content to other servers.[1] ActivityPub is the defining standard of the Fediverse, a decentralised social network of various social interaction models, and content types, which consists of independently managed instances of software such as Mastodon, Pixelfed and PeerTube, among others.[2]

ActivityPub is considered to be an update to the ActivityPump protocol used in pump.io, and the official W3C repository for ActivityPub is identified as a fork of ActivityPump.[3][4] The creation of a new standard for decentralized social networking was prompted by the complexity of OStatus, the most commonly used protocol at the time. OStatus was built using a multitude of technologies (such as Atom, Salmon, WebSub and WebFinger), a product of the infrastructure used in GNU social (the originator and largest user of the OStatus protocol), which made it difficult to implement the protocol into new software. OStatus was also only designed to work with microblogging services, with little flexibility to the types of data that it could hold.

The standard was first published by the World Wide Web Consortium (W3C) as a W3C Recommendation in January 2018 by the Social Web Working Group (SocialWG), a working group chartered to build the protocols and vocabularies needed to create a standard for social functionality.[5] Shortly after, further development was moved to the Social Web Community Group (SocialCG), the successor to the SocialWG.

Design

ActivityPub uses the ActivityStreams 2.0 format for building its content, which itself uses JSON-LD. The three main data types used in ActivityPub are Objects, Activities and Actors. Objects are the most common data type, and can be images, videos, or more abstract items such as locations or events. Activities are actions that create and modify objects, for example a Create activity creates an object. Actors are representative of an individual, a group, an application or a service, and are the owners of objects.

Every actor type contains an inbox and outbox stream, which sends and receives activities for a user. In order to publish data (for example liking an article), a user creates an activity that declares that they liked an Article object and publishes it to their outbox, where it is then delivered by the ActivityPub server via a POST request to the inboxes listed in the activity's to, bto, cc and bcc fields. The receiving servers then account for the newly received activity and update the article by adding the like action to it.

Example data

An example actor object that represents a user account:[6]

{
  "@context": ["https://www.w3.org/ns/activitystreams",
               {"@language": "ja"}],
  "type": "Person",
  "id": "https://kenzoishii.example.com/",
  "following": "https://kenzoishii.example.com/following.json",
  "followers": "https://kenzoishii.example.com/followers.json",
  "liked": "https://kenzoishii.example.com/liked.json",
  "inbox": "https://kenzoishii.example.com/inbox.json",
  "outbox": "https://kenzoishii.example.com/feed.json",
  "preferredUsername": "kenzoishii",
  "name": "石井健蔵",
  "summary": "この方はただの例です",
  "icon": [
    "https://kenzoishii.example.com/image/165987aklre4"
  ]
}

An example activity that likes an article object:

{
  "@context": ["https://www.w3.org/ns/activitystreams",
               {"@language": "en"}],
  "type": "Like",
  "actor": "https://dustycloud.org/christine/",
  "summary": "Christine liked 'Minimal ActivityPub update client'",
  "object": "https://rhiaro.co.uk/2016/05/minimal-activitypub",
  "to": ["https://rhiaro.co.uk/#amy",
         "https://dustycloud.org/followers",
         "https://rhiaro.co.uk/followers/"],
  "cc": "https://e14n.com/evan"
}

An example article object:

{
  "@context": ["https://www.w3.org/ns/activitystreams",
               {"@language": "en-GB"}],
  "id": "https://rhiaro.co.uk/2016/05/minimal-activitypub",
  "type": "Article",
  "name": "Minimal ActivityPub update client",
  "content": "Today I finished morph, a client for posting ActivityStreams2...",
  "attributedTo": "https://rhiaro.co.uk/#amy",
  "to": "https://rhiaro.co.uk/followers/",
  "cc": "https://e14n.com/evan"
}

Project status

The SocialCG previously organized a yearly free conference called ActivityPub Conf about the future of ActivityPub.[7][8] Triages are held regularly to review issues pertaining to the ActivityPub and ActivityStreams 2.0 specifications as part of the SocialCG.[9]

In 2023, Germany's Sovereign Tech Fund donated €152,000 to socialweb.coop with the goal of building a new suite for testing various ActivityPub implementations and their compliance with the specification.[10]

Adoption

The initial wave of adoption for ActivityPub (circa 2016–2018) came from software that was already using OStatus as their federation protocol, such as Mastodon, GNU social and Pleroma.[11] Following the acquisition of Twitter by Elon Musk in 2022, many groups of users that were critical of the acquisition migrated to Mastodon, bringing new attention to the ActivityPub protocol with it.[12] Various major social media platforms and corporations have since pledged to implement ActivityPub support, including Tumblr,[13] Flipboard[14] and Meta Platforms' Threads.[15] Threads introduced crossposting to ActivityPub in 2024 for users outside of the European Economic Area,[16] however full 2-way compatibility remains incomplete as of 2025.[17]

Criticism

Accidental denial-of-service attacks

Poorly optimized ActivityPub implementations can cause unintentional distributed denial-of-service (DDOS) attacks on other websites and servers, due to the decentralized nature of the network. An example would be Mastodon's implementation of OpenGraph link previews, wherein every instance that receives a post that contains a link with OpenGraph metadata will download the associated data, such as a thumbnail, in a very short timeframe, which can slow down or crash servers as a result of the sudden burst of requests.[18][19]

Account migration

ActivityPub has been criticized for not natively supporting moving accounts from one server to another, forcing implementations to build their own solutions.[20] While there has been work on building a standardized system for migrating accounts using the Move activity via the Fediverse Enhancement Proposal organization, the current proposal only allows for basic follower migration, with all other data remaining linked to the original account.[21]

Missing content and data

ActivityPub implementations have been criticized for missing replies and parts of reply threads from remote posts, and presenting outdated statistics (e.g. likes and reposts) about remote posts.[22][23] However, this isn't a problem with the ActivityPub protocol itself, but with implementations not refreshing their content for updated data when needed.[24][25]

Software using ActivityPub

Software name Total users[26][27] Initial ActivityPub-compatible release Type of software Fork of
Akkoma 9,530 2022[28] Blogging Pleroma
BookWyrm[29] 49,600 2021[30] Book cataloging
Castopod 818 podcasts[31] 2020[32] Audio hosting
Discourse ? 2025[33] Internet forum
dokieli ? 2018[34] Authoring system, Blogging, Notification system, Semantic publishing, Web annotation
Epicyon 3 2019[35] Blogging
Firefish 4,560 2022[36] Blogging Misskey
Flipboard[37] 145,000,000[38] 2023[39][40] Social news
Friendica[41] 19,800 2019 Blogging, event management, groups, image gallery
Funkwhale 8,850 2018[42] Audio hosting
Gancio[43] 1,900 2020[44] Calendar, event planner
Ghost[45][46] ? 2025 (in beta)[47] Blogging
GNU social 93 2018[48] Blogging
Guppe[49] not relevant 2021[50] Groups
GoToSocial 38 2021[51] Blogging
Hollo 64 2024[52] Blogging
Honk 6 2019[53] Blogging
Hubzilla[54] 6,740 2017 Blogging, event planner, file hosting, image gallery, wiki
Iceshrimp[55] ? 2023 Blogging Firefish
Iceshrimp.NET[56] ? 2024 Blogging
Inventaire.io[57] ? 2021 Book cataloging
kbin[58] 507 2023 Social news
Lemmy[59] 485,000 2019 Social news
Libervia[60] ? 2022 (in beta) Blogging, event management, file sharing, instant messaging
lotide[61] 462 2020[62] Social news
Mastodon 7,960,000 2017[63] Blogging
Mobilizon 76,900 2020 Event management, groups
mbin[64] 6,950 2023 Social news kbin
Micro.blog 198,000 2021[65] Microblogging
microblog.pub 39 2022[66] Blogging
Misskey 1,052,511 2018[67] Blogging
Nextcloud Social 50 (approx.) 2018[68] Blogging
NodeBB 2,750,000 2025[69] Internet forum
Owncast[70] 191 2022 Live streaming
PeerTube[71] 473,000 2018 Video sharing
PieFed 1,116[72] 2023[73] Social News
Pixelfed[74] 857,000 2018 Image sharing
Pleroma 52,000 2018[75] Blogging
Plume[76] 24,400 2018[77] Blogging
Postmarks[78] 25 2023[79] Social bookmarking
Sharkey[80] 23,100 2023 Blogging Misskey
Snac[81] 3,070 2022[82] Blogging
Socialhome 3,000 2016[83] Blogging
Streams[84] ? 2022[85] Blogging, image sharing, wiki
Takahē 341 2022[86] Blogging
Threads 130,000,000[87] 2023[88] Blogging
Wafrn[89] 2,480 2023 Blogging
WordPress[90][91] 29,100 in 6,000+ blogs[92] 2023[93] Blogging
WriteFreely 73,200 2018[94] Blogging
Zap[95] 1 2019[96] Blogging, file hosting, image gallery

Future implementations

Uncertain future implementations

  • GitLab, a Git forge and development platform which had previously had an open issue discussing the topic, but was later closed due to the development team moving focus to other areas.[98]
  • Tumblr, a microblogging platform. Despite previous statements from Automattic CEO Matt Mullenweg,[99][100][101] ActivityPub integration has been delayed indefinitely. The integration would have been implemented with its WordPress migration, as the first-party plugin for interoperability would have been used for federation.[102]

See also

References

  1. "W3C Recommendation 23 January 2018". https://www.w3.org/TR/2018/REC-activitypub-20180123/. 
  2. Pierce, David (February 7, 2024). "The fediverse, explained" (in en). https://www.theverge.com/24063290/fediverse-explained-activitypub-social-media-open-protocol. 
  3. w3c/activitypub, World Wide Web Consortium, June 20, 2024, https://github.com/w3c/activitypub, retrieved June 22, 2024 
  4. "Sandstorm and the Social Web". May 29, 2016. https://zenhack.net/2016/05/29/sandstorm-and-the-social-web.html. 
  5. "Social Web Working Group" (in en). https://www.w3.org/groups/wg/social/. 
  6. "ActivityPub Specification". January 23, 2018. https://www.w3.org/TR/activitypub/#client-addressing. 
  7. "ActivityPub Conf 2019". https://redaktor.me/apconf/. 
  8. "ActivityPub Conf 2020". https://conf.activitypub.rocks/. 
  9. "W3C Social Web Incubator Community Group Mailing List". https://www.w3.org/Search/Mail/Public/search?type-index=public-swicg&index-type=t&keywords=issue+triage&search=Search. 
  10. "ActivityPub Test Suite" (in en). https://www.sovereigntechfund.de/tech/activitypub-test-suite. 
  11. "Pleroma Encyclical: ActivityPub" (in en-US). February 10, 2018. https://blog.soykaf.com/post/pleroma-encyclical-activity-pub/. 
  12. MacManus, Richard (November 15, 2022). "Devs Are Excited by ActivityPub, Open Protocol for Mastodon" (in en-US). https://thenewstack.io/devs-are-excited-by-activitypub-open-protocol-for-mastodon/. 
  13. Perez, Sarah (November 21, 2022). "Tumblr to add support for ActivityPub, the social protocol powering Mastodon and other apps" (in en-US). https://techcrunch.com/2022/11/21/tumblr-to-add-support-for-activitypub-the-social-protocol-powering-mastodon-and-other-apps/. 
  14. McCue, Mike (December 18, 2023). "Flipboard Begins to Federate" (in en-US). https://about.flipboard.com/inside-flipboard/flipboard-begins-to-federate/. 
  15. Guinness, Harry (July 12, 2023). "How ActivityPub is setting the stage to weave all your social media feeds together" (in en-US). https://www.popsci.com/technology/activitypub-fediverse/. 
  16. Su, Christopher; Blackstein, Simon (March 21, 2024). "Threads has entered the fediverse". Meta. https://engineering.fb.com/2024/03/21/networking-traffic/threads-has-entered-the-fediverse/. 
  17. Perez, Sarah (June 17, 2025). "Threads expands open social web integrations with fediverse feed, user profile search" (in en-US). https://techcrunch.com/2025/06/17/threads-expands-open-social-web-integrations-with-fediverse-feed-user-profile-search/. 
  18. "Please Don't Share Our Links on Mastodon: Here's Why!" (in en). May 1, 2024. https://news.itsfoss.com/mastodon-link-problem/. 
  19. Balkan, Aral (November 9, 2022). "Is the fediverse about to get Fryed? (Or, 'Why every toot is also a potential denial of service attack')" (in en). https://ar.al/2022/11/09/is-the-fediverse-about-to-get-fryed-or-why-every-toot-is-also-a-potential-denial-of-service-attack/. 
  20. "FAQ | AT Protocol". https://atproto.com/guides/faq#why-not-use-activitypub. 
  21. fediverse. "FEP-7628" (in en-US). https://codeberg.org//fediverse/fep/src/branch/main/fep/7628/fep-7628.md. 
  22. Wave, Setsune (December 17, 2023). "This is a serious problem the fediverse has..." (in en). https://furries.club/@Setsune/111596877006547564. 
  23. Armando, Armando (June 19, 2024). "I think one of the things that most annoy newcomers to the #Fediverse is...". https://fedia.social/notes/9uoxk3dsm6a3w1vx. 
  24. Nedelcu, Alexandru (December 21, 2022). "Missing replies · Mastodon · Discussion #22608" (in en). https://github.com/mastodon/mastodon/discussions/22608. 
  25. Prodromou, Evan (June 19, 2024). "All of that information is available through ActivityPub..." (in en). https://cosocial.ca/@evan/112641540530853533. 
  26. "Fediverse Observer" (in en). https://fediverse.observer/. 
  27. "FediDB, Fediverse Network Statistics" (in en). https://fedidb.org/. 
  28. "Akkoma: A vision to refocus Pleroma" (in en). June 24, 2022. https://coffee-and-dreams.uk/development/2022/06/24/akkoma.html. 
  29. bookwyrm. "Bookwyrm". https://bookwyrm.social/. 
  30. "BookWyrm (@bookwyrm@tech.lgbt)" (in en). May 6, 2021. https://tech.lgbt/@bookwyrm/106189922705252293. 
  31. "Castopod Index" (in en). https://index.castopod.org/. 
  32. "Release v1.0.0-alpha.1: chore(release): 1.0.0-alpha.1 [skip ci · ad-aures/castopod"] (in en). https://github.com/ad-aures/castopod/releases/tag/v1.0.0-alpha.1. 
  33. "Discourse and the Fediverse!" (in en). April 23, 2025. https://blog.discourse.org/2025/04/discourse-and-the-fediverse/. 
  34. "ActivityPub implementation reports". https://activitypub.rocks/implementation-report/. 
  35. "Epicyon 1.0 release | LibreServer Blog". https://blog.libreserver.org/epicyon-1-0-release. 
  36. "firefish". https://codeberg.org/firefish/firefish/releases/tag/v12.117.1-calc. 
  37. Perez, Sarah (May 23, 2023). "Flipboard becomes first app to support Bluesky, Mastodon and Pixelfed all in one place". https://techcrunch.com/2023/05/23/flipboard-becomes-first-to-support-bluesky-mastodon-and-pixelfed-all-in-one-app/. 
  38. "Twitter, Who? Flipboard Adds Mastodon Features, Pushing Further Into Social Networking" (in en). https://www.cnet.com/news/twitter-who-flipboard-adds-mastodon-features-pushing-further-into-social-networking/. 
  39. "Flipboard is pivoting to ActivityPub and the fediverse". December 18, 2023. https://www.theverge.com/2023/12/18/24006062/flipboard-fediverse-mastodon-activitypub-profiles-social. 
  40. McCue, Mike (December 19, 2023). "Flipboard Begins to Federate" (in en). https://medium.com/@mmccue/flipboard-begins-to-federate-4a80d6bdc209. 
  41. "Friendica 2019.01 released". https://friendi.ca/2019/01/21/friendica-2019-01-released/. 
  42. Collective, Funkwhale. "Funkwhale Blog ~ Funkwhale 0.17 is out!" (in en). https://blog.funkwhale.audio/funkwhale-017-is-out.html. 
  43. "Home". https://gancio.org/. 
  44. "v0.21.0 · les / gancio · GitLab" (in en). https://framagit.org/les/gancio/-/releases/v0.21.0. 
  45. Ahooja, Anuj (April 22, 2024). "Substack Competitor Ghost Announces ActivityPub Integration" (in en-US). https://wedistribute.org/2024/04/ghost-implements-activitypub/. 
  46. Patel, Nilay (April 22, 2024). "Newsletter platform Ghost adopts ActivityPub to 'bring back the open web'" (in en). https://www.theverge.com/2024/4/22/24137296/ghost-newsletter-activitypub-fediverse-support. 
  47. "Social web (beta)" (in en). April 1, 2025. https://ghost.org/changelog/social-web-beta/. 
  48. diogo. "diogo/gnu-social". https://notabug.org/diogo/gnu-social. 
  49. immers-space. "Decentralized social groups for ActivityPub". https://github.com/immers-space/guppe. 
  50. "Release First major release · immers-space/guppe" (in en). https://github.com/immers-space/guppe/releases/tag/v1.0.0. 
  51. "Release v0.1.0 · superseriousbusiness/gotosocial" (in en). https://github.com/superseriousbusiness/gotosocial/releases/tag/v0.1.0. 
  52. "Release Hollo 0.1.0 · dahlia/hollo" (in en). https://github.com/dahlia/hollo/releases/tag/0.1.0. 
  53. "honk 0.1". https://flak.tedunangst.com/post/honk. 
  54. "Hubzilla - Frequently asked questions". https://hubzilla.org/page/hubzilla/faq. 
  55. iceshrimp. "iceshrimp" (in en-US). https://iceshrimp.dev/iceshrimp/iceshrimp. 
  56. iceshrimp. "Iceshrimp.NET" (in en-US). https://iceshrimp.dev/iceshrimp/Iceshrimp.NET. 
  57. "Inventaire toot". December 7, 2021. https://mamot.fr/@inventaire/107405333892235843. 
  58. "kbin.pub - Fediverse of content". https://kbin.pub/en. 
  59. "Lemmy - ActivityPub for link aggregation". https://nlnet.nl/project/Lemmy/. 
  60. "Libervia progress note 2022-W45". November 2022. https://salut-a-toi.org/blog/view/goffi@goffi.org/@/id/libervia-progress-note-2022-w45-MTdL. 
  61. "lotide". https://sr.ht/~vpzom/lotide/. 
  62. "Release v0.1.1 · lotide-org/lotide" (in en). https://github.com/lotide-org/lotide/releases/tag/v0.1.1. 
  63. "Release v1.6.0 · mastodon/mastodon" (in en). https://github.com/mastodon/mastodon/releases/tag/v1.6.0. 
  64. MbinOrg/mbin, Mbin, June 22, 2024, https://github.com/MbinOrg/mbin, retrieved June 23, 2024 
  65. "ℹ️ Mastodon and ActivityPub" (in en). March 8, 2021. https://help.micro.blog/t/mastodon-and-activitypub/95. 
  66. "Release 2.0.0-rc.1 · tsileo/microblog.pub" (in en). https://github.com/tsileo/microblog.pub/releases/tag/2.0.0-rc.1. 
  67. "ActivityPub対応国産SNS「Misskey」、LTLも実装". https://www.itmedia.co.jp/news/articles/1804/17/news124.html. 
  68. Poortvliet, Jos (December 10, 2018). "Nextcloud introduces social features, joins the fediverse". https://nextcloud.com/blog/nextcloud-introduces-social-features-joins-the-fediverse/. 
  69. Tilley, Sean (January 20, 2025). "NodeBB Officially Joins the Fediverse" (in en-US). https://wedistribute.org/2025/01/nodebb-officially-joins-fediverse/. 
  70. "Owncast v0.0.11". March 5, 2022. https://owncast.online/releases/owncast-0.0.11. 
  71. "Server-Server - ActivityPub implementation reports". https://activitypub.rocks/implementation-report/. 
  72. "Error: no |title= specified when using {{Cite web}}". https://fedidb.com/software?page=3&software=piefed. 
  73. "Blog - Page 3 of 3". December 11, 2023. https://join.piefed.social/blog/page/3/. 
  74. Krasnoff, Barbara (August 2022). "Eight photo-centric social sites that are not Instagram". https://www.theverge.com/23280518/instagram-flickr-vero-photos-social-networks. 
  75. "ActivityPub in Pleroma" (in en-US). March 4, 2018. https://blog.soykaf.com/post/activity-pub-in-pleroma/. 
  76. joinplu.me. "Plume". https://joinplu.me/. 
  77. "Release 0.2.0 (Alpha 1) · Plume-org/Plume" (in en). https://github.com/Plume-org/Plume/releases/tag/0.2.0-alpha-1. 
  78. "postmarks". https://github.com/ckolderup/postmarks. 
  79. "Postmarks" (in en). September 5, 2023. https://motd.co/2023/09/postmarks-launch/. 
  80. "FediDB, Fediverse Network Statistics" (in en). https://fedidb.org/software/sharkey. 
  81. "Snac - A simple, minimalistic ActivityPub instance written in portable C" (in en-US). https://codeberg.org/grunfink/snac2. 
  82. grunfink. "snac2" (in en-US). https://codeberg.org/grunfink/snac2. 
  83. "Release v0.1.1: Merge pull request #6 from jaywink/travisify · jaywink/socialhome" (in en). https://github.com/jaywink/socialhome/releases/tag/v0.1.1. 
  84. "streams". https://codeberg.org/streams/streams. 
  85. "Official release" (in en). https://macgirvin.com/channel/mike?mid=https://macgirvin.com/item/d0d37b08-8522-480c-b0a1-23bf65bd26d5. 
  86. "Release 0.3.0 · jointakahe/takahe" (in en). https://github.com/jointakahe/takahe/releases/tag/0.3.0. 
  87. Perez, Sarah (February 2024). "Threads now reaches more than 130 million monthly users, says Meta, up 30M from Q3". https://techcrunch.com/2024/02/01/threads-now-reaches-more-130-million-monthly-users-says-meta-up-30m-from-q3/. 
  88. Davis, Wes (December 13, 2023). "Threads is officially starting to test ActivityPub integration" (in en). https://www.theverge.com/2023/12/13/24000120/threads-meta-activitypub-test-mastodon. 
  89. García, Gabriel Amador (June 21, 2024), gabboman/wafrn, https://github.com/gabboman/wafrn, retrieved June 22, 2024 
  90. "ActivityPub for WordPress". https://github.com/Automattic/wordpress-activitypub. 
  91. "Engage a Wider Audience With ActivityPub on WordPress.com" (in en-US). https://wordpress.com/blog/2023/10/11/activitypub/. 
  92. Pfefferle, Matthias; Automattic. "ActivityPub" (in en-US). https://wordpress.org/plugins/activitypub/. 
  93. Sato, Mia (October 11, 2023). "WordPress now offers official support for ActivityPub" (in en). https://www.theverge.com/2023/10/11/23913278/wordpress-activitypub-official-plugin-automattic-fediverse-mastodon. 
  94. WriteFreely (November 10, 2018). "Hello, World" (in en). https://blog.writefreely.org/hello-world. 
  95. "Zap". https://zotlabs.org/page/zap/zap. 
  96. "Zap". https://zotlabs.org/page/zap/zap. 
  97. "First forgejo monthly update - December 2022" (in en). December 26, 2022. https://forgejo.org/2022-12-26-monthly-update/. 
  98. "Support ActivityPub for merge requests (&11247) · Epics · GitLab.org · GitLab" (in en). https://gitlab.com/groups/gitlab-org/-/epics/11247. 
  99. Perez, Sarah (November 21, 2022). "Tumblr to add support for ActivityPub, the social protocol powering Mastodon and other apps" (in en-US). https://techcrunch.com/2022/11/21/tumblr-to-add-support-for-activitypub-the-social-protocol-powering-mastodon-and-other-apps/. 
  100. Perez, Sarah (December 11, 2023). "Tumblr's 'fediverse' integration is still being worked on, says owner and Automattic CEO Matt Mullenweg" (in en-US). https://techcrunch.com/2023/12/11/tumblrs-fediverse-integration-is-still-being-worked-on-says-owner-and-automattic-ceo-matt-mullenweg/. 
  101. Perez, Sarah (February 11, 2025). "Tumblr to join the fediverse after WordPress migration completes" (in en-US). https://techcrunch.com/2025/02/11/tumblr-to-join-the-fediverse-after-wordpress-migration-completes/. 
  102. Peters, Jay (June 30, 2025). "Tumblr's move to WordPress and fediverse integration is 'on hold'" (in en-US). https://www.theverge.com/news/695124/tumblr-wordpress-automattic-fediverse-integration-on-hold-decoder. 

Template:Fediverse