
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
@nx/storybook
Advanced tools
The Nx Plugin for Storybook contains executors and generators for allowing your workspace to use the powerful Storybook integration testing & documenting capabilities.
@nx/storybook is an npm package that integrates Storybook with the Nx build system. It allows you to efficiently manage and develop UI components in isolation, providing a seamless experience for building, testing, and documenting components within an Nx workspace.
Setup Storybook for an Nx Workspace
This command sets up Storybook for a specific application within an Nx workspace. It configures the necessary files and dependencies to get Storybook up and running.
npx nx g @nx/storybook:configuration my-app
Generate Stories for Components
This command generates Storybook stories for all components in a specified library. It helps in quickly creating stories for existing components, making them available for isolated development and testing.
npx nx g @nx/storybook:stories my-lib
Run Storybook
This command starts the Storybook server for a specific application, allowing you to view and interact with your components in an isolated environment.
npx nx run my-app:storybook
Build Storybook
This command builds the static Storybook site for a specific application, which can then be deployed to a static site hosting service.
npx nx run my-app:build-storybook
Storybook is the core package for building UI components in isolation. It provides a powerful interface for developing, testing, and documenting components. While @nx/storybook integrates Storybook with Nx, the core Storybook package can be used independently or with other build systems.
@storybook/react is a Storybook addon specifically for React components. It offers similar functionalities to @nx/storybook but is tailored for React projects. It does not provide the same level of integration with the Nx build system.
@storybook/angular is a Storybook addon for Angular components. Like @storybook/react, it offers functionalities for developing and testing Angular components in isolation but lacks the Nx-specific integrations provided by @nx/storybook.
@storybook/vue is a Storybook addon for Vue components. It provides similar functionalities for Vue projects, allowing developers to build and test Vue components in isolation. However, it does not integrate with the Nx build system like @nx/storybook.
Nx is a next generation build system with first class monorepo support and powerful integrations.
This package is a Storybook plugin for Nx.
Using npx
npx create-nx-workspace
Using npm init
npm init nx-workspace
Using yarn create
yarn create nx-workspace
Run:
npx nx@latest init
FAQs
The Nx Plugin for Storybook contains executors and generators for allowing your workspace to use the powerful Storybook integration testing & documenting capabilities.
The npm package @nx/storybook receives a total of 547,672 weekly downloads. As such, @nx/storybook popularity was classified as popular.
We found that @nx/storybook demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.