kernl API
    Preparing search index...

    Function shippedSamples

    • The samples as @kernlize/applet-samples ships them, with the publisher's profile to seed.

      Parameters

      • shipped: ShippedSamples

        The parsed samples.json.

      • load: (file: string) => Promise<string | Uint8Array<ArrayBufferLike>>

        Reads a shipped file, such as notes.html, when the kernel first asks for it.

      Returns Required<Pick<PreviewPresetOptions, "samples" | "seed">>

      The samples and seed options for previewPreset.

      previewPreset(shippedSamples(listing, async (file) => (await fetch(`/samples/${file}`)).text()));