Skip to content
PluginStats

vite-plugin-turbosnap weekly downloads statistics

By IanVS · npm · Vite plugins

Enables the use of Chromatic Turbosnap in vite storybook projects

View on npm Fresh · Oct 18, 2026

vite-plugin-turbosnap has 40,614 recorded weekly downloads on npm, a decrease of 44.1% over the past 30 days, ranking #634 of 2,322 tracked listings.

Weekly downloads
40,614
Official API · Oct 18, 2026
7-day growth
-45.0%
-33.3K weekly downloads
30-day growth
-44.1%
-32K weekly downloads
90-day growth
-46.1%
-34.8K weekly downloads
Rank
#634
Among tracked npm listings

About vite-plugin-turbosnap

vite-plugin-turbosnap

NPM version

Generate a preview-stats.json file from your vite storybook project for consumption by chromatic cli to support turbosnap. Turbosnap can limit the number of files that are snapshotted by Chromatic to only those which might have changed due to the files that have changed. It is also smart enough to run all of the snapshots if certain files, like storybook config, package.json, or anything imported by preview.js has changed.

This is experimental, and may not support all project and storybook configurations, yet.

Please open an issue if you experience any trouble, and be sure to include the log file that is generated from the --diagnostics flag of chromatic-cli, as well as the cli's output using the --debug --trace-changed=expanded flags.

Setup

Prerequisites
  • A Chromatic account.
  • chromatic-cli 6.5.0 or higher.
  • Storybook 7.0+, or 6.5 with @storybook/builder-vite 0.1.22 or higher.
Install
npm i --save-dev vite-plugin-turbosnap
Configuration

Add this plugin to viteFinal in your .storybook/main.js:

// .storybook/main.js

import turbosnap from "vite-plugin-turbosnap";
import { mergeConfig } from "vite";

export default {
  // ... your existing storybook config
  async viteFinal(config, { configType }) {
    return mergeConfig(config, {
      plugins:
        configType === "PRODUCTION"
          ? [
              turbosnap({
                // This should be the base path of your storybook.  In monorepos, you may only need process.cwd().
                rootDir: config.root ?? process.cwd(),
              }),
            ]
          : [],
    });
  },
};

Usage

When you run build-storybook to create your production storybook, an additional file will be created in the output directory, named preview-stats.json. See the chromatic turbosnap docs for more information on how to configure and use turbosnap.

How it works

The turbosnap feature of Chromatic limits the snapshots that are executed to only those which can be reliably traced back to a changed file. In order to do this, it needs to have a dependency graph of the project, so that it knows when you change button.js, for instance, that it needs to re-run not only the button.stories.js file, but also any other stories which might include your custom button component. By default, it relies on the stats file that is output from webpack, the default storybook builder. In order to use this feature with a vite project, this plugin collects information about each module being built by vite, constructs a mapping between each file and all of the files which import it, and generates a file that mimics that created by webpack, with only the information that the chromatic cli needs to perform its checks.

Credits

Thanks to Gert Hengeveld for guidance on chromatic cli changes, and to my team at Defined Networking for giving me the time to build and test this on our own chromatic storybook project.

Description from the npm listing.

  • vite-plugin
  • chromatic
  • turbosnap
  • storybook
  • vite
  • snapshot

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

vite-plugin-turbosnap weekly downloads on npm, last 90 days: 40,614 weekly downloads as of Oct 18, 2026, -46.1% over 90 days.vite-plugin-turbosnapWeekly downloads on npm · Last 90 days40,614downloads / week-46.1% over 90 days30K40K50K60K70K80K90K100K110KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
vite-plugin-turbosnap weekly downloads on npm, last 90 days: 40,614 weekly downloads as of Oct 18, 2026, -46.1% over 90 days.

7/30/90-day growth

vite-plugin-turbosnap weekly downloads growth on npm: -45.0% over 7 days, -44.1% over 30 days, -46.1% over 90 days.vite-plugin-turbosnapWeekly downloads growth on npm40,614downloads / week now7-day growth-33,294 weekly downloads-45.0%30-day growth-32,013 weekly downloads-44.1%90-day growth-34,804 weekly downloads-46.1%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
vite-plugin-turbosnap weekly downloads growth on npm: -45.0% over 7 days, -44.1% over 30 days, -46.1% over 90 days.

Ranking history

vite-plugin-turbosnap npm ranking history: currently #634 (by weekly downloads).vite-plugin-turbosnapnpm ranking · by weekly downloads · Last 90 days#634current rank#200#300#400#500#600#700Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 17, 2026 – Oct 20, 2026 · 4 observations · Updated Oct 18, 2026pluginstats.com
vite-plugin-turbosnap npm ranking history: currently #634 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,162 shown · page 32, #14 (overall #634)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins253 listings · 13 pages · page 6, #1 (overall #101)
Vite plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (544)
Recent weekly downloads observations for vite-plugin-turbosnap
Date (UTC)Weekly downloadsChange vs. previous
40,614+4.1K
36,465-5.4K
41,852+1.6K
40,257-16.8K
57,016-17.8K
74,7960
74,796+888
73,908-2.6K
76,546+2K
74,512+3.8K
70,713-3.6K
74,271-2.4K
76,671-21.5K
98,169—

Similar npm Vite plugins plugins

All 20 vite-plugin-turbosnap alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/vite-plugin-turbosnap. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.