# Introducing @mnexium/chat

A single npm package that adds a polished, production-ready AI chat widget to any website. React, Next.js, Express, or plain HTML — it just works, and most importantly, it remembers.

Marius Ndini  
Founder · Jan 19, 2026

## The Problem

Adding AI chat to a product usually means:

- Designing and building a custom UI
- Handling streaming responses
- Managing conversation state
- Securing API keys
- ...and it still won't remember anything about your users

That's a lot of engineering just to let users ask questions.

## The Solution

One package. Three ways to use it:

```
npm install @mnexium/chat
```

### ⚛️ React / Next.js

```
import { MnexiumChat } from '@mnexium/chat';

export default function App() {
  return (
    <>  
      <YourApp />  
      <MnexiumChat endpoint="/api/mnx" />  
    </>
  );
}
```

A floating chat button appears. Click. Chat. Done.

### 🌐 Plain HTML / Express

```
<script
  src="/mnexium-chat.js"
  data-endpoint="/api/mnx"
  data-theme="dark"
></script>
```

Same UI. No React. No build step.

### 🧩 Headless (Bring Your Own UI)

```
import { MnexiumClient } from '@mnexium/chat/core';

const chat = new MnexiumClient({ endpoint: '/api/mnx' });
chat.onMessage((messages) => renderYourOwnUI(messages));
await chat.send('Hello!');
```

We handle streaming + state. You control the interface.

## What You Get

- **Floating widget** with modern glass design
- **Real-time streaming** responses
- **Markdown rendering** out of the box
- **Dark/light themes** 
- custom colors + logo
- **Multi-provider support** — OpenAI, Anthropic, Gemini
- **Persistent memory** across sessions

## Why Mnexium?

The widget is powered by Mnexium, which gives your AI:

- 🧠**Memory across conversations** — Your AI remembers users across sessions, not just within a single chat.
- 📚**Automatic learning from users** — Facts, preferences, and context are extracted and stored automatically.
- 🎯**Personalization over time** — The more users interact, the smarter and more personalized responses become.

You get a smarter assistant without building memory infrastructure.

## Try It Now

Visit [mnexium.com](/content/site-root.html) or [mnexium.com/docs](/content/docs/index.html) and click the chat button in the bottom right corner. That's @mnexium/chat in action.

### @mnexium/chat v2.0.0 is live on npm

One package. Any framework. Instant AI chat.

[View on npm →](https://www.npmjs.com/package/@mnexium/chat) [Read the docs](/content/docs/index.html)
