assistant-ui  by assistant-ui

React library for AI chat UIs

created 1 year ago
5,472 stars

Top 9.4% 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

19 hours ago

Responsiveness

1 day

Pull Requests (30d)
62
Issues (30d)
33
Star History
1,221 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.