A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
export interface GlobalOptions {
apiKey: string;
serverAddr: string;
json?: true;
}
export interface RawGlobalOptions {
apiKey?: string;
serverAddr?: string;
json?: true;
}
export let globalOpts: GlobalOptions | undefined = undefined;
export function setGlobalOptions(opts: GlobalOptions) {
globalOpts = opts;
}
export function getGlobalOptions() {
if (!globalOpts) {
throw new Error("Global options are not initalized yet");
}
return globalOpts;
}