React chat libraries

Updated Nov 2026

React chat libraries render conversations, message lists, and input boxes for chat interfaces. A kit either connects the interface to a hosted messaging service or renders assistant messages from a language model runtime. These libraries let support tools, community apps, and AI assistants show live conversations.

Popularity

assistant-ui has the most monthly downloads in this comparison, at 11.8M.

LibraryMonthly downloadsStarsLast releaseLicense
assistant-ui
11.8M
13.3KNov 2026MIT
CopilotKit
2.7M
38.8KNov 2026MIT
Lobe UI
2.4M
2.3KNov 2026MIT
Stream Chat React
1.5M
845Nov 2026Stream source code license
Ant Design X
422.3K
4.8KOct 2026MIT
Sendbird UIKit
413.9K
240Oct 2026MIT
@chatscope/chat-ui-kit-react
266.0K
1.8KMay 2025MIT
KendoReact Conversational UI
194.5K
241Nov 2026KendoReact commercial or trial license
Downloads: npm, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

Libraries and code examples

Provides composable React primitives for assistant conversations, messages, and tools.

Downloads / mo
11.8M
Stars
13.3K
Last release
0.15.37
License
MIT

Strengths

  • Customizes individual message parts. Render text, images, and tool calls with message primitives.
  • Supports custom backend runtimes. Choose a framework adapter or integrate a custom runtime.

Limitations

  • Requires runtime context. Wrap primitives in AssistantRuntimeProvider with a configured runtime.
  • Some parts render nothing initially. Register renderers for reasoning, sources, files, and audio.

Quickstart

From README.md
$ npx assistant-ui@latest init
"use client";

import { AssistantRuntimeProvider } from "@assistant-ui/react";
import { useChatRuntime } from "@assistant-ui/ai-sdk";
import { Thread } from "@/components/assistant-ui/elements/thread.aui";

export function Chat() {
  const runtime = useChatRuntime();
  return (
    <AssistantRuntimeProvider runtime={runtime}>
      <Thread />
    </AssistantRuntimeProvider>
  );
}

assistant-ui examples

From open-source projects on GitHub

CopilotKit

Provides an inline chat component that can be placed anywhere and sized as needed.

Downloads / mo
2.7M
Stars
38.8K
Last release
1.89.0
License
MIT
$ npm install @copilotkit/react-core zod
import { CopilotKitProvider, CopilotChat } from "@copilotkit/react-core/v2";
import "@copilotkit/react-core/v2/styles.css";

export default function ChatApp() {
  return (
    <CopilotKitProvider runtimeUrl="/api/copilotkit" agentId="a2a_chat">
      <CopilotChat agentId="a2a_chat" />
    </CopilotKitProvider>
  );
}

Provides an open-source UI component library for building AIGC web apps.

Downloads / mo
2.4M
Stars
2.3K
Last release
6.16.2
License
MIT

Quickstart

From Editing.tsx
$ npm install @lobehub/ui @lobehub/icons @lobehub/fluent-emoji motion
import '@lobehub/ui/theme.css';
import '@lobehub/ui/style.css';
import { ConfigProvider } from '@lobehub/ui';
import { ChatItem } from '@lobehub/ui/chat';
import { motion } from 'motion/react';

const avatar = { avatar: '😎', backgroundColor: '#E8DA5A', title: 'Advertiser' };

export default function ChatApp() {
  return <ConfigProvider motion={motion}><ChatItem avatar={avatar} message="Hello" /></ConfigProvider>;
}

Stream Chat React

Provides React chat components connected to the Stream Chat service.

Downloads / mo
1.5M
Stars
845
Last release
15.0.2
License
Stream source code license

Strengths

  • Connects messaging state and UI. Subscribe to channel stores and render message updates.
  • Replaces individual UI components. Use WithComponents to replace message rendering while retaining SDK behavior.

Limitations

  • Requires a Stream Chat app. Create a Stream app and supply a user token.
  • UI overrides leave behavior unchanged. Change loading and sending behavior through the state layer.
$ npm install stream-chat@^10 stream-chat-react
import { Chat, useCreateChatClient } from "stream-chat-react";
import type { ClientUser, TokenOrProvider } from "stream-chat";
import "stream-chat-react/dist/css/index.css";

type Props = { apiKey: string; userData: ClientUser; tokenOrProvider: TokenOrProvider };
export function ChatSetup({ apiKey, userData, tokenOrProvider }: Props) {
  const client = useCreateChatClient({ apiKey, userData, tokenOrProvider });
  if (!client) return <div>Connecting...</div>;
  return <Chat client={client}><div>Connected</div></Chat>;
}

Ant Design X

Builds AI-driven interfaces.

Downloads / mo
422.3K
Stars
4.8K
Last release
2.10.0
License
MIT

