llm-ui logo

llm-ui

Free

A React library for building LLM UIs.

FreeFree tier
Type
Open Source

About llm-ui

llm-ui is a React library for building user interfaces for large language models (LLMs). It provides components and utilities to render streamed LLM output smoothly, with features like markdown syntax handling, custom component integration, throttling, native frame rate rendering, Shiki-powered code blocks, and a headless design for custom styling.

Key Features

Removes broken markdown syntax
Add your own custom components to LLM output
Throttling smooths out pauses in the LLM’s streamed output
Renders output at native frame rate
Code blocks for every language with Shiki
Headless: Bring your own styles

Pros & Cons

Pros
  • Open source with MIT license
  • Customizable components
  • Smooth streaming with throttling
  • Native frame rate rendering
  • Comprehensive code syntax highlighting via Shiki
  • Headless design for full styling control

Best For

Building chat interfaces for LLMsDisplaying real-time streamed LLM outputCreating customizable markdown renderers for AI responsesIntegrating AI assistants into React applications