nextjs-chatbot-ui 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -10
- package/package.json +3 -5
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# nextjs-chatbot-ui
|
|
2
2
|
|
|
3
|
-
A beautiful,
|
|
3
|
+
A beautiful, **self-contained** chatbot UI component for Next.js with Tailwind CSS. Perfect for customer support, AI assistants, and chat applications.
|
|
4
|
+
|
|
5
|
+
**✨ All dependencies included!** When you install this package, all required dependencies (`mongodb`, `pg`, `chromadb`, `openai`) are automatically installed - no need to install anything else!
|
|
4
6
|
|
|
5
7
|
## ⚡ Super Simple Usage (Just 2 Files!)
|
|
6
8
|
|
|
@@ -56,7 +58,7 @@ npm install nextjs-chatbot-ui
|
|
|
56
58
|
|
|
57
59
|
## 🚀 Super Simple Setup (Complete RAG Chatbot in 3 Steps!)
|
|
58
60
|
|
|
59
|
-
**Everything works automatically!**
|
|
61
|
+
**Everything works automatically!** All dependencies are included - just run the setup script and add your `.env` file.
|
|
60
62
|
|
|
61
63
|
### Step 1: Run Setup Script
|
|
62
64
|
|
|
@@ -66,11 +68,7 @@ npx nextjs-chatbot-ui-setup
|
|
|
66
68
|
|
|
67
69
|
This automatically creates all API routes needed for the chatbot and admin setup.
|
|
68
70
|
|
|
69
|
-
### Step 2:
|
|
70
|
-
|
|
71
|
-
```bash
|
|
72
|
-
npm install mongodb pg chromadb openai
|
|
73
|
-
```
|
|
71
|
+
### Step 2: Add Environment Variables
|
|
74
72
|
|
|
75
73
|
Create `.env.local` file:
|
|
76
74
|
```env
|
|
@@ -616,9 +614,10 @@ React UI → Express API → MongoDB + ChromaDB → OpenAI
|
|
|
616
614
|
|
|
617
615
|
### Quick Start with RAG
|
|
618
616
|
|
|
619
|
-
1. **Set up backend** (
|
|
620
|
-
-
|
|
621
|
-
-
|
|
617
|
+
1. **Set up backend** (run the setup script):
|
|
618
|
+
- Run `npx nextjs-chatbot-ui-setup` to automatically create all API routes
|
|
619
|
+
- This creates Next.js API routes with MongoDB, ChromaDB, and OpenAI integration
|
|
620
|
+
- Endpoints: `/api/chat`, `/api/database/test`, `/api/database/collections`, `/api/database/columns`, `/api/database/process-embeddings`
|
|
622
621
|
|
|
623
622
|
2. **Configure chatbot**:
|
|
624
623
|
```javascript
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nextjs-chatbot-ui",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "A configurable chatbot UI component for Next.js with Tailwind CSS - Complete RAG chatbot with automatic setup",
|
|
3
|
+
"version": "1.6.0",
|
|
4
|
+
"description": "A self-contained, configurable chatbot UI component for Next.js with Tailwind CSS - Complete RAG chatbot with automatic setup. All dependencies included!",
|
|
5
5
|
"main": "./index.tsx",
|
|
6
6
|
"module": "./index.tsx",
|
|
7
7
|
"types": "./types/index.ts",
|
|
@@ -70,9 +70,7 @@
|
|
|
70
70
|
"next": "^13.0.0 || ^14.0.0 || ^15.0.0"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"clsx": "^2.1.0"
|
|
74
|
-
},
|
|
75
|
-
"optionalDependencies": {
|
|
73
|
+
"clsx": "^2.1.0",
|
|
76
74
|
"mongodb": "^6.0.0",
|
|
77
75
|
"pg": "^8.11.0",
|
|
78
76
|
"chromadb": "^1.8.0",
|