
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
criai-chat-embed
Advanced tools
Javascript library to display criai chatbot on your website
Install:
yarn install
Dev:
yarn dev
Build:
yarn build
<script type="module">
import Chatbot from "https://cdn.jsdelivr.net/npm/criai-embed/dist/web.js";
Chatbot.init({
chatflowid: "<chatflowid>",
apiHost: "http://localhost:3000",
});
</script>
<script type="module">
import Chatbot from "./web.js";
Chatbot.initFull({
chatflowid: "<chatflowid>",
apiHost: "http://localhost:3000",
});
</script>
<criai-fullchatbot></criai-fullchatbot>
To enable full screen, add margin: 0
to body
style, and confirm you don't set height and width
<body style="margin: 0">
<script type="module">
import Chatbot from "./web.js";
Chatbot.initFull({
chatflowid: "<chatflowid>",
apiHost: "http://localhost:3000",
theme: {
chatWindow: {
// height: 700, don't set height
// width: 400, don't set width
}
}
});
</script>
</body>
You can also customize chatbot with different configuration
<script type="module">
import Chatbot from "https://cdn.jsdelivr.net/npm/criai-embed/dist/web.js";
Chatbot.init({
chatflowid: "91e9c803-5169-4db9-8207-3c0915d71c5f",
apiHost: "http://localhost:3000",
chatflowConfig: {
// topK: 2
},
theme: {
button: {
backgroundColor: "#3B81F6",
right: 20,
bottom: 20,
size: "medium",
iconColor: "white",
customIconSrc:
"https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/svg/google-messages.svg",
},
chatWindow: {
welcomeMessage: "Hello! This is custom welcome message",
backgroundColor: "#ffffff",
height: 700,
width: 400,
fontSize: 16,
poweredByTextColor: "#303235",
botMessage: {
backgroundColor: "#f7f8ff",
textColor: "#303235",
showAvatar: true,
avatarSrc:
"https://raw.githubusercontent.com/zahidkhawaja/langchain-chat-nextjs/main/public/parroticon.png",
},
userMessage: {
backgroundColor: "#3B81F6",
textColor: "#ffffff",
showAvatar: true,
avatarSrc:
"https://raw.githubusercontent.com/zahidkhawaja/langchain-chat-nextjs/main/public/usericon.png",
},
textInput: {
placeholder: "Type your question",
backgroundColor: "#ffffff",
textColor: "#303235",
sendButtonColor: "#3B81F6",
},
},
},
});
</script>
Source code in this repository is made available under the MIT License.
FAQs
Javascript library to display criai chatbot on your website
The npm package criai-chat-embed receives a total of 0 weekly downloads. As such, criai-chat-embed popularity was classified as not popular.
We found that criai-chat-embed demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.