social components inlay.at
atproto components sdui
86
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 14 lines 363 B view raw
1// data/uri.ts 2// AT URI parsing utilities 3 4export type ParsedAtUri = { 5 did: string; 6 collection?: string; 7 rkey?: string; 8}; 9 10export function parseAtUri(uri: string): ParsedAtUri | null { 11 const match = uri.match(/^at:\/\/([^/]+)(?:\/([^/]+)(?:\/([^/]+))?)?$/); 12 if (!match) return null; 13 return { did: match[1], collection: match[2], rkey: match[3] }; 14}