The data model of atproto is rooted in a JSON schema system called lexicons. There are all types of lexicons being used to stitch together digital social spaces and they are the bedrock of interoperability that has emerged across the Atmosphere has.
This is a story I'd like to dive deeper into in another post, but the core idea that the world-wide web pioneered of permissionless, unidirectional linking was once counter what those working on early hypertext systems thought.
plaintext
At the lowest level, digital social spaces built on top of atproto are decomposed into all of these tiny pieces of data (called records). Those records are divided up and stored in the folders based on the account that created them (called the PDS), then stitched together by apps…
2
$type
pub.leaflet.pages.linearDocument#block
block
$type
pub.leaflet.blocks.text
facets
0
index
byteEnd
96
byteStart
89
features
0
uri
https://overreacted.io/where-its-at/
$type
pub.leaflet.richtext.facet#link
1
index
byteEnd
188
byteStart
170
features
0
uri
https://dl.acm.org/doi/10.1145/3276954.3276963
$type
pub.leaflet.richtext.facet#link
plaintext
Just like we have file paths in desktop computing to reference files, in atproto we have AT URIs. These are a transparent scheme that make all of the data on the network freely addressable. Anyone can create records that refer any other piece of data on the network without needin…
3
$type
pub.leaflet.pages.linearDocument#block
block
$type
pub.leaflet.blocks.text
plaintext
Even though it's still early on, it's clear that not all lexicons are designed with the same intent in mind. The folksonomy below is a starting point to capture these different intents and design patterns emerging around lexicons.
The most rudimentary lexicon is one that describes content someone has published. A post on @bsky.app and company, a content of a blog post, a playlist on @plyr.fm, etc. Sometimes these are app-specific representations, sometimes, like in the case @lexicon.community events, they …
6
$type
pub.leaflet.pages.linearDocument#block
block
$type
pub.leaflet.blocks.header
level
2
plaintext
Interaction Lexicons
7
$type
pub.leaflet.pages.linearDocument#block
block
$type
pub.leaflet.blocks.text
facets
0
index
byteEnd
229
byteStart
221
features
0
$type
pub.leaflet.richtext.facet#italic
plaintext
Content does not exist in isolation, it exists in a spectrum of social contexts. Lexicons that model social interaction such as likes, bookmarks, or replies often link back to a content record. When a piece of content is hydrated within a given social context, we are looking for …
Some domains don't have a single representation of content that the ecosystem can agree on, but it's still really important to have a shared language around publishing that content. Such is the case of @standard.site for blogs and in the future bookmarks, science publishing, and …
11
$type
pub.leaflet.pages.linearDocument#block
block
$type
pub.leaflet.blocks.blockquote
facets
0
index
byteEnd
320
byteStart
268
features
0
$type
pub.leaflet.richtext.facet#italic
plaintext
Fast learns, slow remembers. Fast proposes, slow disposes. Fast is discontinuous, slow is continuous. Fast and small instructs slow and big by accrued innovation and by occasional revolution. Slow and big controls small and fast by constraint and constancy. Fast gets all our…
A publishing lexicon functionally separates the data needed for distribution from the content because these schemas change at different paces. In the context of @standard.site, innovation between different blogging services is mostly going to exist at the content layer, where the…
There are many cases where a someone might want to vouch for someone else or something they made. This includes lexicons like @bsky.app's verification, @standard.site's recommendation, @v-it.org's skills, or @tangled.org vouches. In some cases these are one way vouches, one party…
As described in the intro, atproto is an identity-based, additive data model. While this naturally fits into many kinds of social scenarios we see on the internet, it is challenged by the cases where multiple people are collaboratively editing the same object at once, which is pr…
There are some early lexicons exploring how to use the PDS as a signaling server to create direct connections between computers. @mfzx.net's iroh lexicon or @jakelazaroff.com's WebRTC lexicon show an early preview of what this can look like. With these we can start to imagine DID…
Meta-lexicons are lexicons that deal with lexicons themselves. The special meta-lexicon is com.atproto.lexicon.schema which is the lexicon for defining other lexicons. The more canonical example is @habitat.network's search lexicon, which is a lexicon that defines the fields of o…
22
$type
pub.leaflet.pages.linearDocument#block
block
$type
pub.leaflet.blocks.text
plaintext
23
$type
pub.leaflet.pages.linearDocument#block
block
$type
pub.leaflet.blocks.header
level
2
plaintext
Sidecar Lexicons
24
$type
pub.leaflet.pages.linearDocument#block
block
$type
pub.leaflet.blocks.blockquote
facets
0
index
byteEnd
174
byteStart
156
features
0
$type
pub.leaflet.richtext.facet#code
plaintext
A sidecar record is a special-by-convention (yet regular) record that holds additional information about another one. For example, a sidecar record for an app.bsky.feed.post record may hold additional information about who’s allowed to reply to the post.
@essentialrandom.bsky.social elaborates more here!
26
$type
pub.leaflet.pages.linearDocument#block
block
$type
pub.leaflet.blocks.text
plaintext
27
$type
pub.leaflet.pages.linearDocument#block
block
$type
pub.leaflet.blocks.header
level
2
plaintext
Call to action
28
$type
pub.leaflet.pages.linearDocument#block
block
$type
pub.leaflet.blocks.text
plaintext
This taxonomy is by no means complete, if you've noticed other types of lexicons or patterns around how they are designed I'd love to include them! My hope is to keep this folksonomy as an update-to-date reference for those designing and working with lexicons.