Skip to main content
The official @tansohq/sdk package is typed, dependency-free, and supports Node.js 18 or newer.
Create the client only in server-side code. A Tanso API key authenticates the whole account and must never enter a browser bundle.
Tanso is self-hosted, so baseUrl points at your own instance. From SDK 0.2.2 the default is http://localhost:8080 — the quickstart compose stack — so local development works with no configuration.

The integration loop

Surface

Errors are typed

TansoApiError exposes statusCode and optional detail. Authentication, not-found, conflict, and network failures have their own subclasses.
The included Next.js example uses the published package and is the canonical integration.
List responses return { items, pagination }. The client unwraps Tanso’s top-level { success, data, error } envelope and throws on non-success responses.