What it solves
Use it in React, Vue, Svelte, Next.js, or vanilla TS apps. 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
install.sh
npm install @jazzmine-ui/sdkConstructor at a glance
client.ts
new JazzmineClient(baseEndpoint: string, options?: JazzmineClientOptions)