Observed since 20 Oct, 18:28 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
1ff-chat-ui
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.
| Package / target | Requirement | Relationship |
|---|---|---|
socket.io-clientEnvironment{
"local_name": "socket.io-client",
"alias": false,
"peer_metadata": null
} | ^4.6.1 | runtime |
@babel/preset-envEnvironment{
"local_name": "@babel/preset-env",
"alias": false,
"peer_metadata": null
} | ^7.16.11 | development |
@babel/preset-typescriptEnvironment{
"local_name": "@babel/preset-typescript",
"alias": false,
"peer_metadata": null
} | ^7.16.7 | development |
@faker-js/fakerEnvironment{
"local_name": "@faker-js/faker",
"alias": false,
"peer_metadata": null
} | ^7.6.0 | development |
@testing-library/jest-domEnvironment{
"local_name": "@testing-library/jest-dom",
"alias": false,
"peer_metadata": null
} | ^5.16.4 | development |
babel-coreEnvironment{
"local_name": "babel-core",
"alias": false,
"peer_metadata": null
} | ^6.26.3 | development |
babel-loaderEnvironment{
"local_name": "babel-loader",
"alias": false,
"peer_metadata": null
} | ^9.1.2 | development |
html-webpack-pluginEnvironment{
"local_name": "html-webpack-plugin",
"alias": false,
"peer_metadata": null
} | ^5.5.1 | development |
jestEnvironment{
"local_name": "jest",
"alias": false,
"peer_metadata": null
} | ^27.5.1 | development |
jest-fetch-mockEnvironment{
"local_name": "jest-fetch-mock",
"alias": false,
"peer_metadata": null
} | ^3.0.3 | development |
jest-location-mockEnvironment{
"local_name": "jest-location-mock",
"alias": false,
"peer_metadata": null
} | ^1.0.9 | development |
webpackEnvironment{
"local_name": "webpack",
"alias": false,
"peer_metadata": null
} | ^5.82.0 | development |
webpack-cliEnvironment{
"local_name": "webpack-cli",
"alias": false,
"peer_metadata": null
} | ^5.1.1 | development |
webpack-dev-serverEnvironment{
"local_name": "webpack-dev-server",
"alias": false,
"peer_metadata": null
} | ^4.15.0 | development |
prettierEnvironment{
"local_name": "prettier",
"alias": false,
"peer_metadata": null
} | ^2.8.8 | development |
Source distribution
{
"integrity": "sha512-yWi7BoJvSjv1wPIC9aMdvoZgymRz304Kp+b9/ll/GQdRhQZ2amUom47WVeJYDrX2W0l5wLVTeV6UagxPKhqndQ==",
"shasum": "2d622deb2fce0268cda0bda50a6420e6b1afae84",
"tarball": "https://registry.npmjs.org/1ff-chat-ui/-/1ff-chat-ui-1.0.14.tgz",
"fileCount": 28,
"unpackedSize": 51525,
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIAOQPpetpdLVItBUBQR0FOTR/zu/NOuBVy0wke7m03aqAiEA85G4rLdCY2gQTwSF7zHSRkh3rdS9DG8lAlObFWTDjmA="
}
]
}Observed since 20 Oct, 18:28 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:84ae8830231eae87c7fdb62fe70b04fccbf236d33efdf5db9fc4ae0e8877ae8d