
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@quintoandar/storybook-amplitude
Advanced tools
Storybook Addon Amplitude provides support for Amplitude on Storybook.
Install:
npm install storybook-amplitude --save-dev
within .storybook/main.js
:
module.exports = {
addons: ['storybook-amplitude/register']
};
Then, set on window
object a key STORYBOOK_AMPLITUDE_API_KEY
using your API key as value:
window.STORYBOOK_AMPLITUDE_API_KEY = 'YOUR_API_KEY_HERE'
You can use a custom event name and identify each event with an email by setting the following values on window
object:
window.STORYBOOK_AMPLITUDE_EVENT = 'Your custom event'
window.USER_EMAIL = 'email'
The default value for STORYBOOK_AMPLITUDE_EVENT
is Story Viewed
.
lt;dr: the event will be sent with
Story Viewed
(or your custom event name) and the custom property object withviewMode
,group
,page
andstory
.
The Storybook provides just the path
and storyId
on the api
provided by register
callback. The strings
are like these examples:
/story/fundamentals-principles--page
/docs/design-spacing--page
/docs/components-accordion--base
/story/components-accordion--base
So, we've split the path and created an object with this anatomy:
/<viewMode>/<group>-<page>--<story>
Examples:
Path | ViewMode | Group | Page | Story |
---|---|---|---|---|
/story/fundamentals-principles--page | story | fundamentals | principles | null |
/docs/design-spacing--page | docs | design | spacing | null |
/docs/components-accordion--base | docs | components | accordion | base |
/story/components-button--disabled | story | components | button | disabled |
Creating an util function that returns an object with viewMode, group, page and story. Something like this:
{
viewMode: 'docs',
group: 'components',
page: 'button',
story: 'disabled'
}
Do you need a help? Open a issue here!
FAQs
Storybook Addon for Amplitude
The npm package @quintoandar/storybook-amplitude receives a total of 0 weekly downloads. As such, @quintoandar/storybook-amplitude popularity was classified as not popular.
We found that @quintoandar/storybook-amplitude demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 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 uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.