@tansohq/sdk
package is typed, dependency-free, and supports Node.js 18 or newer.
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.
{ items, pagination }. The client unwraps Tanso’s
top-level { success, data, error } envelope and throws on non-success
responses.