
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@amplitude/storybook-addon-amplitude
Advanced tools
A storybook addon to capture events in Amplitude
A storybook addon to capture events in Amplitude.
When configured correctly, this storybook addon will send events to your Amplitude instance in two cases:
Install:
yarn add @amplitude/storybook-addon-amplitude --dev
in storybook/main.js
module.exports: {
addons: [
'storybook-addon-amplitude/preset',
]
}
Then, set your Amplitude API keys in ./storybook/manager.js
window.AMPLITUDE_DEV_API_KEY = '<amplitude-dev-api-key>';
window.AMPLITUDE_PROD_API_KEY = '<amplitude-prod-api-key>';
This storybook addon emits events to Amplitude on two different occasions, when a user switches to a new page and when a user changes a story's args.
When a user switches to a new page, this addon emits an event that looks like this:
{
event_type: "viewed documentation",
event_properties: {
category: 'variants',
page: "secondarybuttongroup"
}
}
Tracking this event in this way allows you to build charts in Amplitude to show:
a) How many people have viewed your Storybook instance over time b) What category of pages people are viewing most frequently c) What pages people are viewing most frequently
When a user changes a story's args, this addon emits an event that looks like this:
{
event_type: "updated story args",
event_properties: {
category: 'variants',
page: "secondarybuttongroup"
}
}
a) How often people use the story args functionality b) In which category of pages people update the story args most frequently c) On which pages people update the story args most frequently
FAQs
A storybook addon to capture events in Amplitude
The npm package @amplitude/storybook-addon-amplitude receives a total of 7,348 weekly downloads. As such, @amplitude/storybook-addon-amplitude popularity was classified as popular.
We found that @amplitude/storybook-addon-amplitude demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 21 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.