nlkitai / nlux

The π—£π—Όπ˜„π—²π—Ώπ—³π˜‚π—Ή Conversational AI JavaScript Library πŸ’¬ β€”Β UI for any LLM, supporting LangChain / HuggingFace / Vercel AI, and more 🧑 React, Next.js, and plain JavaScript ⭐️
https://docs.nlkit.com/nlux
Other
937 stars 48 forks source link
artificial-intelligence chatbot chatgpt huggingface javascript large-language-models llm openai reactjs vercel-ai-sdk

NLUX


The Powerful Conversational AI
JavaScript Library βœ¨πŸ’¬

Free & Open Source 600+ Unit Tests
npm @nlux/react npm @nlux/core

Docs Website | Discord Community | X

Do you like this project ? Please star the repo to show your support 🌟 🧑
Building with NLUX ? Get in touch β€” We'd love to hear from you.


NLUX is React and JavaScript open-source library for building conversational AI interfaces. It makes it super simple to build web applications powered by Large Language Models (LLMs). With just a few lines of code, you can add conversational AI capabilities and interact with your favorite AI models.

Try NLUX πŸš€

Use nlux-cli to quickly spin up a new Next.js, React, or Vanilla TypeScript project with NLUX integrated.

NLUX UI For Any LLM

Get started with NLUX and your favorite web framework under a minute:

# Next.js πŸ”Ό with NLUX 
npx nlux-cli create next my-next-app
# React βš›οΈ , Vite, with NLUX
npx nlux-cli create react my-react-app
# Or, vanilla TypeScript 🟨 , Vite, with NLUX
npx nlux-cli create vanilla my-vanilla-app

Docs & Examples πŸ”₯

Key Features 🌟

Repo Content πŸ“¦

This GitHub repository contains the source code for the NLUX library.
It is a monorepo that contains code for following NPM packages:

βš›οΈ React JS Packages:

🟨 Vanilla JS Packages:

🎁 Themes & Extensions:

Please visit each package's NPM page for information on how to use it.

Design Principles ⚜️

The following design principles guide the development of NLUX:

Mission πŸ‘¨β€πŸš€

Our mission is to enable developers to build outstanding LLM front-ends and applications, cross platforms, with a focus on performance and usability.

Community & Support πŸ™

License πŸ“ƒ

NLUX is licensed under Mozilla Public License Version 2.0 with restriction to use as part of a training dataset to develop or improve AI models, or as an input for code translation tools.

Paragraphs (3.6) and (3.7) were added to the original MPL 2.0 license.
The full license text can be found in the LICENSE file.

In a nutshell:

Wondering what it means to use software licensed under MPL 2.0? Learn more on MPL 2.0 FAQ.
Please read the full license text in the LICENSE file for details.

About The Project πŸ‘¨β€πŸ’»

This open-source project fits under the umbrella of NLKit, a suite of tools and libraries for building conversational AI applications. NLUX is the first project in the NLKit suite, with more to come.

The project is being led by Salmen Hichri, a senior software engineer with over a decade of experience building user interfaces and developer tools at companies like Amazon and Goldman Sachs, and contributions to open-source projects.