Quickstart

From Bubble.d.ts
$ npm install @ant-design/x antd@^6.1.1
import { Bubble } from "@ant-design/x";

export default function ChatMessage() {
  return <Bubble content="Hello" />;
}

Sendbird UIKit

Provides a chat UI kit for React with messaging, channel management, and user authentication.

Downloads / mo
413.9K
Stars
240
Last release
3.20.0
License
MIT

Quickstart

From App.tsx
$ npm i @sendbird/uikit-react
import { App as SendbirdApp } from '@sendbird/uikit-react';
import '@sendbird/uikit-react/dist/index.css';

function App() {
  return (
    
    <div style={{ width:'100vw', height:'100vh' }}>
      {/* 
        This super smart component serves as a drop-in chat solution
        
        For advanced 🚀 customizations, use SendbirdProvider:
        https://sendbird.com/docs/chat/uikit/v3/react/essentials/sendbirdprovider
      */}
      <SendbirdApp
        appId={'YOUR_APP_ID'}
        userId={'USER_ID'}
        accessToken={'ACCESS_TOKEN'} // Optional, but recommended
      />
    </div>
  )
}

export default App;

@chatscope/chat-ui-kit-react

Provides React components for building web chat interfaces.

Downloads / mo
266.0K
Stars
1.8K
Last release
2.1.1
License
MIT

Strengths

  • Combines ready-made chat components. Compose message lists, conversation headers, and message inputs.
  • Accepts custom message content. Use Message.CustomContent for application-specific message bodies.

Limitations

  • State hooks need another package. Add @chatscope/use-chat for its separate chat-state hooks.

Quickstart

From README.md
$ npm install @chatscope/chat-ui-kit-react @chatscope/chat-ui-kit-styles
import styles from "@chatscope/chat-ui-kit-styles/dist/default/styles.min.css";
import {
  MainContainer,
  ChatContainer,
  MessageList,
  Message,
  MessageInput,
} from "@chatscope/chat-ui-kit-react";

<div style={{ position: "relative", height: "500px" }}>
  <MainContainer>
    <ChatContainer>
      <MessageList>
        <Message
          model={{
            message: "Hello my friend",
            sentTime: "just now",
            direction: "incoming",
            position: "single",
            sender: "Joe",
          }}
        />
      </MessageList>
      <MessageInput placeholder="Type message here" />
    </ChatContainer>
  </MainContainer>
</div>;

@chatscope/chat-ui-kit-react examples

From open-source projects on GitHub

KendoReact Conversational UI

Provides a React chat component for sessions with users or chat bots.

Downloads / mo
194.5K
Stars
241
Last release
17.0.0
License
KendoReact commercial or trial license

Quickstart

From App.tsx
$ npm install @progress/kendo-react-conversational-ui@17.0.0 @progress/kendo-theme-meridian @progress/kendo-licensing@^1.13.0 @progress/kendo-react-animation@17.0.0 @progress/kendo-react-buttons@17.0.0 @progress/kendo-react-common@17.0.0 @progress/kendo-react-intl@17.0.0 @progress/kendo-react-indicators@17.0.0 @progress/kendo-react-inputs@17.0.0 @progress/kendo-react-layout@17.0.0 @progress/kendo-react-notification@17.0.0 @progress/kendo-react-tooltip@17.0.0 @progress/kendo-react-popup@17.0.0 @progress/kendo-react-upload@17.0.0 @progress/kendo-svg-icons@^5.0.0
import * as React from "react";
import { Chat, type Message } from "@progress/kendo-react-conversational-ui";
import "@progress/kendo-theme-meridian/dist/all.css";

const initialMessages: Message[] = [{
  id: 1, author: { id: 0 }, timestamp: new Date(),
  text: "Hello, This is the KendoReact Chat component."
}];

export default function ChatApp() {
  const [messages, setMessages] = React.useState(initialMessages);
  return <Chat messages={messages} authorId={1} width={400} height={600}
    onSendMessage={(event) => setMessages([...messages, event.message])} />;
}

FAQ

assistant-ui suits AI assistant conversations with messages, tools, and custom runtimes. Stream Chat React suits apps built on the Stream Chat service. @chatscope/chat-ui-kit-react suits chat interfaces assembled from ready-made components.

CopilotKit provides an inline chat component that can be placed anywhere and sized as needed.

assistant-ui provides composable React primitives for assistant conversations, messages, and tools. It connects to a backend through a framework adapter or a custom runtime.

Stream Chat React provides React chat components connected to the Stream Chat service. It requires a Stream app and a user token.

For coding agents

Found your chat library? Help your agent use it.

Connect Exa so your coding agent can find the library’s documentation, check its API, and look up implementations while you build.

Run in your terminal

claude plugin install exa@claude-plugins-official