AT Protocol
Communication protocol | |
![]() | |
Purpose | Decentralized social networking |
---|---|
Developer(s) | Bluesky Social, PBC |
Introduction | October 18, 2022; 22 months ago (2022-10-18) |
Port(s) | 80, 443 |
Website | atproto |
The AT Protocol (Authenticated Transfer Protocol, commonly shortened to atproto)[1][2] is a protocol and open standard designed for building federated social networking services.[3] It is currently under development by Bluesky Social PBC, a public benefit corporation that was originally created as an independent research group for Twitter to investigate the possibility of decentralization,[4] and powers its Bluesky social network.[5][6]
The protocol has been designed to address perceived issues with other decentralized protocols, addressing account portability of user data and social graphs, as well as platform interoperability and customizable algorithms. Bluesky Social has promised to transfer development of the protocol to a standards body such as the IETF in the future, as declared by CEO Jay Graber.[7]
Design
The AT Protocol aims to create a decentralized, interoperable, and scalable online ecosystem where users can retain and manage a single federated online identity across various online platforms and services. The protocol's design prioritizes data ownership and portability, discoverability, and an integrated, customizable, user-centric online experience. Bluesky Social describes the protocol as being "modeled after the open web itself".[8]
Compared to other protocols for social networking such as ActivityPub, where implementations are typically designed as a monolithic server that hosts both user data and the application, it splits up these elements into smaller microservices, which can be used as needed.
AT Protocol clients and services interoperate through an HTTP API called XRPC that primarily uses JSON for data serialization.[9] Additionally, all data within the protocol that must be authenticated, referenced, or stored is encoded in CBOR.[10]
![](http://upload.wikimedia.org/wikipedia/commons/thumb/7/71/Bluesky%E2%80%93AT_Protocol_federation_architecture.svg/900px-Bluesky%E2%80%93AT_Protocol_federation_architecture.svg.png)
User identity
The AT Protocol utilizes a dual identifier system: a mutable domain name handle and an immutable decentralized identifier (DID). Handles serve as user-end identifiers and are verified by querying a domain's resource records. DIDs resolve to DID documents, which contain references to key user metadata, such as the user's handle, public keys, and data repository.[12]
Services can assign handles to new users upon signup using subdomains (e.g. @username.bsky.social
). Alternatively, users can set a custom domain or subdomain as their handle (e.g. @username.com
or @username.wikipedia.org
) by adding a TXT record to the domain's records associating the domain or subdomain to the user's DID.[13]
![](http://upload.wikimedia.org/wikipedia/commons/thumb/b/b4/AT_Protocol_Identity_Architecture.svg/260px-AT_Protocol_Identity_Architecture.svg.png)
The protocol's dual identifier system provides both user-friendly identifiers for use in end-user services and consistent cryptographic identities within the protocol, while also providing a robust TCP/IP-based account verification mechanism at the protocol level.
User data repositories
User data within the protocol is stored in dedicated data repositories, or "repos". Each user is associated with a single repository, over which they have exclusive management rights. Repositories contain mutable collections of user records, which log actions such as posts, likes, follows, and blocks. Records are persistent and can only be added or removed at the explicit request of the user.[14]
Each record within a repository's collection is assigned a unique record key, which is used by network agents to reference records within a user's repository. The current implementation of record keys is the timestamp identifier (TID), derived from the record's creation time.[15] Repositories store collections in a Merkle search tree, which sorts records chronologically based on their TID.[16]
Media files, along with their metadata, size, and media type, are stored separately from repositories as blobs, a type of unstructured binary data, in the user's host server.[17] This allows network agents to access and process arbitrary media files regardless of their original schema or upload context.[18]
Personal Data Servers
Personal Data Servers (PDSes) host user repositories and their associated media. They also serve as the network access point for users, facilitating repository updates, backups, data queries, and user requests.[8]
Users access the protocol by querying their PDSes, which, in turn, fetch the requested data from other services within the network. This design differs from ActivityPub, where protocol interactions and services are handled by monolithic host servers. Since network events are resolved through the protocol's network-wide indexing infrastructure, PDSes are, by design, largely inconsequential to the user experience.[19]
The AT Protocol prioritizes data portability, enabling users to back up and migrate repositories and associated media without data loss, even in the event of an adversarial PDS.[20] The design of PDSes within the protocol results in low computational requirements for operation, allowing individuals or groups to run their own PDSes without the need for significant computational resources.[3]
Although most users' repositories reside in PDSes run by Bluesky Social, many independent PDSes exist within the network.[21]
Relays and the firehose
Relays are a key component of the protocol's indexing infrastructure, serving as the core indexers within the network.[8] Relays crawl the network by continuously fetching repository updates from PDSes before aggregating, indexing, and forwarding these updates into a single network-wide data stream called the firehose.[22] The firehose is available to all network agents, and can be consumed by any service within the network.[3] Relays can choose to index all or part of the network.[8]
By eliminating the need to crawl or store user data and providing a unified data stream, relays simplify the development of applications and services in the protocol and reduce their operational costs.[23]
Relays have been criticized as being the most centralized component in the protocol's design, given their near-indispensable role in the network, high computational overhead, and the lack of clear incentives for running a relay.[24][25] Bluesky Social currently operates all known relays in the network.
App Views
App Views, analogous to current-day social networking services, are end-user platforms and services within the protocol that consume, process, and deliver data from the relay in response to queries from users' PDSes. They utilize network-wide information from the firehose, such as posts, likes, follows, and replies, to create customized user experiences within their clients.[3]
The design of App Views within the protocol allows for significant variation in implementation. App Views can implement invite systems, custom algorithms, varying monetization and content moderation strategies, and off-protocol services.[26] Despite these differences, all App Views operate from the same data sourced from the firehose. This architecture reduces the computational load and storage requirements of App Views, and prevents user lock-in by enabling users to easily switch between App Views while retaining their posts, follows, likes, etc.[27]
The largest App View on the protocol is currently Bluesky, although other App Views, such as WhiteWind (a long-form blogging platform), Frontpage (a Hacker News-style social news website) and Smoke Signal (an RSVP management service) are also available within the protocol.[28][29][30] The wider App View ecosystem within the protocol is colloquially termed the "atmosphere".
Lexicons
All posts within the AT Protocol follow a specific global schema language called a lexicon to support different service and platform modalities.[31] App Views within the protocol have the flexibility to define their own unique lexicons, or utilize existing ones.
This approach allows App Views to create custom lexicons that are tailored to their specific use case while maintaining compatibility with the broader network. As an example, records displayed in an App View focused on microblogging would likely use a different lexicon than one focused on video-sharing, as their content types require different sets of attributes.
However, App Views can also choose to serve content using lexicons defined by other App Views, even if the content was originally posted elsewhere in the network.[32] For example, a new microblogging App View could choose to serve previously posted content using the lexicon defined by an established competitor, enabling them to provide novel features and services while maintaining compatibility with existing content.
This schema design is intended to eliminate user lock-in and foster user-centric innovation by forcing App Views to differentiate themselves through unique user experiences and additional functionality, rather than relying on exclusive access to content.[33]
Lexicons are referenced within records using Namespaced Identifiers (NSIDs), which consist of a domain authority in reverse domain-name order, followed by an arbitrary name segment.[34] For example, com.example.fooBar
is a valid NSID, where com.example
is the domain authority, and fooBar
is the name segment.
The most popular lexicon in the protocol, app.bsky
, defines Bluesky's microblogging schema.[32]
Opinionated services
Opinionated services are services within the protocol that process data from the firehose to provide subjective judgements on network data for the purposes of content moderation and curation. These services contrast with the intended "unopinionated" nature of relays and App Views.[3] Opinionated services enable users to customize their content consumption and moderation preferences within the protocol while maintaining the neutrality of the protocol's core components.
Users have the ability to subscribe and unsubscribe to these services at any time through their client app (unless they are hard-coded into the user's current App View.)[26] The modularity of these services allows for a customizable, stackable, user-centric approach to content curation and moderation within the protocol.[35]
Labelers
Labelers produce judgements about user-generated content, such as identifying spam or inappropriate material. These labels can be applied to various aspects of the network, including posts, images, or accounts. The output of labelers is consumed by App Views and PDSes, which can then provide various strategies to users for handling labeled content, such as hiding, labeling, or blurring.[36]
Bluesky Social has open-sourced its internal labeler moderation service "Ozone", allowing users to create custom moderation services for the network.[37][35]
Although labelers can be used as a moderation service, they can also serve informational or entertainment purposes, such as labeling post topics, user pronouns, or adding positive or playful labels to user profiles and posts.[38]
Feed generators
Feed generators process posts within the firehose for inclusion in custom feeds. After a PDS query, they return a list of post IDs to the user's App View, which can then be used to create curated feeds.[39][40]
Adoption
The protocol's reference implementation was first released to GitHub on May 4, 2022 under the name Authenticated Data Experiment (ADX), and is licensed under both the MIT and Apache licenses.[41] It rebranded to the AT Protocol in October 2022.[42]
The AT Protocol has been adopted for use by the Bluesky social network (also developed by Bluesky Social PBC), and is its most popular implementation. The social network itself opened federation with other Personal Data Servers in late February 2024, as it had launched without the ability to federate with other servers not run by Bluesky Social.[43] Additionally, the news aggregator Flipboard allows users to login with their Bluesky account to view and interact with posts from the service.[44] To aid adoption, Bluesky Social funds various projects that use the AT Protocol for federating and/or creating content via grants.[45] A notable application funded by the grants is a proxy server known as SkyBridge, which can convert API calls from Mastodon apps to their equivalent AT Protocol/Bluesky APIs, allowing users to have access to both networks even without official support.[46]
While the AT Protocol is a separate protocol with no major technical similarities to other protocols, there have been services developed that can bridge content across protocols. An example is the Bridgy Fed software, which can crosspost content between ActivityPub and the AT Protocol.[47][48] Posts from Nostr can also be "double-bridged" to the AT Protocol via another bridge that can crosspost notes from Nostr to ActivityPub.[49]
See also
- Comparison of software and protocols for distributed social networking
- ActivityPub, an alternative protocol that powers services like Mastodon
- Nostr, a similar social networking protocol
- Secure Scuttlebutt
References
- ^ "The AT Protocol". Bluesky. Retrieved 2024-07-30.
- ^ "Building on the AT Protocol | Bluesky". docs.bsky.app. 2023-10-11. Retrieved 2024-09-05.
- ^ a b c d e Kleppmann, Martin; Frazee, Paul; Gold, Jake; Graber, Jay; Holmgren, Daniel; Ivy, Devin; Johnson, Jeromy; Newbold, Bryan; Volpert, Jaz (2024-02-05), Bluesky and the AT Protocol: Usable Decentralized Social Media, arXiv:2402.03239
- ^ Robertson, Adi (2022-10-29). "Will Elon Musk keep funding Twitter's most interesting side project?". The Verge. Retrieved 2024-07-31.
- ^ Robertson, Adi (2019-12-11). "Twitter is funding research into a decentralized version of its platform". The Verge. Retrieved 2024-07-30.
- ^ Conger, Kate (2022-03-02). "Twitter Wants to Reinvent Itself, by Merging the Old With the New". The New York Times. ISSN 0362-4331. Retrieved 2024-07-31.
- ^ Patel, Nilay (2024-03-25). "Bluesky CEO Jay Graber on breaking free from Twitter and competing with Threads and Mastodon". The Verge. Retrieved 2024-08-04.
- ^ a b c d "Federation Architecture | Bluesky". docs.bsky.app. Retrieved 2024-09-05.
- ^ "HTTP API (XRPC) | AT Protocol". atproto.com. Retrieved 2024-09-05.
- ^ "Data Model - Protocol API Reference". atproto.com. Retrieved 2024-09-06.
- ^ "Early Access Federation for Self-Hosters | Bluesky". docs.bsky.app. 2024-02-22. Retrieved 2024-09-06.
- ^ "Identity | AT Protocol". atproto.com. Retrieved 2024-09-05.
- ^ "Domain Names as Handles in Bluesky". Bluesky. Retrieved 2024-09-05.
- ^ "Personal Data Repositories | AT Protocol". atproto.com. Retrieved 2024-09-05.
- ^ "Record Key - Protocol API Reference". atproto.com. Retrieved 2024-09-06.
- ^ "Repository - Protocol API Reference". atproto.com. Retrieved 2024-09-06.
- ^ "Protocol API Reference". atproto.com. Retrieved 2024-09-06.
- ^ "HTTP API (XRPC) - Protocol API Reference". atproto.com. Retrieved 2024-09-06.
- ^ "PDS Entryway | Bluesky". docs.bsky.app. Retrieved 2024-09-05.
- ^ "Repository | AT Protocol". atproto.com. Retrieved 2024-09-05.
- ^ "2024 Protocol Roadmap | Bluesky". docs.bsky.app. 2024-05-06. Retrieved 2024-09-05.
- ^ "Firehose | Bluesky". docs.bsky.app. Retrieved 2024-09-05.
- ^ "The AT Protocol Developer Ecosystem". Bluesky. Retrieved 2024-09-05.
- ^ "AT Protocol - First Thoughts - Rusted Gears - Obsidian Publish". publish.obsidian.md. Retrieved 2024-09-05.
- ^ Schulman, Rory Mir and Ross (2024-06-18). "What's the Difference Between Mastodon, Bluesky, and Threads?". Electronic Frontier Foundation. Retrieved 2024-09-05.
- ^ a b "Moderation in a Public Commons". Bluesky. Retrieved 2024-09-05.
- ^ "What is Bluesky?". Bluesky. Retrieved 2024-09-05.
- ^ "WhiteWind atproto blog | WhiteWind blog". whtwnd.com. Retrieved 2024-09-05.
- ^ "Why atprotocol? | Smoke Signal". docs.smokesignal.events. Retrieved 2024-09-05.
- ^ Hof, Laurens (2024-07-04). "Last Month in Bluesky – June 2024". fediversereport.com. Retrieved 2024-09-06.
- ^ "Protocol Overview | AT Protocol". atproto.com. Retrieved 2024-09-05.
- ^ a b "Lexicon | AT Protocol". atproto.com. Retrieved 2024-09-05.
- ^ "Bluesky: An Open Social Web". Bluesky. Retrieved 2024-09-05.
- ^ "Namespaced Identifiers (NSIDs) - Protocol API Reference". atproto.com. Retrieved 2024-09-06.
- ^ a b "Bluesky's Stackable Approach to Moderation". Bluesky. Retrieved 2024-09-05.
- ^ "Labeling and Moderation Controls". GitHub. Retrieved 2024-09-05.
- ^ Ozone: labeling service for Bluesky and other atproto apps, bluesky-social, 2024-09-05, retrieved 2024-09-06
- ^ "Labeling and Moderation Controls". GitHub. Retrieved 2024-09-06.
- ^ "Custom Feeds | Bluesky". docs.bsky.app. Retrieved 2024-09-05.
- ^ ATProto Feed Generator, bluesky-social, 2024-09-05, retrieved 2024-09-06
- ^ Robertson, Adi (2022-05-04). "Twitter's decentralized, open-source offshoot just released its first code". The Verge. Retrieved 2024-07-31.
- ^ Pierce, David (2022-10-19). "Bluesky built a decentralized protocol for Twitter — and is working on an app that uses it". The Verge. Retrieved 2024-08-04.
- ^ Khalid, Amrita (2024-02-22). "Bluesky starts letting users host their own servers". The Verge. Retrieved 2024-08-04.
- ^ Davis, Wes (2023-05-23). "Flipboard is ready to work with Bluesky and Pixelfed". The Verge. Retrieved 2024-08-01.
- ^ Perez, Sarah (2024-03-11). "Bluesky is funding developer projects to give its Twitter/X alternative a boost". TechCrunch. Retrieved 2024-08-01.
- ^ Perez, Sarah (2024-04-25). "Bluesky backs a project that would let Mastodon apps, like Ivory, work with its network". TechCrunch. Retrieved 2024-08-09.
- ^ Perez, Sarah (2024-06-05). "Bluesky and Mastodon users can now talk to each other with Bridgy Fed". TechCrunch. Retrieved 2024-08-04.
- ^ Silberling, Amanda (2024-02-14). "Bluesky and Mastodon users are having a fight that could shape the next generation of social media". TechCrunch. Retrieved 2024-08-04.
- ^ Perez, Sarah (2024-05-21). "The 'vote Trump' spam that hit Bluesky in May came from decentralized rival Nostr". TechCrunch. Retrieved 2024-08-04.
Further reading
- Bluesky and the AT Protocol: Usable Decentralized Social Media (2024)
- “I’m in the Bluesky Tonight”: Insights from a Year Worth of Social Data (2024)
External links
- Official website and documentation
- Bluesky API documentation
- atproto on GitHub
- v
- t
- e
- 23snaps
- Amikumu
- aNobii
- Are.na
- Ask.fm
- Badoo
- BeReal
- Bluesky
- Bondee
- Bumble
- Cara
- Clubhouse
- Cohost
- Convoz
- Cyworld
- Diaspora
- display
- Douban
- Draugiem.lv
- Foursquare City Guide
- Foursquare Swarm
- Friendica
- Gab
- Gapo
- Gas
- Gettr
- GNU social
- Hi5
- Hive Social
- Huddles
- Idka
- IRC-Galleria
- Kuaishou
- Kumu
- Letterboxd
- LiveJournal
- Likee
- Marco Polo
- Mastodon
- Meetup
- MeWe
- Miaopai
- micro.blog
- Minds
- Mixi
- MX TakaTak
- Myspace
- My World
- Nextdoor
- Odnoklassniki
- Parler
- Peach
- Pixnet
- Pleroma
- Plurk
- Promo.com
- Qzone
- Readgeek
- Renren
- ShareChat
- Snapchat
- SNOW
- Spaces
- Tagged
- Tal Canal
- Taringa!
- The Meet Group
- Threads
- TikTok
- Tinder
- Triller
- Truth Social
- Tuenti
- TV Time
- Tumblr
- Untappd
- Vero
- VK
- Whisper
- Xiaohongshu
- Yik Yak
- App.net
- AsianAve
- Avatars United
- Bebo
- Bolt
- BranchOut
- Capazoo
- Cloob
- eConozco
- Edmodo
- Ello
- Emojli
- eWorld
- Eyegroove
- FitFinder
- FriendFeed
- Friends Reunited
- Friendster
- Grono.net
- Google+
- Google Buzz
- Google Currents
- Hello
- Heello
- Highlight
- Houseparty
- Hyves
- IdeaPlane
- iTunes Ping
- iWiW
- Jaiku
- Keek
- Koo
- Lifeknot
- LunarStorm
- Me2day
- Meerkat
- Miiverse
- MixBit
- Mobli
- Mugshot
- Multiply
- Musical.ly
- Natter
- Netlog
- NK.pl
- Orkut
- Path
- Periscope
- Pheed
- Piczo
- PlanetAll
- Posterous
- Pownce
- Qaiku
- Sciencescape (Metaα)
- SixDegrees.com
- Skyrock
- So.cl
- Spotify Live
- Spring.me
- Streetlife
- StudiVZ
- Surfbook
- Talkbits
- tbh
- Tea Party Community
- Third Voice
- tribe.net
- Tout
- tvtag
- Vine
- Windows Live Spaces
- Wretch
- Xanga
- Yahoo! 360°
- Yahoo! Kickstart
- Yahoo! Mash
- Yahoo! Meme
- Yo
- Activity stream
- Brand page
- Groups
- Hashtag
- Like button
- Online petitions
- Polling
- Reblogging
- Stories
- ActivityPub
- AT Protocol
- Decentralized Social Networking Protocol
- Distributed Social Networking Protocol (defunct)
- Micropub
- Nostr
- OpenSocial (defunct)
- OStatus
- Pump.io
- XMPP