Skip to content
PluginStats

vite-plugin-serve-static weekly downloads statistics

By typeparameter · npm · Vite plugins

A Vite plugin for serving static files during local development

View on npm Fresh · Oct 18, 2026

vite-plugin-serve-static has 3,376 recorded weekly downloads on npm, a decrease of 32.1% over the past 30 days, ranking #1219 of 2,322 tracked listings.

Weekly downloads
3,376
Official API · Oct 18, 2026
7-day growth
-4.8%
-170 weekly downloads
30-day growth
-32.1%
-1.6K weekly downloads
90-day growth
-15.5%
-617 weekly downloads
Rank
#1219
Among tracked npm listings

About vite-plugin-serve-static

vite-plugin-serve-static

npm vite license: MIT

A simple Vite plugin for serving arbitrary static files that aren't in your public directory.

// vite.config.ts
import path from "path";

import { defineConfig } from "vite";
import serveStatic from "vite-plugin-serve-static";

const serveStaticPlugin = serveStatic({
  rules: [
    {
      pattern: /^\/metadata\.json/,
      resolve: path.join(".", "metadata.json"),
    },
    {
      pattern: /^\/dog-photos\/.*/,
      resolve: ([match]) => path.join("..", match),
    },
    {
      pattern: /^\/author-photos\/(.*)/,
      resolve: (groups) => path.join("..", "authors", groups[1]) + ".jpg",
    },
  ],
});

export default defineConfig({
  plugins: [serveStaticPlugin],
});

Config

The configuration is provided as an object with rules, plus an optional global contentType.

Each rule defines which patterns to intercept and how to resolve them. Each pattern is defined as a regular expression. The resolve property can either be a string containing the path to a single file or a function that returns a string given the result of executing the pattern against the request path. Rules can also specify headers to apply per match.

const serveStaticPlugin = serveStatic({
  contentType: "text/plain",
  rules: [
    {
      pattern: /^\/metadata\.json/,
      resolve: path.join(".", "metadata.json"),
      headers: {
        "Cache-Control": "no-store",
        "X-Static-File": "true",
      },
    },
  ],
});

License

Licensed under the MIT License.

Description from the npm listing.

  • vite-plugin

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-serve-static weekly downloads on npm, last 90 days: 3,376 weekly downloads as of Oct 18, 2026, -15.5% over 90 days.vite-plugin-serve-staticWeekly downloads on npm · Last 90 days3,376downloads / week-15.5% over 90 days02K4K6K8K10KJul 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-serve-static weekly downloads on npm, last 90 days: 3,376 weekly downloads as of Oct 18, 2026, -15.5% over 90 days.

7/30/90-day growth

vite-plugin-serve-static weekly downloads growth on npm: -4.8% over 7 days, -32.1% over 30 days, -15.5% over 90 days.vite-plugin-serve-staticWeekly downloads growth on npm3,376downloads / week now7-day growth-170 weekly downloads-4.8%30-day growth-1,593 weekly downloads-32.1%90-day growth-617 weekly downloads-15.5%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
vite-plugin-serve-static weekly downloads growth on npm: -4.8% over 7 days, -32.1% over 30 days, -15.5% over 90 days.

Ranking history

vite-plugin-serve-static npm ranking history: currently #1219 (by weekly downloads).vite-plugin-serve-staticnpm ranking · by weekly downloads · Last 90 days#1219current rank#1190#1195#1200#1205#1210#1215#1220#1225Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
vite-plugin-serve-static npm ranking history: currently #1219 (by weekly downloads).

Listing placement

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

Listing placement

Vite plugins253 listings · 13 pages · page 12, #7 (overall #227)
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 (122)
Recent weekly downloads observations for vite-plugin-serve-static
Date (UTC)Weekly downloadsChange vs. previous
3,376+231
3,145-127
3,272+1.6K
1,713-840
2,553-802
3,3550
3,355-191
3,546-264
3,810+15
3,795-410
4,205-614
4,819-816
5,635-1.4K
7,044—

Similar npm Vite plugins plugins

All 20 vite-plugin-serve-static 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-serve-static. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.