qmetrics.net

NLUX

JavaScript and React library for conversational LLM interfaces

NLUX screenshot

NLUX is an open-source library for adding chat-style AI interfaces to React, Next.js, or plain JavaScript apps. It connects to common LLM backends through adapters and theming hooks.

Overview

NLUX helps developers embed conversational AI in web front ends with React components, hooks, and vanilla JavaScript packages. The goal is to add LLM-powered chat with a small amount of code while keeping UI behavior approachable for end users.

Built-in adapters target ChatGPT-style APIs, LangChain LangServe, Hugging Face Inference, and Vercel AI, with guidance for Next.js and React Server Components. You can also implement a custom adapter for stream or batch responses. Assistant and user personas, conversation history, starters, markdown streaming, syntax highlighting, and event listeners are part of the feature set.

The core is lightweight, with no external UI library dependencies on the main package. Theming and layout options expose most visual details. An nlux-cli scaffolds starter projects for Next.js, React, or vanilla TypeScript.

NLUX ships as multiple NPM packages from a monorepo, including React bindings, vanilla JS builds, themes, and optional middleware examples.

Key features

  • React components and useChatAdapter hook
  • Next.js and Vercel AI examples
  • LangChain LangServe and Hugging Face adapters
  • Custom LLM adapters for stream or batch
  • Assistant and user persona customization
  • Markdown streaming and syntax highlighting
  • Conversation history and starters
  • Advanced theming without external UI libs

Use cases

  • Adding chat UI to a React or Next.js product
  • Prototyping LLM front ends with nlux-cli
  • Connecting a web app to LangServe or Hugging Face
  • Building context-aware assistants with conversation state
  • Embedding generative UI with React Server Components

Tags

Similar software

Gradio

Python toolkit for machine learning web demos and apps

Gradio is a Python package for building demos or web applications around ML models, APIs, or arbitrary Python functions, with optional link sharing and no JavaScript required.

★ 44.2k⟳ 4 days agoApache-2.0

A2A Protocol

Standard protocol for opaque AI agent communication and collaboration

Agent2Agent (A2A) is a protocol that lets agentic applications on different frameworks and servers discover each other, negotiate interaction, and collaborate securely without sharing internal state.

★ 26.7k⟳ 2 days agoApache-2.0

AG-UI Overview

Event-based protocol linking AI agents to user-facing applications

AG-UI standardizes bi-directional event streams between agent backends and frontends so chat, tools, shared state, and human approvals work consistently across frameworks and clients.

★ 21.9k⟳ 4 days agoMIT

A2UI

Generative UI framework for agent-streamed native interfaces

A2UI lets agents send layout data over a streaming protocol while client apps draw the UI with native widgets in major web and mobile frameworks.

★ 18.9k⟳ 2 days agoApache-2.0

assistant-ui

TypeScript React primitives and runtimes for production AI chat UIs

React library for assembling ChatGPT-style chat with streaming, tools, attachments, and pluggable backends via the Vercel AI SDK, LangGraph, and other adapters.

★ 13.5k⟳ yesterdayMIT

Streamdown

Streaming Markdown renderer for AI chat UIs

Streamdown is a React-oriented package meant as a drop-in stand-in for react-markdown when model output arrives token by token.

★ 5.8k⟳ 2 days agoApache-2.0