Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@storybook-community/storybook-addon-matomo

Latest version: v4.0.2--canary.15.46124196046.0

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: sdlazaro, unional
0 Stars
0 Forks
10 Versions
8.0K Downloads
TypeScript Repo language

Scan summary

@storybook-community/storybook-addon-matomo was last scanned on 28 Nov 2026 at version 4.0.2--canary.15.46124196046.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 10 versions; the latest 3 were published on 28 Nov 2026.
  • Findings: No rules fired in version 4.0.2--canary.15.46124196046.0.
  • Downloads: 7,978 downloads.

Versions

10 versions published
Versions and the rules that fired in each
VersionPublishedStatus
4.0.2--canary.15.46124196046.0 LATEST 28 Nov 2026 No rules fired
4.0.1 28 Nov 2026 No rules fired
4.0.1--canary.12.46105941420.0 28 Nov 2026 No rules fired
4.0.0 16 Nov 2026 Not shown
3.0.1--canary.9.43916074984.0 16 Nov 2026 Not shown

No rules fired in 4.0.2--canary.15.46124196046.0

Findings

Findings for v4.0.2--canary.15.46124196046.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 4.0.2--canary.15.46124196046.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

[!NOTE] This is a fork maintained by the community to provide support for Storybook 9 and beyond. This addon was originally developed by Alex Nicholls.


Storybook Addon Matomo can be used to support Matomo Analytics in Storybook.

Compatibility

Addon version Storybook version
4.x 11.x
3.x 10.x
2.x 9.x

Getting Started

Run the following command to install and register the addon:

npx storybook add @storybook-community/storybook-addon-matomo
Manual install

Install the package:

yarn add -D @storybook-community/storybook-addon-matomo
npm install -D @storybook-community/storybook-addon-matomo
pnpm install -D @storybook-community/storybook-addon-matomo

In your .storybook/main.ts file, add the following:

// .storybook/main.ts

// Replace your-framework with the framework you are using (e.g., react-vite, nextjs-vite)
import { defineMain } from '@storybook/your-framework/node'

export default defineMain({
  // ...rest of config
  addons: ['@storybook-community/storybook-addon-matomo'],
})

If your .storybook/preview.ts file uses definePreview, register the addon there too:

// .storybook/preview.ts

// Replace your-framework with the framework you are using (e.g., react-vite, nextjs-vite)
import { definePreview } from '@storybook/your-framework'
import addonMatomo from '@storybook-community/storybook-addon-matomo'

export default definePreview({
  // ...rest of preview
  addons: [addonMatomo()],
})

In your .storybook/manager.ts file, add the following config, and adjust values to match your Matomo settings:

// .storybook/manager.ts
import { addons } from 'storybook/manager-api'

addons.setConfig({
  matomo: {
    baseUrl: 'https://your.matomo-instance.com/',
    siteId: 123456,
  },
})

If you would like to store your baseUrl or siteId, etc. in an environment variable so it is not available in your repo, add an .env file to the root of your project or set environment variables in your CI:

STORYBOOK_MATOMO_URL = https://LINK.TO.DOMAIN
STORYBOOK_MATOMO_SITE_ID = 3

And reference those variables in .storybook/manager.ts:

// .storybook/manager.ts
import { addons } from 'storybook/manager-api'

addons.setConfig({
  matomo: {
    baseUrl: process.env.STORYBOOK_MATOMO_URL,
    siteId: process.env.STORYBOOK_MATOMO_SITE_ID,
  },
})

Options

To enable Matomo's heartbeat timer that more accurately tracks time spent on a page, pass heartbeat: true to the config:

// .storybook/manager.ts
addons.setConfig({
  matomo: {
    // ...
    heartbeat: true,
  },
})

Contributing

Code of Conduct

Please read the Code of Conduct first.

Developer Certificate of Origin

To ensure that contributors are legally allowed to share the content they contribute under the license terms of this project, contributors must adhere to the Developer Certificate of Origin (DCO). All contributions made must be signed to satisfy the DCO. This is handled by a Pull Request check.

By signing your commits, you attest to the following:

  1. The contribution was created in whole or in part by you and you have the right to submit it under the open source license indicated in the file; or
  2. The contribution is based upon previous work that, to the best of your knowledge, is covered under an appropriate open source license and you have the right under that license to submit that work with modifications, whether created in whole or in part by you, under the same open source license (unless you are permitted to submit under a different license), as indicated in the file; or
  3. The contribution was provided directly to you by some other person who certified 1., 2. or 3. and you have not modified it.
  4. You understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information you submit with it, including your sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.
Getting Started

This project uses PNPM as a package manager.

Useful commands
  • pnpm start starts the local Storybook
  • pnpm build builds and packages the addon code
  • pnpm pack:local makes a local tarball to be used as a NPM dependency elsewhere
  • pnpm test runs unit tests
Migrating to a later Storybook version

If you want to migrate the addon to support the latest version of Storyboook, you can check out the addon migration guide.

Release System

This package auto-releases on pushes to main with semantic-release. No changelog is maintained and the version number in package.json is not synchronised.

Support

Please open an issue for bug reports or code suggestions. Make sure to include a working Minimal Working Example for bug reports. You may use storybook.new to bootstrap a reproduction environment.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @storybook-community/storybook-addon-matomo

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229