Where the Sume TypeScript SDK runs: Node 18+, Bun, Deno and Workers

@sume-com/sdk has no runtime dependencies and needs only fetch and WebCrypto. Install it, create a client, and know which options and helpers it adds.

5 min readSume
All posts

The Sume TypeScript SDK, @sume-com/sdk, runs anywhere that provides fetch and WebCrypto: Node 18 or later, Bun, Deno, and Cloudflare Workers. It is MIT licensed with no runtime dependencies. The docs list version 0.2.0 as the published release (read 2026-10-03).

Create a client and pass it

Install with npm install @sume-com/sdk, then build a client with createSumeClient({ apiKey }). Pass that client on every call: the module-level default has no key and targets production, so it exists only to make generated code compile. The client sends x-api-key only; add no Authorization header in a fetch wrapper, since both together return 401.

Options and helpers

Everything else in the package is generated from the OpenAPI schema, one function per operation, plus a few hand-written helpers.

@sume-com/sdk surface (read 2026-10-03)
ItemWhat it does
apiKeyRequired developer API key
baseUrlDefaults to https://api.sume.com; dev host for development
fetchSeam for instrumentation, retries or tests
subscribeFormatRunCreate a Format run and poll to a terminal receipt
waitForRun, waitForJobPoll an existing run or a generation job
verifyWebhookCheck a sume-v1 signature, async

Server-side only

An API key spends credits and there is no browser-safe variant. Never ship it in client JavaScript or a NEXT_PUBLIC_ variable; put your own endpoint in front and construct the Sume request there.

Sources

Related posts

More in Developers

All Developers posts

Written by Sume