(READ ONLY) Margin is an open annotation layer for the internet. Powered by the AT Protocol.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384export interface MarginSession { authenticated: boolean; did?: string; handle?: string; accessJwt?: string; refreshJwt?: string;}
export interface TextSelector { type?: string; exact: string; prefix?: string; suffix?: string;}
export interface Annotation { uri?: string; id?: string; cid?: string; type?: 'Annotation' | 'Bookmark' | 'Highlight'; body?: { value: string }; text?: string; target?: { source?: string; selector?: TextSelector; }; selector?: TextSelector; color?: string; tags?: string[]; created?: string; createdAt?: string; creator?: Author; author?: Author;}
export interface Author { did?: string; handle?: string; displayName?: string; avatar?: string;}
export interface Bookmark { uri?: string; id?: string; source?: string; url?: string; title?: string; description?: string; image?: string; tags?: string[]; createdAt?: string; target?: { source?: string; title?: string; };}
export interface Highlight { uri?: string; id?: string; target?: { source?: string; selector?: TextSelector; }; color?: string; tags?: string[]; title?: string; createdAt?: string;}
export interface Collection { uri?: string; id?: string; name: string; description?: string; icon?: string; createdAt?: string; itemCount?: number;}
export const DEFAULT_API_URL = 'https://margin.at';export const APP_URL = 'https://margin.at';