About
@goliath-data/sdk is the official TypeScript client for the developer API. Instead
of hand-building HTTP calls against the operation catalog,
you get one typed method per operation, namespaced by domain — plus transport,
authentication, retries, typed errors, and idempotency handled for you.
Live in productionThe developer API is live — point the SDK at
https://server.goliathdata.com with a key from Settings → API Keys.
The examples below reflect the shipping surface.Install
fetch and
AbortSignal.any. The package is in public beta (0.1.0-beta.x); pin a
version when you need stability across upgrades.
Quickstart
What the SDK does for you
- Typed inputs and outputs for the operations in your installed release.
Upgrade to pick up newer types, or use
execute()for an operation added after that release. - Retries done right: rate-limit rejections (both
429s) are retried for any operation withRetry-Afterhonored exactly; network failures, timeouts, and5xxs are retried only when a re-send cannot double-fire a side effect. See Errors, retries & idempotency. - Compile-time idempotency: every mutation accepts
options.idempotencyKey— on a read it’s a TypeScript error, matching the400the gateway would return. - Org safety in the types: variables the gateway derives from your key
(like an analytics
orgId) don’t appear in the method’s input type at all. - Docs inside the package: a generated markdown reference ships in
node_modules/@goliath-data/sdk/docs/so coding agents can look up any operation offline. See Discovering operations.
Go deeper
Configuration
Constructor options, timeouts, custom fetch, and testing.
Errors, retries & idempotency
Every error class, the retry policy, and idempotent writes.
Discovering operations
The in-package docs tree, live discovery endpoints, and the untyped escape hatch.