assistant-ui / assistant-ui
git clone https://github.com/assistant-ui/assistant-ui.git
@assistant-ui/react-generative-ui@0.1.5 · 3d ago
Typescript/React Library for AI Chat 💬🚀
+6
stars, 24h · #2,429
+~42
stars, 7 days · #2,994
+~180
stars, 30 days · #2,961
13k
★ total · +0% this week
1.3k
forks · 32 open issues
Star history (as recorded here)
LanguageTypeScript
LicenseMIT
Created2023-11-22 (2y ago)
Last pushtoday
Watchers85
OwnerOrganization
GitHub topics
ai-chatbotbase-uichatbotconversational-aicopilotradix-uireact-chatbotshadcnui-componentsvercel-ai-sdk
Links
- GitHub: github.com/assistant-ui/assistant-ui
- Homepage: https://www.assistant-ui.com
- Releases · Issues · Hacker News mentions
README excerpt
Product · Documentation · Examples · Discord · Contact Sales ## The UX of ChatGPT in your React app 💬🚀 **assistant-ui** is an open-source TypeScript/React library to build production-grade AI chat experiences fast. ## Installation The fastest path is the CLI, which scaffolds a Next.js app or adds the styled components to an existing project: [code] Or install the packages directly: [code] ## Usage [code] `useChatRuntime` connects to the Vercel AI SDK out of the box. Swap it for `useLangGraphRuntime`, `useDataStreamRuntime`, or any custom runtime to integrate with your own backend. ## What you get - **Composable primitives**: build any chat UX from `Thread`, `Message`, `Composer`, `ThreadList`, `ActionBar`, and friends. Style every pixel yourself, or start from a polished shadcn/ui theme that the CLI copies into your project. - **Production UX out of the box**: streaming, auto-scroll, retries, attachments, markdown, code highlighting, voice dictation, keyboard shortcuts, and accessibility. - **Generative UI**: render tool calls and JSON as React components, collect inline human approvals, and expose safe frontend actions to the model. - **Strong TypeScript**: typed runtime APIs, tool schemas, message parts, and adapters end to end. ## Backends | Integration | Package | | -------------------------------------- | ---------------------------------------------------------------- | | Vercel AI SDK | `@assistant-ui/ai-sdk` | | LangGraph / LangChain | `@assistant-ui/react-langgraph`, `@assistant-ui/react-langchain` | | AG-UI / A2A protocols | `@assistant-ui/react-ag-ui`, `@assistant-ui/react-a2a` | | Google ADK / OpenCode | `@assistant-ui/react-google-adk`, `@assistant-ui/react-opencode` | | Custom data-stream backend | `@assistant-ui/react-data-stream` | | Managed thread history, telemetry, and file storage | `assistant-cloud` | Broad model support out of the box (OpenAI, Anthropic, Google Gemini, Mistral, Perplexity, AWS Bedrock, Azure, Fireworks, Ollama) plus community providers via the AI SDK, and easy extension to any custom HTTP backend. ## Customization Instead of a single monolithic chat component, you compose primitives and bring your own styles. The CLI ships a great starter in your choice of Base UI (the default) or Radix UI flavor; you control everything else. ## Used in production by …and many more. ## Demos ## Community & Support - Examples - Documentation - Discord - Book a sales call ## License MIT, with optional Assistant Cloud for managed thread persistence and analytics. Backed by Y Combinator.