Observed since 20 Oct, 18:28 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
chatbot to communicate with taught ai
1ff-chat-ui is a Node.js package that provides a chatbot widget for integrating a chatbot into Node.js projects. It uses Socket.IO for real-time communication with the server.
To install 1ff-chat-ui, use the following command:
npm install 1ff-chat-ui
To update 1ff-chat-ui, use the following command:
npm update 1ff-chat-ui
To use ChatUi in your Node.js project, follow these steps:
import ChatUi from "chat-ui";
document.addEventListener('DOMContentLoaded', () => {
ChatUi.init(config);
})
const assistantConfig = {
image: 'https://randomuser.me/api/portraits/women/90.jpg',
role: 'Lead Nutrition Expert, PhD',
name: 'Jenny Wilson',
welcome: 'Have a quick chat with our personal nutritionist and get a free consultation about the perfect diet for you',
ctaTextContent: 'Visit',
initialMessage: {
role: roles.assistant,
content: 'Hi, Im Jenny Wilson, your personal nutritionist. Im here to help you with your nutritional needs.',
time: '2023-05-12T12:34:56.000Z'
}
};
const customTheme = {
'--lumina': '#f0f2f5',
'--whisper': '#ffffff',
'--seraph': '#21bb5a',
'--ember': '#cacadb',
'--zephyr': '43, 49, 57',
'--enigma': '#FFAE19',
'--font-family': 'Roboto',
};
const containerId = "chatbot-container";
npm run buildChatUi supports the following configuration options:
ChatUi provides the following methods:
NOTE: everything outside of lib is a boilerplate example of how 1ff-chat-ui could be used in your project with an example, index.js file and index.html file where the index.js file is placed into a script tag;
Remember to replace SOCKET_IO_URL with the actual URL of your socket server.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.26 | 24 Aug 2023 | 16 | |
| 1.0.25 | 22 Aug 2023 | 16 | |
| 1.0.24 | 18 Aug 2023 | 16 | |
| 1.0.23 | 14 Aug 2023 | 16 | |
| 1.0.22 | 12 Jul 2023 | 16 | |
| 1.0.21 | 7 Jul 2023 | 16 | |
| 1.0.20 | 5 Jul 2023 | 16 | |
| 1.0.19 | 29 Jun 2023 | 16 | |
| 1.0.18 | 22 Jun 2023 | 16 | |
| 1.0.17 | 13 Jun 2023 | 16 | |
| 1.0.16 | 9 Jun 2023 | 16 | |
| 1.0.15 | 6 Jun 2023 | 16 | |
| 1.0.14 | 2 Jun 2023 | 15 | |
| 1.0.13 | 2 Jun 2023 | 15 | |
| 1.0.12 | 2 Jun 2023 | 15 | |
| 1.0.11 | 31 May 2023 | 15 | |
| 1.0.10 | 29 May 2023 | 15 | |
| 1.0.9 | 29 May 2023 | 15 | |
| 1.0.8 | 26 May 2023 | 15 | |
| 1.0.7 | 25 May 2023 | 15 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 18:28 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:f7ba28190faced77ce7415bcb3280f67bd17c9e8e395fe4e20e02e17277a0a5c