What problem does it solve?
assistant-ui helps you build reliable AI chat UIs by providing composable UI primitives and a runtime that manages threads, messages, and streaming interactions consistently.
Core Features & Use Cases
- React UI primitives for chat: Thread, message, composer, action bars, and branch/thread navigation as reusable building blocks.
- Runtime hooks for state & events: Access and control assistant behavior via
useAui, useAuiState, and useAuiEvent across thread/message lifecycles.
- Adapter-ready architecture: Plug in multiple backend/runtime strategies (AI SDK, LangGraph, AG-UI protocol, A2A protocol, or custom/local transports).
- Support for structured message parts: Text, images, tool calls, reasoning, sources, and files—so your UI can render real assistant output types.
Quick Start
Ask an AI agent to generate a minimal chat UI using assistant-ui primitives and connect it to a streaming backend through the recommended AI SDK runtime.