from Hacker News

Show HN: LLM-UI – A library for building LLM UIs

by richardgill88 on 5/9/24, 1:21 PM with 0 comments

I built llm-ui, a UI library to help build a UI similar to ChatGPT. It operates on language model output strings, so works with any language model.

Quick features:

- Hides partial / 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

The first version is react only for now, but I'm planning to support most frontend frameworks.