assistant-ui  by assistant-ui

React library for AI chat UIs

Created 2 years ago
9,258 stars

Top 5.6% on SourcePulse

GitHubView on GitHub
Project Summary

This library provides a customizable React UI for AI chat applications, enabling developers to integrate ChatGPT-like experiences into their projects. It offers essential chat features and broad LLM provider support, simplifying the creation of AI-powered interfaces.

How It Works

Assistant-UI leverages composable React primitives inspired by shadcn/ui and cmdk, offering granular control over UI elements. It handles complex chat functionalities like auto-scrolling, real-time streaming, markdown rendering, and accessibility, allowing developers to focus on core logic. The library integrates seamlessly with AI SDK and LangGraph, or can be used with custom backends.

Quick Start & Requirements

  • Install/Run: npx assistant-ui create (new project) or npx assistant-ui init (existing project).
  • Prerequisites: React, Typescript, Tailwind CSS (for default theming).
  • Links: Product, Documentation, Examples, Discord Community

Highlighted Details

  • Offers out-of-the-box support for numerous LLM providers including OpenAI, Anthropic, Google Gemini, and more.
  • Features generative UI for mapping LLM tool calls and JSONs to custom frontend components.
  • Includes frontend and human tool call capabilities, enabling LLMs to act within the application and collect user input.
  • Provides chat history and analytics features, with an optional Assistant Cloud for simplified configuration.

Maintenance & Community

  • Over 50k monthly downloads, used by companies like LangChain.
  • Active development with a public roadmap and a Discord community for support.

Licensing & Compatibility

  • MIT License.
  • Compatible with commercial and closed-source applications.

Limitations & Caveats

The project is actively under development, with some features like improved documentation, OpenAI Realtime Voice, and native PDF attachment support listed as "work in progress."

Health Check
Last Commit

1 day ago

Responsiveness

1 day

Pull Requests (30d)
171
Issues (30d)
40
Star History
522 stars in the last 30 days

Explore Similar Projects

Starred by Sebastian Raschka Sebastian Raschka(Author of "Build a Large Language Model (From Scratch)"), Pawel Garbacki Pawel Garbacki(Cofounder of Fireworks AI), and
16 more.

chainlit by Chainlit

0.3%
12k
Framework for rapid conversational AI app development
Created 3 years ago
Updated 2 days ago
Feedback? Help us improve.