Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@bavard/bavard-react
Advanced tools
A small set of React components for easily including Bavard chatbots within any React app.
npm i @bavard/bavard-react
import React from "react";
import { ChatbotWindowPopup } from "@bavard/bavard-react/ChatbotWindowPopup";
import { ChatbotWindowEmbed } from "@bavard/bavard-react/ChatbotWindowEmbed";
function App() {
return (
<div style={{ display: "flex", justifyContent: "center" }}>
<ChatbotWindowPopup agentId="b4d9de5e-2325-4244-98c4-1526643dd0da" />
<ChatbotWindowEmbed
agentId="b4d9de5e-2325-4244-98c4-1526643dd0da"
widgetId={1}
style={{ height: 600, width: 400 }}
/>
</div>
);
}
export default App;
Add a popup chatbot window to your app like this. It's only possible to render a single instance of the popup window at a time.
<ChatbotWindowPopup agentId="b4d9de5e-2325-4244-98c4-1526643dd0da" />
This will cause a popup-style chatbot to appear in the window's lower right corner.
Add an embeddable chatbot window to your app as in the code below. You can add as many instances as you like, but each one must have a distinct widgetId
number which should be a positive integer. The embed window is rendered inside a div
. The dimensions are completely up to you, but we recommend at least 375px in width.
<ChatbotWindowEmbed
agentId="b4d9de5e-2325-4244-98c4-1526643dd0da"
widgetId={1}
style={{ height: 600, width: 400 }}
/>
Here's what an embed chatbot window looks like.
FAQs
React components for working with Bavard chatbots
The npm package @bavard/bavard-react receives a total of 24 weekly downloads. As such, @bavard/bavard-react popularity was classified as not popular.
We found that @bavard/bavard-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
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.