Exapedia / Tools / React chat libraries 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 CopilotKit Lobe UI Stream Chat React Ant Design X Sendbird UIKit @chatscope/chat-ui-kit-react KendoReact Conversational UI FAQ Popularity assistant-ui has the most monthly downloads in this comparison, at 11.8M .
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. $ npx assistant-ui@latest init Copy
"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 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>
);
};
Show full example 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 Copy
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 $ npm install @lobehub/ui @lobehub/icons @lobehub/fluent-emoji motion Copy
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>;
}
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 Copy
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>;
}
Builds AI-driven interfaces.
Downloads / mo 422.3K
Stars 4.8K
Last release 2.10.0
License MIT $ npm install @ant-design/x antd@^6.1.1 Copy
import { Bubble } from "@ant-design/x";
export default function ChatMessage() {
return <Bubble content="Hello" />;
}
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 $ npm i @sendbird/uikit-react Copy
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;
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. $ npm install @chatscope/chat-ui-kit-react @chatscope/chat-ui-kit-styles Copy
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 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>
)
}
Show full example 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 $ 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 Copy
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])} />;
}
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.
Claude Code Cursor Codex VS Code Devin Devin Desktop Gemini CLI OpenCode
Run in your terminal
claude plugin install exa@claude-plugins-official Copy Add to ~/.cursor/mcp.json
{
"mcpServers": {
"exa": {
"url": "https://mcp.exa.ai/mcp"
}
}
} Copy Open in your browser, then install the Exa plugin
https://chatgpt.com/plugins/exa Copy Add to .vscode/mcp.json
{
"servers": {
"exa": {
"type": "http",
"url": "https://mcp.exa.ai/mcp"
}
}
} Copy In Devin, open Customize, then MCPs, and add a custom HTTP server with this URL
https://mcp.exa.ai/mcp Copy Add to ~/.config/devin/mcp_config.json
{
"mcpServers": {
"exa": {
"serverUrl": "https://mcp.exa.ai/mcp"
}
}
} Copy Add to ~/.gemini/settings.json
{
"mcpServers": {
"exa": {
"httpUrl": "https://mcp.exa.ai/mcp"
}
}
} Copy Add to opencode.json
{
"mcp": {
"exa": {
"type": "remote",
"url": "https://mcp.exa.ai/mcp"
}
}
} Copy