# React chat libraries

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

| Library | Monthly downloads | Stars | Last release | License |
| --- | --- | --- | --- | --- |
| [assistant-ui](#assistant-ui) | 11.8M | 13.3K | Nov 2026 | MIT |
| [CopilotKit](#copilotkit-react-core) | 2.7M | 38.8K | Nov 2026 | MIT |
| [Lobe UI](#lobehub-ui) | 2.4M | 2.3K | Nov 2026 | MIT |
| [Stream Chat React](#stream-chat-react) | 1.5M | 845 | Nov 2026 | Stream source code license |
| [Ant Design X](#ant-design-x) | 422.3K | 4.8K | Oct 2026 | MIT |
| [Sendbird UIKit](#sendbird-uikit-react) | 413.9K | 240 | Oct 2026 | MIT |
| [@chatscope/chat-ui-kit-react](#chatscope) | 266.0K | 1.8K | May 2025 | MIT |
| [KendoReact Conversational UI](#progress-kendo-react-conversational-ui) | 194.5K | 241 | Nov 2026 | KendoReact commercial or trial license |

Downloads: npm, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

[assistant-ui](#assistant-ui) has the most monthly downloads in this comparison, at 11.8M.

## Capabilities

| Library | Conversation list | Managed user messaging |
| --- | --- | --- |
| [assistant-ui](#assistant-ui) | Yes | No |
| [CopilotKit](#copilotkit-react-core) | Yes | No |
| [Lobe UI](#lobehub-ui) | No | No |
| [Stream Chat React](#stream-chat-react) | Yes | Yes |
| [Ant Design X](#ant-design-x) | Yes | No |
| [Sendbird UIKit](#sendbird-uikit-react) | Yes | Yes |
| [@chatscope/chat-ui-kit-react](#chatscope) | Yes | No |
| [KendoReact Conversational UI](#progress-kendo-react-conversational-ui) | No | No |

## Libraries

### assistant-ui

[GitHub](https://github.com/assistant-ui/assistant-ui) · [npm](https://www.npmjs.com/package/@assistant-ui/react) · [Docs](https://www.assistant-ui.com/docs)

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

- Downloads / mo: 11.8M
- Stars: 13.3K
- Last release: 0.15.37
- License: MIT
- Capabilities: [From the assistant-ui docs](https://www.assistant-ui.com/docs)

**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.

**Watch out for**

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

```sh
npx assistant-ui@latest init
```

**unslothai/unsloth** (79.6K stars)

[unslothai/unsloth](https://github.com/unslothai/unsloth) 

```tsx
const MessageError: FC = () => {
  const researchRunId = useResearchMessageRunId();
  const researchActive = useThreadResearchActive();
  return (
    <MessagePrimitive.Error>
      <ErrorPrimitive.Root className="aui-message-error-root mt-2 flex flex-wrap items-center gap-x-3 gap-y-2 rounded-lg bg-destructive/10 p-3 text-destructive text-sm dark:bg-destructive/5 dark:text-red-200">
        <ErrorPrimitive.Message className="aui-message-error-message min-w-0 flex-1 whitespace-pre-wrap break-words" />
        {!researchRunId && !researchActive && (
          <ActionBarPrimitive.Reload asChild={true}>
            <button
              type="button"
              className="btn-fill aui-message-error-retry inline-flex shrink-0 items-center gap-1.5 rounded-full px-2.5 py-1 text-xs font-medium transition-colors "
            >
              <HugeiconsIcon icon={Refresh01Icon} strokeWidth={1.75} className="size-3.5" />
              Retry
            </button>
          </ActionBarPrimitive.Reload>
        )}
      </ErrorPrimitive.Root>
    </MessagePrimitive.Error>
  );
};

```

[studio/frontend/src/components/assistant-ui/thread.tsx](https://github.com/unslothai/unsloth/blob/5ed4961ff48491f195ba6c815726f7f8c41e1805/studio/frontend/src/components/assistant-ui/thread.tsx#L7805-L7826) · [More projects using assistant-ui →](https://dashboard.exa.ai/playground/search?q=React%20TypeScript%20JavaScript%20projects%20importing%20%40assistant-ui/react%20to%20build%20chat%20messages%2C%20conversation%20lists%2C%20composers%20and%20assistant%20interfaces&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```tsx
"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>
  );
}

```

From [README.md](https://github.com/assistant-ui/assistant-ui/blob/main/README.md)

### CopilotKit

[GitHub](https://github.com/CopilotKit/CopilotKit) · [npm](https://www.npmjs.com/package/@copilotkit/react-core) · [Docs](https://docs.copilotkit.ai/prebuilt-components/chat)

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
- Capabilities: [From the CopilotKit docs](https://docs.copilotkit.ai/prebuilt-components/chat)

```sh
npm install @copilotkit/react-core zod
```

**Quickstart**

```tsx
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>
  );
}

```

From [copilotkit-CfnudBCL.d.mts](https://cdn.jsdelivr.net/npm/@copilotkit/react-core@1.89.0/dist/copilotkit-CfnudBCL.d.mts) · [Find projects using CopilotKit →](https://dashboard.exa.ai/playground/search?q=%40copilotkit/react-core%20GitHub%20projects)

### Lobe UI

[GitHub](https://github.com/lobehub/lobe-ui) · [npm](https://www.npmjs.com/package/@lobehub/ui) · [Docs](https://ui.lobehub.com/)

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
- Capabilities: [From the Lobe UI docs](https://ui.lobehub.com/)

```sh
npm install @lobehub/ui @lobehub/icons @lobehub/fluent-emoji motion
```

**Quickstart**

```tsx
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>;
}

```

From [Editing.tsx](https://github.com/lobehub/lobe-ui/blob/master/README.md) · [Find projects using Lobe UI →](https://dashboard.exa.ai/playground/search?q=%40lobehub/ui%20GitHub%20projects)

### Stream Chat React

[GitHub](https://github.com/GetStream/stream-chat-react) · [npm](https://www.npmjs.com/package/stream-chat-react) · [Docs](https://getstream.io/chat/docs/sdk/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
- Capabilities: [From the Stream Chat React docs](https://getstream.io/chat/docs/sdk/react/)

**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.

**Watch out for**

- **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.

```sh
npm install stream-chat@^10 stream-chat-react
```

**Quickstart**

```tsx
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>;
}

```

From [useCreateChatClient.d.ts](https://cdn.jsdelivr.net/npm/stream-chat-react@15.0.2/dist/types/components/Chat/hooks/useCreateChatClient.d.ts) · [Find projects using Stream Chat React →](https://dashboard.exa.ai/playground/search?q=React%20TypeScript%20JavaScript%20projects%20importing%20stream-chat-react%20to%20build%20chat%20messages%2C%20conversation%20lists%2C%20composers%20and%20assistant%20interfaces&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

### Ant Design X

[GitHub](https://github.com/ant-design/x) · [npm](https://www.npmjs.com/package/@ant-design/x) · [Docs](https://x.ant.design/)

Builds AI-driven interfaces.

- Downloads / mo: 422.3K
- Stars: 4.8K
- Last release: 2.10.0
- License: MIT
- Capabilities: [From the Ant Design X docs](https://x.ant.design/)

```sh
npm install @ant-design/x antd@^6.1.1
```

**Quickstart**

```tsx
import { Bubble } from "@ant-design/x";

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

```

From [Bubble.d.ts](https://cdn.jsdelivr.net/npm/@ant-design/x@2.10.0/es/bubble/Bubble.d.ts) · [Find projects using Ant Design X →](https://dashboard.exa.ai/playground/search?q=%40ant-design/x%20GitHub%20projects)

### Sendbird UIKit

[GitHub](https://github.com/sendbird/sendbird-uikit-react) · [npm](https://www.npmjs.com/package/@sendbird/uikit-react) · [Docs](https://sendbird.com/docs/chat/uikit/v3/react/overview)

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
- Capabilities: [From the Sendbird UIKit docs](https://sendbird.com/docs/chat/uikit/v3/react/overview)

```sh
npm i @sendbird/uikit-react
```

**Quickstart**

```tsx
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;

```

From [App.tsx](https://docs.sendbird.com/docs/chat/uikit/v3/react/tutorials/getting-started/index.html) · [Find projects using Sendbird UIKit →](https://dashboard.exa.ai/playground/search?q=%40sendbird/uikit-react%20GitHub%20projects)

### @chatscope/chat-ui-kit-react

[GitHub](https://github.com/chatscope/chat-ui-kit-react) · [npm](https://www.npmjs.com/package/@chatscope/chat-ui-kit-react) · [Docs](https://chatscope.io/storybook/react/)

Provides React components for building web chat interfaces.

- Downloads / mo: 266.0K
- Stars: 1.8K
- Last release: 2.1.1
- License: MIT
- Capabilities: [From the @chatscope/chat-ui-kit-react docs](https://chatscope.io/storybook/react/)

**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.

**Watch out for**

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

```sh
npm install @chatscope/chat-ui-kit-react @chatscope/chat-ui-kit-styles
```

**linera-io/linera-protocol** (32.0K stars)

[linera-io/linera-protocol](https://github.com/linera-io/linera-protocol) 

```tsx
function Chat({chainId}) {
    let initial_messages = (
        [{
            props: {
                model: {
                    message: "Hey! I'm Linera Stories. Start a story and I'll finish it for you.",
                    sender: "Linera Stories",
                    direction: "incoming",
                    position: "single"
                }
            }
        }])
    ;
    const [messages, setMessages] = useState(initial_messages);
    const [typingIndicator, setTypingIndicator] = useState(null);

    const [doPrompt
    ] = useLazyQuery(PROMPT, {
        fetchPolicy: "network-only",
        onCompleted: (data) => {
            data.prompt.split("\n").forEach((s) => {
                setMessages(prevMessages => [...prevMessages, {
                    props: {
                        model: {
                            message: s,
                            sender: "Linera Stories",
                            direction: "incoming",
                            position: "single"
                        }
                    }
                }]);
            });
            setTypingIndicator(null)
        },
        onError: (error) => {
            console.log(error)
        }
    });

    return (
        <div>
            <MainContainer style={{height: '100vh', response: true}}>
                <ChatContainer>
                    <ConversationHeader>
                        <ConversationHeader.Content
                            info="Online"
                            userName="Linera Stories"
                        />
                    </ConversationHeader>
                    <MessageList typingIndicator={typingIndicator}>
                        {messages.map((m, i) => <Message key={i} {...m.props} />)}
                    </MessageList>
                    <MessageInput placeholder="Type message here"
                                  onSend={(innerHtml, textContent, innerText, nodes) => handleSend(textContent, messages, setMessages, setTypingIndicator, doPrompt)}/>
                </ChatContainer>
            </MainContainer>
        </div>
    )
}

```

[examples/llm/web-frontend/src/Chat.js](https://github.com/linera-io/linera-protocol/blob/672d97bb2fce3127db351069df72f1d225d8f263/examples/llm/web-frontend/src/Chat.js#L40-L98) · [More projects using @chatscope/chat-ui-kit-react →](https://dashboard.exa.ai/playground/search?q=React%20TypeScript%20JavaScript%20projects%20importing%20%40chatscope/chat-ui-kit-react%20to%20build%20chat%20messages%2C%20conversation%20lists%2C%20composers%20and%20assistant%20interfaces&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```tsx
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>;

```

From [README.md](https://github.com/chatscope/chat-ui-kit-react/blob/master/README.md)

### KendoReact Conversational UI

[GitHub](https://github.com/telerik/kendo-react) · [npm](https://www.npmjs.com/package/@progress/kendo-react-conversational-ui) · [Docs](https://www.telerik.com/kendo-react-ui/components/conversationalui/)

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
- Capabilities: [From the KendoReact Conversational UI docs](https://www.telerik.com/kendo-react-ui/components/conversationalui/)

```sh
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
```

**Quickstart**

```tsx
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])} />;
}

```

From [App.tsx](https://www.telerik.com/kendo-react-ui/components/conversationalui/get-started) · [Find projects using KendoReact Conversational UI →](https://dashboard.exa.ai/playground/search?q=%40progress/kendo-react-conversational-ui%20GitHub%20projects)

## FAQ

### Which React chat library should I use?

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

### What is CopilotKit?

[CopilotKit](#copilotkit-react-core) provides an inline chat component that can be placed anywhere and sized as needed.

### What is assistant-ui?

[assistant-ui](#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.

### What is Stream Chat React?

[Stream Chat React](#stream-chat-react) provides React chat components connected to the Stream Chat service. It requires a Stream app and a user token.

## How this page was built

Data checked Nov 20, 2026.

Reproduce it with the Exa API:

```json
{
  "endpoint": "/search",
  "body": {
    "query": "Best React chat libraries Chatscope react-chat-elements Stream assistant-ui code examples",
    "numResults": 5
  }
}
```

Docs: https://exa.ai/docs/reference/search
