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.
@hackler/react-sdk
Advanced tools
npm install @hackler/react-sdk --save
yarn add @hackler/react-sdk
import { createInstance, HackleProvider } from "@hackler/react-sdk";
const hackleClient = createInstance("YOUR_SDK_KEY")
const user = {
id: "ae2182e0",
properties: {
app_version: "1.0.1",
age: 23,
paying_customer: true
}
}
ReactDOM.render(
<HackleProvider hackleClient={hackleClient} user={user} timeout={1000}>
<YourApp />
</HackleProvider>,
document.getElementById('root')
);
function App() {
return (
<HackleExperiment experimentKey={42}>
<HackleVariation variation={"A"}>
<OldBlueButton />
</HackleVariation>
<HackleVariation variation={"B"}>
<NewRedButton />
</HackleVariation>
</HackleExperiment>
)
}
const track = useTrack()
const event = {
key: "purchase",
value: 5000,
properties: {
first_paying: false,
item_count: 5
}
}
<button onClick={() => track(event)}>Purchase</button>
FAQs
React SDK for Hackle
We found that @hackler/react-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.