Developers
TypeScript SDK
Use @hivebase/sdk for typed Platform API calls from Node services, scripts, and internal tools.
Install
pnpm add @hivebase/sdkInitialize
Pass a scoped hb_sk_* key through the environment. Do not expose API keys in browser code.
import { HiveBase } from "@hivebase/sdk";
const hb = new HiveBase({
apiKey: process.env.HIVEBASE_API_KEY,
});Example
const { answer } = await hb.brain.query({
question: "What decisions affect the Acme renewal?",
depth: "routine",
});
await hb.decisions.record({
title: "Acme renewal plan",
judgment: answer,
surface: "account",
});