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 · Dec 6, 2026

vite-plugin-serve-static has 9,904 recorded weekly downloads on npm, a decrease of 23.2% over the past 30 days, ranking #1266 of 3,247 tracked listings.

Weekly downloads
9,904
Official API · Dec 5, 2026
7-day growth
+41.6%
+2.9K weekly downloads
30-day growth
-23.2%
-3K weekly downloads
90-day growth
+131%
+5.6K weekly downloads
Rank
#1266
▲ 107 in 7 days

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: 9,904 weekly downloads as of Dec 5, 2026, +131% over 90 days.vite-plugin-serve-staticWeekly downloads on npm · Last 90 days9,904downloads / week+131% over 90 days02K4K6K8K10K12K14KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
vite-plugin-serve-static weekly downloads on npm, last 90 days: 9,904 weekly downloads as of Dec 5, 2026, +131% over 90 days.

7/30/90-day growth

vite-plugin-serve-static weekly downloads growth on npm: +41.6% over 7 days, -23.2% over 30 days, +131% over 90 days.vite-plugin-serve-staticWeekly downloads growth on npm9,904downloads / week now7-day growth+2,911 weekly downloads+41.6%30-day growth-2,994 weekly downloads-23.2%90-day growth+5,611 weekly downloads+131%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
vite-plugin-serve-static weekly downloads growth on npm: +41.6% over 7 days, -23.2% over 30 days, +131% over 90 days.

Ranking history

vite-plugin-serve-static npm ranking history: currently #1266 (by weekly downloads).vite-plugin-serve-staticnpm ranking · by weekly downloads · Last 90 days#1266current rank#1050#1100#1150#1200#1250#1300#1350#1400Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 42 observations · Updated Dec 5, 2026pluginstats.com
vite-plugin-serve-static npm ranking history: currently #1266 (by weekly downloads).

Listing placement

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

Listing placement

Vite plugins300 listings · 15 pages · page 12, #10 (overall #230)
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 vite-plugin-serve-static
Date (UTC)Weekly downloadsChange vs. previous
9,904+16
9,888+1.5K
8,436+1K
7,409+90
7,319+403
6,916+171
6,745-248
6,993-320
7,313-2.3K
9,577-1.9K
11,488-681
12,169-262
12,431-345
12,776—

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 Dec 6, 2026. See the methodology.