npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@assistant-ui/react

v0.11.47

Published

TypeScript/React library for AI Chat

Readme

Weave Badge Backed by Y Combinator

The UX of ChatGPT in your React app 💬🚀

assistant-ui is an open source TypeScript/React library for AI chat.

The library handles essential chat features such as auto-scrolling, accessibility, and real-time updates, while providing easy integration with LangGraph, AI SDK and custom backends.

The API of assistant-ui is inspired by libraries like shadcn/ui and cmdk. Instead of a single monolithic chat component, developers get primitive components that can be fully customized.

We have wide model provider support (OpenAI, Anthropic, Mistral, Perplexity, AWS Bedrock, Azure, Google Gemini, Hugging Face, Fireworks, Cohere, Replicate, Ollama) out of the box and the ability to integrate custom APIs.

Getting Started

You can get started by running npx assistant-ui create (new project) or npx assistant-ui init (existing project) in your terminal.

assistant-ui starter template

Features

  • shadcn/ui
    • Radix UI-inspired primitives for AI Chat
    • Beautiful shadcn/ui theme to get you started
  • Chat UI
    • Streaming, Auto-scrolling, Markdown, Code Highlighting, File Attachments, and more
  • Keyboard shortcuts and accessibility features
  • Generative UI
    • Map LLM tool calls and JSONs to custom UI components
  • Frontend tool calls
    • Let LLMs take action in your frontend application
  • Human tool calls
    • Human approvals and input collection
  • Chat history and analytics
    • Sign up for assistant-cloud and configure by simply setting an environment variable

Choose your backend

  • AI SDK
    • First class integration into AI SDK by Vercel. Connect to any LLM provider supported by AI SDK.
  • LangGraph
    • First class integration into LangGraph and LangGraph Cloud. Connect to any LLM provider supported by LangChain.
  • Custom
    • Use assistant-ui as the visualization layer on top your own backend/streaming protocols.

Customization

The API of assistant-ui is inspired by libraries like Radix UI and cmdk. Instead of a single monolithic chat component, we give you composable primitives and a great starter configuration. You have full control over the look and feel of every pixel while leaving auto-scrolling, LLM streaming and accessibility to us.

Overview of components

Sample customization to make a perplexity lookalike:

Perplexity clone created with assistant-ui

Demo Video

Short Demo

Long Demo

Traction

Hundreds of projects use assistant-ui to build in-app AI assistants, including companies like LangChain, AthenaIntelligence, Browser Use, and more.

With >50k+ monthly downloads, assistant-ui is the most popular UI library for AI chat.

2025 Q1 Roadmap

  • [x] Assistant Cloud
  • [x] Chat Persistence
  • [x] React 19, Tailwind v4, NextJS 19 support
  • [x] Improved Markdown rendering performance
  • [x] LangGraph interrupt() support
  • [x] Open in v0 support
  • [ ] Improved documentation (work in progress)
  • [ ] OpenAI Realtime Voice (work in progress)
  • [ ] Resume interrupted LLM calls (work in progress)
  • [ ] Native PDF attachment support
  • [ ] Follow-up suggestions

Next Steps