Hey HN,
I wanted to share a UI toolkit project I’ve been working on recently, born out of how difficult I found it to build a great UX on top of LLMs, and keep application state in sync. I’ve built:
- A React/JS front-end library for conversational interfaces, which makes it super easy to bootstrap AI assistants and ChatGPT style UX: https://github.com/nlkitai/nlux
- A set of adapters that simplify integration with AI backends such as LangServe and HuggingFace
The library is highly configurable, easy to theme, supports markdown streaming (that was tough to get right!), custom rendering for AI response components, and it works smoothly with Next.js, React JS (of course), and even plain JavaScript (for the Vue.js folks out there ;).
I built it with an architecture I’d love myself as a dev: high code modularity, zero dependencies, wide unit test coverage, and lots of documentation and examples.
You can play with codesandbox previews and demos here: https://docs.nlkit.com/nlux
Thanks for reading. It feels like we’re at a new frontier building with LLMs, and I’d love to hear what challenges you’ve had on integrating with them & building great UI & UX.
Do you support memory? Do you have some best practices that are integrated to build AI Assistants? Like the AI won't mention that they're ChatGPT or Claude etc