nlux  by nlkitai

JS library for conversational AI interfaces

created 1 year ago
1,314 stars

Top 31.1% on sourcepulse

GitHubView on GitHub
Project Summary

NLUX is a JavaScript library for building conversational AI interfaces, targeting web developers using React, Next.js, and vanilla JavaScript. It simplifies the integration of Large Language Models (LLMs) into web applications, enabling rapid development of AI-powered chat experiences with minimal code.

How It Works

NLUX provides pre-built React components and hooks, such as <AiChat /> and useChatAdapter, for seamless UI integration. It supports various LLM backends through adapters for LangChain, Hugging Face, and OpenAI, with options for streaming or batch responses. The library is designed with a zero-dependency core for performance and minimal bundle size, adhering to principles of intuitiveness, performance, accessibility, and excellent developer experience.

Quick Start & Requirements

  • Install/Run: Use npx nlux-cli create <project-type> <project-name> (e.g., npx nlux-cli create next my-next-app).
  • Prerequisites: Node.js.
  • Docs: docs.nlkit.com/nlux

Highlighted Details

  • React Components and Hooks for easy UI integration.
  • Out-of-the-box support for Next.js and Vercel AI, including React Server Components.
  • LLM Adapters for ChatGPT, LangChain, Hugging Face, and OpenAI, with custom adapter creation support.
  • Highly customizable UI through theming and layout options.
  • Zero-dependency core for lightweight performance.

Maintenance & Community

  • Community: Discord server available for support and discussion. GitHub Discussions for issues and ideas.
  • Lead Developer: Salmen Hichri (ex-Amazon, ex-Goldman Sachs).

Licensing & Compatibility

  • License: Mozilla Public License Version 2.0 (MPL 2.0) with specific restrictions.
  • Restrictions: Source code cannot be used as a dataset for training AI models or for code translation tools. Otherwise, it permits personal and commercial use and modification.

Limitations & Caveats

The MPL 2.0 license includes specific clauses restricting the use of the source code for AI model training or code translation, which may impact certain commercial applications.

Health Check
Last commit

10 months ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
1
Star History
43 stars in the last 90 days

Explore Similar Projects

Starred by Jared Palmer Jared Palmer(Ex-VP of AI at Vercel; Founder of Turborepo; Author of Formik, TSDX), Jeff Hammerbacher Jeff Hammerbacher(Cofounder of Cloudera), and
1 more.

promptable by cfortuner

0%
2k
TS/JS library for building full-stack AI apps
created 2 years ago
updated 2 years ago
Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
1 more.

superagent by superagent-ai

0.3%
6k
Open-source framework for building AI assistants with an API
created 2 years ago
updated 3 weeks ago
Feedback? Help us improve.