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
Quickstart
What the SDK does for you
- Typed inputs and outputs for every operation in the catalog, generated from the same source of truth the API executes — the SDK can never disagree with the server about an operation’s variables or response shape.
- 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 safe sends.
Discovering operations
The in-package docs tree, live discovery endpoints, and the untyped escape hatch.