Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
@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.
The npm package @trypanacea/sdk receives a total of 0 weekly downloads. As such, @trypanacea/sdk popularity was classified as not popular.
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 found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.