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 |
node-libs-browserEnvironment{
"local_name": "node-libs-browser",
"alias": false,
"peer_metadata": null
} | ^2.2.1 | development |
prettierEnvironment{
"local_name": "prettier",
"alias": false,
"peer_metadata": null
} | ^2.8.8 | 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 |
Source distribution
{
"integrity": "sha512-mnESx+YcjDD+2xgW3yGux/cIqB5w3QEpwaSKSvHrKu6zhMaoefV4oRfTVcHixar3DuMEcOdjNZVpAFX9kEw72g==",
"shasum": "edc717e68c340f0adf56aab4e49e0643403d343f",
"tarball": "https://registry.npmjs.org/1ff-chat-ui/-/1ff-chat-ui-1.0.33.tgz",
"fileCount": 38,
"unpackedSize": 129136,
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEYCIQCpyTJCs+D0U0EXNTf27uylheOv5spDQzJyWA9DawwvKgIhALVnsszubN6d0FB76IN10aHW5Fc2WbNczKXX7eKTi/xK"
}
]
}Observed since 20 Oct, 18:28 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:a367eafdbf8701acf1455abc16ce3ecaf66a302d2b213e97716d5453a523b09f