Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
@brainfish-ai/chat-widget
Advanced tools
This is a simple chat widget that can be embedded on any website. It is built using SolidJS and Socket.io.
This is a simple chat widget that can be embedded on any website. It is built using SolidJS and Socket.io.
npm install @branfish-ai/chat-widget
<script type="module">
import ChatWidget from 'https://cdn.jsdelivr.net/npm/@branfish-ai/chat-widget'
ChatWidget.initStandard({
chatAppId: 'YOUR_CHAT_APP_ID',
})
</script>
<brainfish-standard-widget style="width: 100%; height: 600px; "></brainfish-standard-widget>
You can get the popup HTML and Javascript code by clicking on the "HTML & Javascript" button in the "Share" tab of your typebot.
Here is an example:
<script type="module">
import ChatWidget from "https://cdn.jsdelivr.net/npm/@branfish-ai/chat-widget/dist/web.js";
ChatWidget.initPopup({
chatAppId: "YOUR_CHAT_APP_ID",
autoShowDelay: 3000,
});
</script>
This code will automatically trigger the popup window after 3 seconds.
You can use these commands:
ChatWidget.open();
ChatWidget.close();
ChatWidget.toggle();
You can bind these commands on a button element, for example:
<button onclick="ChatWidget.open()">Contact us</button>
You can get the bubble HTML and Javascript code by clicking on the "HTML & Javascript" button in the "Share" tab of your typebot.
Here is an example:
<script type="module">
import ChatWidget from "https://cdn.jsdelivr.net/npm/@branfish-ai/chat-widget/dist/web.js";
ChatWidget.initBubble({
chatAppId: "YOUR_CHAT_APP_ID",
previewMessage: {
message: "Need help?",
autoShowDelay: 5000,
avatarUrl: "https://cdn-icons-png.flaticon.com/512/1587/1587565.png",
},
theme: {
button: { backgroundColor: "#0042DA", iconColor: "#FFFFFF" },
chatWindow: { backgroundColor: "#ffffff" },
},
settings: {
languageSelector: {
isEnabled: true,
},
},
});
</script>
This code will show the bubble and let a preview message appear after 5 seconds.
You can use these commands:
ChatWidget.showPreviewMessage();
ChatWidget.hidePreviewMessage();
This code will show the bubble and let a preview message appear after 5 seconds.
You can use these commands:
ChatWidget.open();
ChatWidget.close();
ChatWidget.toggle();
You can bind these commands on a button element, for example:
<button onclick="ChatWidget.open()">Contact us</button>
FAQs
This is a simple chat widget that can be embedded on any website. It is built using SolidJS and Socket.io.
The npm package @brainfish-ai/chat-widget receives a total of 0 weekly downloads. As such, @brainfish-ai/chat-widget popularity was classified as not popular.
We found that @brainfish-ai/chat-widget 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.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.