A favicon of Assistant UI

Assistant UI

An open-source TypeScript/React library for building AI chat interfaces, offering composable components and broad LLM provider integration.

A screenshot of Assistant UIVisit

Build AI Chat Interfaces in React with assistant-ui

assistant-ui is a TypeScript/React library enabling developers to integrate sophisticated AI chat experiences, similar to ChatGPT, directly into their applications. It offers a set of primitive, fully customizable components, drawing inspiration from shadcn/ui and cmdk, which contrasts with monolithic chat solutions. This design philosophy grants complete control over the visual presentation and user interaction, while the library expertly manages essential chat features such as automatic scrolling, real-time message updates, and accessibility standards.

Features:

  • shadcn/ui Inspired Primitives: Offers Radix UI-inspired components for AI Chat, complemented by a ready-to-use shadcn/ui theme.
  • Comprehensive Chat UI: Includes essential features like message streaming, auto-scrolling, Markdown rendering, code syntax highlighting, and file attachment capabilities.
  • Keyboard Shortcuts & Accessibility: Designed with built-in keyboard navigation and accessibility features for an inclusive user experience.
  • Generative UI Capabilities: Allows mapping of Large Language Model (LLM) tool calls and JSON data to custom user interface components.
  • Frontend Tool Calls: Empowers LLMs to trigger actions and interact with elements directly within your frontend application.
  • Human Tool Calls: Supports workflows requiring human approvals and input collection seamlessly within the chat interface.
  • Chat History and Analytics: Provides optional integration with assistant-cloud for chat persistence and usage analytics, configured via an environment variable.
  • Wide Model Provider Support: Features out-of-the-box compatibility with numerous LLM providers including OpenAI, Anthropic, Mistral, Perplexity, AWS Bedrock, Azure, Google Gemini, and others.
  • AI SDK Integration: Offers first-class integration with Vercel's AI SDK, facilitating connections to any LLM provider it supports.
  • LangGraph Integration: Provides seamless integration with LangGraph and LangGraph Cloud, enabling use with LLM providers supported by LangChain.
  • Custom Backend Flexibility: Can be utilized as the visualization layer on top of proprietary backends and custom streaming protocols.
  • Composable API: Delivers primitive components for granular control and customization, influenced by libraries like Radix UI and cmdk.
  • Quick Start CLI: Facilitates easy project setup using npx assistant-ui create for new projects or npx assistant-ui init for existing ones.

Summary:

assistant-ui equips developers to seamlessly embed advanced AI chat functionalities into their React projects. It provides a collection of highly customizable UI primitives, manages intricate chat mechanics like message streaming and real-time updates, and ensures smooth integration with leading AI backends and model providers. This enables the development of unique, ChatGPT-style conversational experiences with comprehensive control over aesthetics and behavior, while abstracting the complexities of common chat UI development tasks.

Distribution:
opensource
GitHub:
4,801 Stars
570 Forks
Share:

 

  
 

Similar to Assistant UI:

 

  
  

 

  
  

 

  
  
Assistant UI: Embed ChatGPT-like UX into your React app with customizable AI chat components. – Awesome-Shadcn/ui