Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@trypanacea/sdk
Advanced tools
The Panacea SDK enables developers to seamlessly integrate the Panacea live chat widget into their web applications. It provides tools for initializing chat sessions, customizing widget behavior, and managing user interactions—all with minimal setup.
The Panacea SDK enables developers to seamlessly integrate the Panacea live chat widget into their web applications. It provides tools for initializing chat sessions, customizing widget behavior, and managing user interactions—all with minimal setup.
Install the Panacea SDK via npm:
npm install @trypanacea/sdk
Import and initialize the SDK in your application:
import { PanaceaSDK } from "@trypanacea/sdk";
PanaceaSDK.initPanacea({
appKey: "your-app-key", // Replace with your app key
apiKey: "your-api-key", // Replace with your API key
settings: {
userId: "12345", // Optional: Unique user ID
firstName: "John", // Optional: User's first name
lastName: "Doe", // Optional: User's last name
email: "john.doe@example.com", // Optional: User's email
actionColor: "#3498db", // Optional: Button color
backgroundColor: "#ffffff", // Optional: Widget background color
region: "us", // Optional: Default region (us, eu, ap)
},
});
You can hide the default launcher and use a custom element:
PanaceaSDK.initPanacea({
appKey: "your-app-key",
apiKey: "your-api-key",
settings: {
customLauncherSelector: "#custom-launcher",
hideDefaultLauncher: true,
},
});
In your HTML:
<button id="custom-launcher">Start Chat</button>
Here's how to integrate the SDK in a React component:
import { useEffect } from "react";
import { PanaceaSDK } from "@trypanacea/sdk";
const ChatWidget = () => {
useEffect(() => {
PanaceaSDK.initPanacea({
appKey: "your-app-key",
apiKey: "your-api-key",
settings: {
firstName: "Jane",
email: "jane.doe@example.com",
},
});
}, []);
return null;
};
export default ChatWidget;
initPanacea({ appKey, apiKey, settings })
Run the unit tests to ensure everything is working correctly:
npm test
Compile the TypeScript code:
npm run build
Contributions are welcome! Please follow these steps:
git checkout -b feature/your-feature
git commit -m "Add your feature"
git push origin feature/your-feature
This package is licensed under the MIT License.
If you encounter issues or have questions, please open an issue in the GitHub repository.
FAQs
The Panacea SDK enables developers to seamlessly integrate the Panacea live chat widget into their web applications. It provides tools for initializing chat sessions, customizing widget behavior, and managing user interactions—all with minimal setup.
We found that @trypanacea/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.