Skip to main content

Bluesky Labels

Overview​

The ATProto labeling system (com.atproto.label.defs) provides moderation and quality signals as labels attached to ATProto records or accounts. Labels are used for content moderation, NSFW flagging, and other trust signals.

Integration Pattern​

Label records can reference Layers annotations or expressions by AT-URI. This allows moderation and quality signals to be attached to linguistic annotation data.

{
"$type": "com.atproto.label.defs#label",
"uri": "at://did:plc:annotator/pub.layers.annotation.annotationLayer/abc123",
"val": "quality:gold-standard",
"cts": "2025-01-15T10:00:00Z"
}

In the reverse direction, Layers annotations can reference label records via knowledgeRefs or featureMap to incorporate moderation signals into annotation metadata.

Layers Types Involved​

TypeRole
pub.layers.expression.expressionCan be the target of a label (by AT-URI)
pub.layers.annotation.annotationLayerCan be the target of a label
pub.layers.defs#featureMapCan store label references as features

Discovery​

Labels reference Layers records by AT-URI. The appview can query the ATProto label service for labels on any indexed Layers record, and vice versa.