
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
storybook-addon-datalayer-watcher
Advanced tools
First, install the package.
npm install --save-dev storybook-addon-datalayer-watcher
Then, register it as an addon in .storybook/main.js.
// .storybook/main.ts
// Replace your-framework with the framework you are using (e.g., react-webpack5, vue3-vite)
import type { StorybookConfig } from '@storybook/your-framework';
const config: StorybookConfig = {
// ...rest of config
addons: [
'@storybook/addon-essentials'
'storybook-addon-datalayer-watcher', // 👈 register the addon here
],
};
export default config;
This addon allows you to debug GTM dataLayer events in Storybook.
If your component pushes to the dataLayer array (directly or using a library), you can interact with it in Storybook and see the GTM events it triggers.

This addon supports all versions of Storybook starting 7.0
Please see the table bellow to see which addon version supports which Storybook versions.
| Version | Supported Storybook versions |
|---|---|
| 1.x | >= 7.0, < 9.0 |
| 2.x | >= 9.0 |
Thanks @cmarcchen for the idea
FAQs
Get GTM's dataLayer events in Storybook
The npm package storybook-addon-datalayer-watcher receives a total of 644 weekly downloads. As such, storybook-addon-datalayer-watcher popularity was classified as not popular.
We found that storybook-addon-datalayer-watcher demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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 discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.