AT Protocol spaces are in development. Expect changes throughout the beta starting on December 1st, 2026.

Preface

Revised 2026-11-23Markdown

The atproto spaces field guide jumps into the world of permissioned data, going into the use cases and implementation details to explain how it works and why. This guide is for developers and technology enthusiasts who are building a PDS, a syncer, an AppView, or an app that reads and writes spaces, and who need to interoperate with other implementations. There are a lot of new terms and acronyms in this book, and it may feel overwhelming at first. I list them all in Appendix H, each with a short explanation.

No code ahead

If you’re not a developer#

Most of this book is written for people who build atproto software. If you use apps built on atproto, such as Bluesky, and want to know what spaces mean for you, read this section, and then feel free to put the book down. Everything after it explains how the parts work underneath.

Outside of spaces, everything you post on atproto is public. Anyone can see it, copy it, and prove you wrote it. Spaces add places that aren’t public: a group’s private forum, a family’s updates and photos, posts for paying subscribers, or your own bookmarks and drafts. A space works like a room with a guest list. Only the people and apps on the list can see what’s inside.

What you write in a space stays with you. It’s stored on the same server that holds your account and your public posts, and it moves with you if you switch servers. Each space has an owner, either a person or an account run for a community, and the owner decides who can read and who can post. Some spaces keep a member list, some open reading to everyone, and some let a service decide, the way a paid newsletter would.

When an app wants to use your spaces, it asks first. The sign-in screen names the kinds of spaces the app wants, such as "Family updates", and what it wants to do with them. A careful app asks only for what it needs, so an app that shows your RSVPs asks to read them and nothing more.

Private here means controlled rather than secret. The servers and apps that carry a space can read what’s in it, the way most group services can, and that is what lets them offer search and notifications. Anyone you let in can also copy what they see somewhere else. What spaces add is that a copied post carries no proof that you wrote it. A public post does carry that proof.

If a space is deleted, the apps that kept a copy delete it too. Your own posts stay on your server, where only you can see them, and they come back if the owner recreates the space. If the owner removes you from a space, the apps that follow it stop showing what you posted there.

How this book works#

The book follows the atproto spaces specification and its lexicons. Every behavior it describes is checked against atproto-crates, which implements that specification. Where the book mentions the reference PDS, it means Bluesky’s official PDS, built from the libraries in bluesky-social/atproto.

Every claim that comes from a source carries a marker, so you know how much weight it bears.

Reference

Source markers#

MarkerMeaning
specStated in the atproto spaces specification or its lexicons, so it holds for every implementation.
cratesBehavior of atproto-space, atproto-space-client, and atproto-pds in atproto-crates, where the spec leaves a choice to the implementation. Another implementation may choose differently.

Unmarked prose is explanation.

If you’re implementing spaces yourself, read the book in order the first time. Each chapter assumes only what came before it: why spaces exist, then the keys in a DID document, then addressing, repos, the cryptography, credentials, sync, policies, OAuth, and finally operations and implementation notes. The appendices are for lookup once the model is in your head. Every DID, token, signature, MAC, CID, and digest in the examples is real and checks out against the keys in Appendix F; long tokens are shortened in the chapters and given in full in Appendix G.

The family in the examples#

To help make sense of it all, many example identities, data structures, and XRPC calls follow this family. Marcus’s identity is the space’s authority. Each record lives in its author’s own space repo on that person’s PDS, and the family app keeps a copy of the space so it can show everyone’s updates. The chapters come back to the family as each part of the protocol is introduced.

Chapters 1 through 11 explain how spaces work. Practicals build on them. Each practical is a short companion guide that builds one complete application, as configuration, requests, responses, and records, and links back to the chapters it relies on. The first, A Forum Space, builds a forum for a small group. If you’d rather see everything working together before the detail, start there and follow its references back into this book.

For developers#

This book doesn’t assume you read specifications for fun. Each chapter mixes a few kinds of material, each with a different look on the page. Passages marked "In the family space" follow Marcus’s family and show what a rule means for the people using it. The plain text around them explains how spaces work and why. Blocks marked "Reference" hold the exact detail: requests, fields, and rules. Where steps happen in an order, one numbered figure shows it. Every chapter also has a passage called "If you’re building an app" that says what the chapter means for someone writing an application, and most chapters end with "Common questions" on the things developers tend to ask first. The reference detail is complete, because two implementations work together only when they agree on every field, but you can skim it until you need it.

There are shorter paths through the book, depending on what you’re building.

Reference

Reading paths#

If you’re buildingRead
An app that reads and writes spacesChapter 1 for the model, Chapter 3 for how spaces are named, Chapter 4 for writing records, Chapter 6 for credentials, Chapter 8 for policies, Chapter 9 for the OAuth scopes your users will approve, and Chapter 10 for what your app does when spaces are deleted, accounts move, and content is moderated
An app that keeps its own copy of spaces, as a syncer or an AppView doesThe same chapters, plus Chapter 7 for sync
A PDS, a space host, or a libraryAll of it, including the cryptography in Chapter 5 and the implementation notes in Chapter 11

Preface · AT Protocol Spaces: A Field Guide

Search