TypeScript SDK
The typed client in packages/rafterbase-js.
The package has no runtime dependencies. It caches ETags (up to 500 URLs) and revalidates with If-None-Match.
import { createClient, renderRichText } from "rafterbase-js";
const rb = createClient({ baseUrl, space: "website", env: "main", token });
const { items } = await rb.getEntries({ content_type: "article", locale: "en-GB", include: 2 });