
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@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
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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.