nlux

Stale
GitHub TypeScript NOASSERTION

Description

The Powerful Conversational AI JavaScript Library with UI for any LLM. Supports LangChain, HuggingFace, Vercel AI, and more. Works with React, Next.js, and plain JavaScript.

Key Features

  • Powerful conversational AI JavaScript library — build chat interfaces in minutes
  • Supports React, Next.js, and vanilla JavaScript for broad framework compatibility
  • Built-in adapters for LangChain, HuggingFace, Vercel AI, and more
  • Supports React Server Components and generative UI patterns
  • Zero-dependency lightweight core with no external UI library requirements
  • Customizable assistant and user personas with names, avatars, and descriptions

Use Cases

💡 Quickly add AI chat capabilities to web applications
💡 Build conversational AI interfaces backed by LangChain
💡 Integrate Vercel AI chat components in Next.js projects
💡 Create chatbots that can switch between multiple LLM backends
💡 Develop AI assistant interfaces with custom themes and styling

Categories

Quick Start

1. Scaffold a project: npx nlux-cli create next my-app
2. Or install manually: npm install @nlux/react
3. Import the AiChat component and useChatAdapter hook
4. Configure an LLM adapter (e.g., OpenAI, LangChain)
5. Render the <AiChat /> component in your page

Related Projects