npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@vitus-labs/tools-storybook

v1.15.3

Published

Preconfigured [Storybook 10](https://storybook.js.org) setup for React projects with Vite, Next.js, or React Native.

Readme

@vitus-labs/tools-storybook

Preconfigured Storybook 10 setup for React projects with Vite, Next.js, or React Native.

Includes auto-discovery of components, rocketstories integration, and curated addon presets.

Installation

bun add -d @vitus-labs/tools-storybook

Peer dependencies: react >= 19, react-dom >= 19

For React Native projects, also install: react-native >= 0.74, react-native-web >= 0.19

Usage

CLI commands

Add to your package.json:

{
  "scripts": {
    "stories": "vl_stories",
    "stories:build": "vl_stories-build"
  }
}

For monorepos:

{
  "scripts": {
    "stories": "vl_stories-monorepo",
    "stories:build": "vl_stories-monorepo-build"
  }
}

Storybook config files

Create a .storybook/ directory with these files:

// .storybook/main.ts
export { default } from '@vitus-labs/tools-storybook/storybook/main'
// .storybook/preview.ts
export { default } from '@vitus-labs/tools-storybook/storybook/preview'
// .storybook/manager.ts
export { default } from '@vitus-labs/tools-storybook/storybook/manager'

Features

Auto-discovery

Components are automatically discovered and turned into stories without writing manual .stories.tsx files. The indexer scans for index.ts component files and generates virtual story modules.

  • Rocketstyle components get stories with dimension exports (states, sizes, variants) and pseudo-state rendering
  • Plain React components get a basic story with title and default render

Rocketstories integration

The Vite plugin generates story imports from a configurable rocketstories module. This allows auto-discovered stories to use your project's init() factory with decorators (ThemeProvider, etc.).

Frameworks

  • vite — uses @storybook/react-vite (default)
  • next — uses @storybook/nextjs-vite with next/font mocking
  • react-native — uses @storybook/react-vite with react-native-web aliasing and .web.* extension priority

Included addons

a11y, chromatic, designs, docs, dark-mode, pseudo-states, themes, vitest, viewport, controls, actions, measure, outline, toolbars, backgrounds

Configuration

Configure via vl-tools.config.mjs (key: stories):

export default {
  stories: {
    framework: 'next',
    port: 6006,
    outDir: '/docs',
    storiesDir: ['/src/**/*.stories.@(js|jsx|ts|tsx|md|mdx)'],
    rocketstories: {
      module: '@my-org/rocketstories',
      export: 'storyOf',
    },
    addons: {
      docs: true,
      a11y: true,
      chromatic: true,
      themes: true,
      vitest: true,
    },
    globals: {},
    ui: { theme: 'dark' },
  },
}

rocketstories

| Option | Default | Description | |---|---|---| | module | @vitus-labs/rocketstories | The npm module to import rocketstories from | | export | rocketstories | The named export to use from the module |

This controls what auto-discovered stories import. When your rocketstories wrapper uses init({ decorators: [ThemeProvider] }), auto-discovered stories automatically get your decorators.

Exports

| Export | Description | |---|---| | @vitus-labs/tools-storybook | Config utilities (CONFIG, types) | | @vitus-labs/tools-storybook/storybook/main | Storybook main config | | @vitus-labs/tools-storybook/storybook/preview | Storybook preview config | | @vitus-labs/tools-storybook/storybook/manager | Storybook manager config |

License

MIT