nlux
The ๐ฃ๐ผ๐๐ฒ๐ฟ๐ณ๐๐น Conversational AI JavaScript Library ๐ฌ โย UI for any LLM, supporting LangChain / HuggingFace / Vercel AI, and more ๐งก React, Next.js, and plain Jav
What is nlux?
The ๐ฃ๐ผ๐๐ฒ๐ฟ๐ณ๐๐น Conversational AI JavaScript Library ๐ฌ โย UI for any LLM, supporting LangChain / HuggingFace / Vercel AI, and more ๐งก React, Next.js, and plain JavaScript โญ๏ธ
Overview of nlux
What it is
NLUX is an open-source JavaScript library for building conversational AI user interfaces. It supports React, Next.js, and vanilla JavaScript, and can connect to various large language models (LLMs) including those provided by LangChain, Hugging Face, and Vercel AI. The library provides components and hooks that enable developers to add chat interfaces to web applications with minimal code. NLUX is part of the NLKit suite of tools for conversational AI.
Key features
- Build AI chat interfaces in minutes with just a few lines of code - React components and hooks, including `` and
useChatAdapter - Out-of-the-box support for Next.js and Vercel AI, including React Server Components (RSC) and Generative UI - Adapters for ChatGPT, LangChain LangServe, Hugging Face Inference, and a flexible interface to create custom adapters - Customizable assistant and user personas with names, images, and descriptions - Highly customizable theming and layout options - Zero-dependency core with lightweight codebase and no external UI libraries
Use cases
NLUX is suited for web applications that require conversational AI capabilities, such as customer support chatbots, AI assistants, educational tools, and any interface where users interact with LLMs. It can be used in React, Next.js, or plain JavaScript projects, and integrates with popular LLM backends like LangChain, Hugging Face, and OpenAI.
Getting started
sh # Next.js with NLUX npx nlux-cli create next my-next-app sh # React with Vite and NLUX npx nlux-cli create react my-react-app sh # Vanilla TypeScript with Vite and NLUX npx nlux-cli create vanilla my-vanilla-app For development from source, clone the repository and use Node 24.21.0 and Yarn 1.22.22: run yarn generate, yarn install --frozen-lockfile --non-interactive, yarn build:dev, yarn dev. See the repository README for full details.
License and pricing
NLUX is open-source under the Mozilla Public License Version 2.0 with additional restrictions: you cannot use the source code as part of a training dataset to develop or improve AI models, or as input for code translation tools. It can be used in personal and commercial projects if modified versions are published under the same license. Pricing is not stated; the library is open-source.
Based on the project's public README and repository metadata.