Back to All Formats

ActivityPub

ActivityPub is a decentralized social networking protocol that enables users of any compliant service to communicate with users on any other compliant service, regardless of how it's implemented.

inbox.json
Since 2018
2018
First Released
4/5
GEO Score

Origin & Background

Creator
W3C Social Web Working Group
Year Introduced
2018
Alternate Names
Purpose
To provide a standardized, open protocol for decentralized social networking, enabling interoperability between different platforms.
Official Specification
View Specification

Key Benefits & Advantages

Benefits Overview

  • Enables decentralized social interactions
  • Supports federated communication between platforms
  • Standardized format for social activities

Technical Advantages

Powers decentralized social networks like Mastodon and Pleroma
Enables users to interact across different servers
Open standard promoting interoperability
Supports various social activities (create, follow, like, etc.)
Machine-readable JSON-LD format
Helps AI understand social interactions and content
Promotes user control and data ownership
Foundation for the Fediverse

SEO / GEO / LLMO Relevance

ActivityPub provides a structured format for social interactions that AI can parse, helping understand content context, relationships, and community engagement in decentralized networks.

Structured format for AI to understand social activities
Enables analysis of federated content and interactions
Helps AI categorize decentralized content
Supports understanding of user relationships in the Fediverse

Implementation Guide

Syntax Example

inbox.json
Reference
{
  "@context": "https://www.w3.org/ns/activitystreams",
  "type": "Create",
  "actor": {
    "type": "Person",
    "id": "https://mastodon.social/@alice",
    "name": "Alice"
  },
  "object": {
    "type": "Note",
    "id": "https://mastodon.social/@alice/109000000000000000",
    "content": "<p>Hello, Fediverse!</p>",
    "published": "2023-01-15T10:00:00Z",
    "attributedTo": "https://mastodon.social/@alice",
    "to": [
      "https://mastodon.social/public"
    ]
  },
  "to": [
    "https://mastodon.social/public"
  ],
  "published": "2023-01-15T10:00:00Z"
}

Troubleshooting & Best Practices

Comparison to Alternative Formats

Alternative Formats
When to Use ActivityPub

Use ActivityPub for any decentralized social networking application or service that needs to interoperate with other Fediverse platforms. It's the current W3C standard for federated social interactions.

Advantages

  • +W3C standard for decentralized social networking
  • +Powers major Fediverse platforms
  • +Open and interoperable
  • +Supports diverse social activities

Limitations

  • Complexity in implementation
  • Discovery of users/services across the network can be challenging
  • Abuse and moderation are complex in decentralized systems

Popular Use Cases

Decentralized Social Networks

Building and connecting social platforms in a federated manner

Example:
Mastodon, Pleroma, Friendica, PeerTube

Content Federation

Sharing content and activities across different services

Example:
Blog posts, comments, media sharing

Social Analytics

Analyzing social interactions and trends in a decentralized ecosystem

Example:
Tracking engagement across federated services

Real-World Adoption Examples

Mastodon

A popular decentralized social network using ActivityPub

Pleroma

Another microblogging platform using ActivityPub

PeerTube

A decentralized video-sharing platform utilizing ActivityPub

Pixelfed

A decentralized, federated image sharing platform

Frequently Asked Questions

Automated Generation

Start Using ActivityPub with Geordy

Geordy automatically generates and maintains ActivityPub files for your website, ensuring optimal AI visibility without manual work.