Skip to main content

Type Alias: AtUri

AtUri: string & object

Defined in: src/types/atproto.ts:42

AT URI format for addressing records in the AT Protocol network.

Type declaration

__brand

readonly __brand: "AtUri"

Remarks

AT URIs uniquely identify records across the distributed AT Protocol network.

Format: at://did/collection/rkey

  • did: Repository owner's DID
  • collection: Record collection NSID (e.g., "pub.chive.preprint.submission")
  • rkey: Record key (unique within collection)

AT URIs are content-addressable when combined with CID, enabling cryptographic verification of record integrity.

Example

const uri = toAtUri('at://did:plc:abc123/pub.chive.preprint.submission/xyz789');
if (uri) {
console.log('Valid AT URI:', uri);
}

See

AT URI Specification