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.47Registry latest | 21 Dec 2023 | 16 | |
| 1.0.46 | 7 Nov 2023 | 16 | |
| 1.0.44 | 2 Nov 2023 | 16 | |
| 1.0.43 | 1 Nov 2023 | 16 | |
| 1.0.42 | 26 Oct 2023 | 16 | |
| 1.0.41 | 16 Oct 2023 | 16 | |
| 1.0.40 | 9 Oct 2023 | 16 | |
| 1.0.39 | 9 Oct 2023 | 16 | |
| 1.0.38 | 3 Oct 2023 | 16 | |
| 1.0.37 | 27 Sept 2023 | 16 | |
| 1.0.36 | 20 Sept 2023 | 16 | |
| 1.0.35 | 13 Sept 2023 | 16 | |
| 1.0.34 | 12 Sept 2023 | 16 | |
| 1.0.33 | 11 Sept 2023 | 16 | |
| 1.0.32 | 7 Sept 2023 | 16 | |
| 1.0.31 | 5 Sept 2023 | 16 | |
| 1.0.30 | 1 Sept 2023 | 16 | |
| 1.0.29 | 29 Aug 2023 | 16 | |
| 1.0.28 | 29 Aug 2023 | 16 | |
| 1.0.27 | 25 Aug 2023 | 16 |
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