Skip to content
PluginStats

@vizejs/vite-plugin-musea weekly downloads statistics

By vizejs (3 listings) · npm · Vite plugins

Vite plugin for Musea - Component gallery for Vue components

View on npm Fresh · Dec 6, 2026

@vizejs/vite-plugin-musea has 26,500 recorded weekly downloads on npm, an increase of 7.2% over the past 30 days, ranking #953 of 3,247 tracked listings.

Weekly downloads
26,500
Official API · Dec 5, 2026
7-day growth
+113%
+14.1K weekly downloads
30-day growth
+7.2%
+1.8K weekly downloads
90-day growth
+1586%
+24.9K weekly downloads
Rank
#953
▲ 216 in 7 days

About @vizejs/vite-plugin-musea

@vizejs/vite-plugin-musea

Vite plugin for Musea - Vue component gallery and documentation.

Installation

Install vp once from the Vite+ install guide, then add the package:

vp install -D @vizejs/vite-plugin @vizejs/vite-plugin-musea vize

Usage

// vite.config.ts
import { defineConfig } from "vite";
import vize from "@vizejs/vite-plugin";
import { musea } from "@vizejs/vite-plugin-musea";

export default defineConfig({
  plugins: [
    vize(),
    musea({
      include: ["src/**/*.art.vue"],
      basePath: "/__musea__",
      previewCss: ["src/styles/main.css"],
      previewSetup: "musea.preview.ts",
    }),
  ],
});

Run your Vite dev server and open the gallery route:

vp dev
http://localhost:5173/__musea__

Musea middleware is intended for the local Vite dev server and trusted development networks. Do not expose /__musea__ directly on the public internet unless it is protected by your own network controls or authentication layer.

Shared defaults live in vue.musea in your existing vite.config.*. With Vite+, retain your existing options and add Vue settings through the helper:

import { defineConfig } from "@vizejs/vite-plugin/vite-plus";

export default defineConfig({}).withVue({
  musea: {
    include: ["src/**/*.art.vue"],
    exclude: ["node_modules/**", "dist/**"],
    basePath: "/__musea__",
    inlineArt: false,
    storybookCompat: false,
  },
});

Direct musea() options override shared config. Pass preview-only options such as previewCss, previewSetup, tokensPath, theme, and storybookOutDir directly to the plugin.

Art File Format

<!-- Button.art.vue -->
<script setup lang="ts">
import Button from "./Button.vue";

defineArtMeta({
  category: "UI",
  tags: ["button", "form"],
});
</script>

<art>
  <variant name="Primary" default>
    <Button variant="primary">Click me</Button>
  </variant>
  <variant name="Disabled">
    <Button disabled>Disabled</Button>
  </variant>
</art>

Musea infers the target from the imported component tag shared by the variants. defineArtMeta() is an optional compiler macro for gallery metadata; title defaults to the inferred binding name. Normal Vue template checking supplies prop, emit, slot, completion, and diagnostic types. If a composition contains multiple possible targets, use defineArt(Component, metadata?) explicitly.

The source may be a .vue, .ts, .tsx, .js, or .jsx file. For render-function components, Musea reads statically declared runtime props and emits for the analysis and props panel.

Vue 3.5.41 does not apply a component prop literally named __proto__. Retaining its raw editor value does not make it a rendered prop. Avoid this prop name; #8533 tracks explicit editor refusal and release acceptance.

TypeScript and Editor Setup

Add the client types once, usually in src/env.d.ts:

/// <reference types="@vizejs/vite-plugin-musea/client" />

If your project type-checks .art.vue files with Volar or vue-tsc, include the extension in tsconfig.json:

{
  "include": ["src/**/*.ts", "src/**/*.vue", "src/**/*.art.vue"],
  "vueCompilerOptions": {
    "extensions": [".vue", ".art.vue"]
  }
}

Root <script setup> state is variant-local by default, so each variant gets its own refs, computed values, and composable calls:

<script setup lang="ts">
import { ref } from "vue";
import Counter from "./Counter.vue";

