
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Better than A/B testing. Allows you to test multiple versions of a page and select the best version automatically.
JQuery and Node Implementation of the epsilon greedy algorithm.
This project is based on the blog post by Steve Hanov, 20 lines of code that will beat A/B testing every time.
Epsilon will keep a track of the conversion rate of elements of your page. You can include multiple versions of a div on your page. Epsilon will chose the version with the best conversion rate 90% of the time. The other 10% Epsilon will chose a random version.
npm install epsilon
var epsilon = require('epsilon');
app.configure(function(){
app.use(epsilon.middleware());
epsilon.bind(app);
});
Include the epsilon client script in your html. This script is exposed automatically in the epsilon middleware.
<script type='text/javascript' src='epsilon/epsilon_greedy.js'/>
<div class='epsilon-test' data-testname='h1-color-test'>
<div class='epsilon-lever' data-levername='red-h1'>
<h1 style="color:red;">Buy Some Stuff</h1>
</div>
<div class='epsilon-lever' data-levername='blue-h1'>
<h1 style="color:blue;">Buy Some Stuff</h1>
</div>
<a class='epsilon-reward' href='/checkout'>Check out</a>
</div>
Thanks to @JacksonTian for giving us the module name, Epsilon.
FAQs
Better than A/B testing. Allows you to test multiple versions of a page and select the best version automatically.
We found that epsilon 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.