@jazzmine-ui/sdk
Typed, framework-agnostic client for Jazzmine backends with built-in retries, timeouts, and streaming support.
A typed, framework-agnostic JavaScript/TypeScript client for Jazzmine backends. Use it in React, Vue, Svelte, Next.js, or vanilla TS — the client is not tied to a framework runtime.
Runtime note
Node.js 18+ works out of the box with global fetch. For older Node versions, provide fetchImpl.
Integration flows
| Flow | Best for | What you get |
|---|---|---|
chat() | Single request/response calls | Simple typed payload and final assistant response |
chatStream() | Token/event-style progress UX | Intermediate events plus final ChatResponse result |
sendMessage() | Fast thread creation + first message | Convenience flow with optional auto conversation creation |
Install
npm install @jazzmine-ui/sdkConstructor at a glance
new JazzmineClient(baseEndpoint: string, options?: JazzmineClientOptions)