A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
/**
* Type definitions for single-file-core
*/
declare module "single-file-core/single-file.js" {
export interface SingleFileOptions {
removeHiddenElements?: boolean;
removeUnusedStyles?: boolean;
removeUnusedFonts?: boolean;
compressHTML?: boolean;
blockScripts?: boolean;
blockImages?: boolean;
saveOriginalURLs?: boolean;
removeFrames?: boolean;
removeAlternativeFonts?: boolean;
removeAlternativeMedias?: boolean;
removeAlternativeImages?: boolean;
groupDuplicateImages?: boolean;
maxResourceSizeEnabled?: boolean;
maxResourceSize?: number;
}
export interface PageData {
content: string;
title?: string;
url?: string;
}
export function init(options?: Record<string, unknown>): void;
export function getPageData(
options?: SingleFileOptions,
initOptions?: Record<string, unknown>,
doc?: Document,
win?: Window,
): Promise<PageData>;
}