Skip to content
PluginStats

@spiriit/vite-plugin-svg-spritemap weekly downloads statistics

By spiriit · npm · Vite plugins

Generates symbol-based SVG spritemap from all .svg files in a directory

View on npm Fresh · Oct 17, 2026

@spiriit/vite-plugin-svg-spritemap has 7,919 recorded weekly downloads on npm, a decrease of 46.6% over the past 30 days.

It ranks #983 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by -46.7%.

PluginStats has 542 daily observations since Apr 24, 2025; the latest is from Oct 17, 2026.

Weekly downloads
7,919
Official API · Oct 17, 2026
7-day growth
-42.6%
-5.9K weekly downloads
30-day growth
-46.6%
-6.9K weekly downloads
90-day growth
-46.7%
-7K weekly downloads
Rank
#983
Among tracked npm listings

About @spiriit/vite-plugin-svg-spritemap

vite-plugin-svg-spritemap

This plugin supports Vite 7 and 8.

This ViteJS plugin generates a single SVG spritemap with // for each SVG file. It can also generate a stylesheet (CSS/SCSS/Stylus/Less) containing the sprites to be used directly (via a Data URI or SVG fragments).

[!NOTE] This plugin is inspired by svg-spritemap-webpack-plugin for Webpack.

🚀 Features

• ⚡ Fully integrated in your ViteJS environment • 📦 Pack your SVG files in one (spritemap) file • ✨ Use your SVG in or tags and also directly in your CSS/SCSS/Stylus/Less • 🍕 Import SVG fragments as VueJS components • 🎨 Theme an icon per usage with variables • 🔥 HMR support • ⚙️ Optimize your SVGs with SVGO or OXVG

📦 Install

👨‍💻 Quick start

Add all your SVGs icons in one folder (like below /src/icons folder for example) and pass the first argument as a glob path including your svg files.

You can access the spritemap via the route /__spritemap. All files processed by ViteJS will transform the path of the file on build. The prefix is sprite- by default.

The plugin will generate a spritemap to support all methods described below (files populated with for fragments and for sprite). This can be configured through options.

SVG

By default the generated spritemap uses the deprecated xlink:href attribute inside the tags for compatibility. You can switch to the standard href attribute or emit both with an xlink:href fallback, via the output.hrefAttribute option ('xlink:href' | 'href' | 'both').

Img

You need to add the suffix -view to access the fragment.

📚 Documentation

For more information, check the vite-plugin-svg-spritemap documentation. It covers everything from getting started to advanced topics.

👨‍💼 License

MIT

Description from the npm listing.

  • svg
  • sprites
  • spritemap
  • symbols
  • icons
  • sass
  • scss
  • css
  • less
  • stylus
  • variables
  • vite
  • vite-plugin

Where @spiriit/vite-plugin-svg-spritemap sits in the listing

Each band is one page of 20. Weekly downloads on a log 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.

All npm2,248 listings · 113 pages · page 50, #3 (overall #983)
All npm: every listing in weekly downloads order
PNG SVG
Vite plugins250 listings · 13 pages · page 9, #7 (overall #167)
Vite plugins: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

@spiriit/vite-plugin-svg-spritemap weekly downloads on npm, last 90 days: 7,919 weekly downloads as of Oct 17, 2026, -46.7% over 90 days.@spiriit/vite-plugin-svg-spritemapWeekly downloads on npm · Last 90 days7,919downloads / week-46.7% over 90 days05K10K15K20K25K30KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
@spiriit/vite-plugin-svg-spritemap weekly downloads on npm, last 90 days: 7,919 weekly downloads as of Oct 17, 2026, -46.7% over 90 days.
PNG SVG

7/30/90-day growth

@spiriit/vite-plugin-svg-spritemap weekly downloads growth on npm: -42.6% over 7 days, -46.6% over 30 days, -46.7% over 90 days.@spiriit/vite-plugin-svg-spritemapWeekly downloads growth on npm7,919downloads / week now7-day growth-5,868 weekly downloads-42.6%30-day growth-6,905 weekly downloads-46.6%90-day growth-6,951 weekly downloads-46.7%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
@spiriit/vite-plugin-svg-spritemap weekly downloads growth on npm: -42.6% over 7 days, -46.6% over 30 days, -46.7% over 90 days.
PNG SVG

Ranking history

@spiriit/vite-plugin-svg-spritemap npm ranking history: currently #983 (by weekly downloads).@spiriit/vite-plugin-svg-spritemapnpm ranking · by weekly downloads · Last 90 days#983current rank#300#400#500#600#700#800#900#1000Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 17, 2026 – Oct 18, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
@spiriit/vite-plugin-svg-spritemap npm ranking history: currently #983 (by weekly downloads).
PNG SVG

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.

Recent observations

Full history (542)
Recent weekly downloads observations for @spiriit/vite-plugin-svg-spritemap
Date (UTC)Weekly downloadsChange vs. previous
7,919-1K
8,950-336
9,286-3.9K
13,213-4.8K
18,0140
18,014+4K
14,011+224
13,787+192
13,595+132
13,463+186
13,277-543
13,820-5.3K
19,115-4.3K
23,445—

Similar npm Vite plugins plugins

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/@spiriit/vite-plugin-svg-spritemap. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.