@jazzmine-ui/react
v0.1.10
React 18+

@jazzmine-ui/react

Ship a production-grade chat UI in React without rebuilding conversation UI, search, and state orchestration from scratch.

What it solves

You can integrate in two ways: use JazzmineChatfor the fastest managed path, or use ChatInterface when your app must own every part of state and data flow.

SDK-agnostic by design

Any backend client that structurally matches the IJazzmineClient contract can power managed mode.

Integration modes

ModeBest forYou managePackage manages
JazzmineChatFastest production integrationClient instance + optional callbacksConversation create/list/search/delete/update, history loading, send flow, loading states
ChatInterfaceFull custom state architectureAll data, state, and actionsPresentation, local UI interactions, context selection UX

What you get

Conversation lifecycle

  • Managed create, select, rename, and delete flows.
  • Sidebar pagination and search modal integration.

Message experience

  • Markdown + GFM rendering with react-markdown and remark-gfm.
  • Empty-state assistant message support through defaultMessage.

Context-aware flows

  • Explicit context selection and forwarding support.
  • History mapping from backend original_content and explicit_context data.

Install

install.sh
npm install @jazzmine-ui/react

Install peer dependencies if your app does not already provide them:

peer-deps.sh
npm install react react-dom react-markdown remark-gfm

Import package styles once at app entry:

main.tsx
import '@jazzmine-ui/react/styles';

Where to go next