kernl API
    Preparing search index...

    Interface PreviewPresetOptions

    What previewPreset takes.

    interface PreviewPresetOptions {
        now?: () => number;
        presentSettings?: (prompt: SettingsPrompt) => void;
        replyDelayMs?: number;
        samples?: readonly PreviewSample[];
        seed?: readonly NostrEvent[];
        theme?: Theme;
        torrent?: TorrentBackend;
    }
    Index
    now?: () => number

    Seconds since the epoch, for the correspondents' history and replies; the system clock by default.

    presentSettings?: (prompt: SettingsPrompt) => void

    The host's settings form, for applets' settings (D-036).

    replyDelayMs?: number

    How long a correspondent takes to answer, in milliseconds; 900 by default.

    samples?: readonly PreviewSample[]

    The samples the store lists and the preview serves.

    seed?: readonly NostrEvent[]

    More signed events to put on the page's relays, such as the samples' publisher's profile.

    theme?: Theme

    Theme pushed to applets that hold theme:read.

    torrent?: TorrentBackend

    The engine for magnet links, such as one that reaches nobody; without one they are handed to the host's openLink.