KNOLO / HUBPublishknolo.dev → Runtime
GUIDE / MOUNT

Mount a pack

Mounting validates an artifact and exposes a read-only Knowledge Image handle.

01Browser mounting

Fetch an immutable blob URL and pass a Uint8Array to mountPack from @knolo/core.

import { mountPack } from "@knolo/core";

const ab = await (await fetch(PACK_URL)).arrayBuffer();
const pack = await mountPack({ src: new Uint8Array(ab) });

02Node filesystem mounting

For Node applications with local filesystem access, use the node entrypoint.

import { mountPack } from "@knolo/core/node";

const pack = await mountPack({
  src: "./knowledge.knolo",
});