kernl API
    Preparing search index...

    Interface PreviewPreset

    The preview's parts, which PreviewPreset.options puts together for createKernl.

    interface PreviewPreset {
        memory: MemoryRelays;
        modules: PreviewModules;
        pool: RelayPool;
        artifactCache(): Promise<undefined>;
        fetchBlob(
            sha256: string,
            servers: readonly string[],
        ): Promise<Uint8Array<ArrayBufferLike>>;
        options(host: KernlHost): PreviewKernlOptions;
    }
    Index
    memory: MemoryRelays

    The relays that live in the page; seed more onto them, or read what was published.

    pool: RelayPool

    applesauce's real pool, dialling only memory.

    • No artifact cache: the preview writes nothing to Cache Storage, and its bytes are in memory anyway.

      Returns Promise<undefined>

    • The samples' bytes by the hash their manifests name; unavailable:blob for any other.

      Parameters

      • sha256: string
      • servers: readonly string[]

      Returns Promise<Uint8Array<ArrayBufferLike>>