English

Building a Mastodon Compatible Java Server for ActivityPub

Social and Information Networks 2024-12-13 v1

Abstract

ActivityPub is a decentralized social networking protocol that has gained significant attention from the media for its ability to communicate through the Fediverse, short for the federated web. Servers such as Mastodon implement the ActivityPub protocol to communicate over the Fediverse. In this paper, we deconstruct the core protocols used to build the distributed servers of the Fediverse. We explore Mastodon's complex implementation of ActivityPub and created our own Mastodon instance using Java Spring Boot and ActivityPub to interoperate with Mastodon servers.

Cite

@article{arxiv.2412.09011,
  title  = {Building a Mastodon Compatible Java Server for ActivityPub},
  author = {Sean Nian and Angela Huang and Ben Reed},
  journal= {arXiv preprint arXiv:2412.09011},
  year   = {2024}
}
R2 v1 2026-06-28T20:32:02.546Z