Skip to main content

Leaflet (standard.site)

Overview

Leaflet is a blogging platform built on ATProto (standard.site). Blog posts are stored as ATProto records in user PDSes.

Integration Pattern

An expression record sets sourceRef to the AT-URI of a Leaflet post. The appview indexes the reference and can surface annotations alongside the original content.

{
"$type": "pub.layers.expression",
"sourceRef": "at://did:plc:author/site.standard.post/abc123",
"text": "...",
"kind": "article"
}

Layers Types Involved

TypeRole
pub.layers.expressionsourceRef points to site.standard.* AT-URI
pub.layers.segmentationTokenization of the post text
pub.layers.annotation#annotationLayerLinguistic annotation layers over the post

Discovery

The appview indexes expression.sourceRef. Annotations on Leaflet posts are discoverable by querying for the post's AT-URI.