KNOLO / HUBPublish
GETTING STARTED / QUICKSTART

Quickstart

Discover → Try → Pin → Mount → Publish.

01Install the runtime

Install the browser-safe runtime package in your application.

npm install @knolo/core

02Pin from the registry

Fetch the CLI manifest from https://hub.knolo.dev, download the Blob URL, and check sha256 locally. Hub increments pulls on the manifest GET, not on the byte download.

curl -sD - https://hub.knolo.dev/api/v1/packs/acme/refund-policy/1.2.0 -o manifest.json
# Cache-Control: no-store
curl -sS "$(jq -r .url manifest.json)" | sha256sum

03Mount and query

Pass the downloaded bytes to @knolo/core. The Hub playground does this in the browser against the listing blobUrl.

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

const ab = await (await fetch(PACK_URL)).arrayBuffer();
const pack = await mountPack({ src: new Uint8Array(ab) });
const hits = query(pack, "refund window", { topK: 5 });