const count = ref(0);
</script>

<art>
  <variant name="Initial" default>
    <Counter :count="count" />
  </variant>
  <variant name="Interactive">
    <Counter :count="count" />
  </variant>
</art>

Use <script setup isolate="false"> when variants intentionally share one setup instance.

Legacy <art> metadata attributes are still supported:

AttributePurpose
titleDisplay name in the gallery
componentRelative source component path
categorySidebar grouping
statusOptional status badge
tagsSearch and filtering tags
action-eventsComma-separated events to capture
capture-mousemoveInclude mousemove in captured actions

Enable inline art when examples should live inside the component file:

musea({
  inlineArt: true,
});

Use the host component's normal inferred SFC name in inline art, for example <Button> in Button.vue.

Preview Setup

musea({
  previewCss: ["src/styles/main.css", "src/styles/musea-preview.css"],
  previewSetup: "musea.preview.ts",
});
// musea.preview.ts
import type { App } from "vue";

export default function setup(app: App) {
  // Install vue-router, vue-i18n, stores, or design-system plugins here.
}

Musea's preview scaffold styles are emitted in a low-priority cascade layer, so layered CSS from frameworks such as Tailwind v4 can still override them when loaded through previewCss.

Design Tokens

Expose a Style Dictionary-compatible token file in the gallery:

musea({
  tokensPath: "src/tokens.json",
});

Tailwind v4 theme variables can also be used as the token source:

/* src/styles/main.css */
@import "tailwindcss";

@theme {
  --color-brand: oklch(70.5% 0.213 47.604);
  --color-accent: var(--color-brand);
  --spacing-card: 1.5rem;
}
musea({
  tokensPath: "src/styles/main.css",
});

tokensPath reads tokens for the gallery and token APIs. Use previewCss separately when that CSS file should also be loaded inside component preview iframes.…

Description from the npm listing.

  • component-gallery
  • musea
  • storybook
  • vite
  • vite-plugin
  • vue

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

@vizejs/vite-plugin-musea weekly downloads on npm, last 90 days: 26,500 weekly downloads as of Dec 5, 2026, +1586% over 90 days.@vizejs/vite-plugin-museaWeekly downloads on npm · Last 90 days26,500downloads / week+1586% over 90 days05K10K15K20K25K30KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@vizejs/vite-plugin-musea weekly downloads on npm, last 90 days: 26,500 weekly downloads as of Dec 5, 2026, +1586% over 90 days.

7/30/90-day growth

@vizejs/vite-plugin-musea weekly downloads growth on npm: +113% over 7 days, +7.2% over 30 days, +1586% over 90 days.@vizejs/vite-plugin-museaWeekly downloads growth on npm26,500downloads / week now7-day growth+14,058 weekly downloads+113%30-day growth+1,790 weekly downloads+7.2%90-day growth+24,928 weekly downloads+1586%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@vizejs/vite-plugin-musea weekly downloads growth on npm: +113% over 7 days, +7.2% over 30 days, +1586% over 90 days.

Ranking history

@vizejs/vite-plugin-musea npm ranking history: currently #953 (by weekly downloads).@vizejs/vite-plugin-museanpm ranking · by weekly downloads · Last 90 days#953current rank#850#900#950#1000#1050#1100#1150#1200#1250Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
@vizejs/vite-plugin-musea npm ranking history: currently #953 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 48, #13 (overall #953)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 9, #3 (overall #163)
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 (170)
Recent weekly downloads observations for @vizejs/vite-plugin-musea
Date (UTC)Weekly downloadsChange vs. previous
26,500+2.1K
24,411-705
25,116+151
24,965+1.9K
23,059+2.7K
20,334+2.7K
17,675+5.2K
12,442+2.4K
10,050+1.6K
8,420+566
7,854-372
8,226-1.3K
9,541-2.7K
12,274—

Similar npm Vite plugins plugins

All 20 @vizejs/vite-plugin-musea 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/@vizejs/vite-plugin-musea. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.