Skip to content
PluginStats

vite-plugin-mock-dev-server weekly downloads statistics

By pengzhanbo · npm · Vite plugins

Vite Plugin for API mock dev server.

View on npm Stale · Oct 17, 2026

vite-plugin-mock-dev-server has 5,522 recorded weekly downloads on npm, a decrease of 49.8% over the past 30 days, ranking #1066 of 2,256 tracked listings.

Weekly downloads
5,522
Official API · Oct 17, 2026
7-day growth
-50.8%
-5.7K weekly downloads
30-day growth
-49.8%
-5.5K weekly downloads
90-day growth
-50.8%
-5.7K weekly downloads
Rank
#1066
Among tracked npm listings

About vite-plugin-mock-dev-server

vite-plugin-mock-dev-server

Vite Plugin for API mock dev server.

Features

• ⚡️ Lightweight, Flexible, Fast. • 🧲 Not injection-based, non-intrusive to client code. • 💡 ESModule/commonjs. • 🦾 Typescript. • 🔥 HMR • 🏷 Support .[cm]?js / .ts / .json / .json5. • 📦 Auto import mock file. • 🎨 Support any lib, like mockjs, or do not use it. • 📥 Path rule matching, request parameter matching. • ⚙️ Support Enabled/Disabled any one of the API mock. • 📀 Supports response body content type such as text/json/buffer/stream. • ⚖️ Use server.proxy • 🍕 Support viteConfig.define and env in the mock file. • ⚓️ Support viteConfig.resolve.alias in the mock file. • 🌈 Support vite preview mode. • 📤 Support multipart content-type, mock upload file. • 📥 Support mock download file. • ⚜️ Support WebSocket Mock • 🗂 Support building small independent deployable mock services.

Documentation

See the documentation for more details.

Install

Usage

vite.config.ts

The plugin will read the configuration of server.proxy or options.prefix, and enable mock matching for matched URLs.

The plugin will also read the define configuration, which supports direct use in mock files.

Edit Mock File

By default, write mock data in the mock directory of your project's root directory:

mock/**/*.mock.ts :

Links

• vite • awesome-vite • rspack-plugin-mock - Rspack and Rsbuild plugin for API mock server

LICENSE

The plugin is licensed under the MIT License

Description from the npm listing.

  • development
  • mock
  • mock-server
  • plugin
  • vite
  • 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-mock-dev-server weekly downloads on npm, last 90 days: 5,522 weekly downloads as of Oct 17, 2026, -50.8% over 90 days.vite-plugin-mock-dev-serverWeekly downloads on npm · Last 90 days5,522downloads / week-50.8% over 90 days4K6K8K10K12K14K16KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 17, 2026 · 88 observations · Updated Oc…pluginstats.com
vite-plugin-mock-dev-server weekly downloads on npm, last 90 days: 5,522 weekly downloads as of Oct 17, 2026, -50.8% over 90 days.

7/30/90-day growth

vite-plugin-mock-dev-server weekly downloads growth on npm: -50.8% over 7 days, -49.8% over 30 days, -50.8% over 90 days.vite-plugin-mock-dev-serverWeekly downloads growth on npm5,522downloads / week now7-day growth-5,710 weekly downloads-50.8%30-day growth-5,488 weekly downloads-49.8%90-day growth-5,702 weekly downloads-50.8%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
vite-plugin-mock-dev-server weekly downloads growth on npm: -50.8% over 7 days, -49.8% over 30 days, -50.8% over 90 days.

Ranking history

vite-plugin-mock-dev-server npm ranking history: currently #1066 (by weekly downloads).vite-plugin-mock-dev-servernpm ranking · by weekly downloads · Last 90 days#1066current rank#1062#1063#1064#1065#1066#1067#1068Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
vite-plugin-mock-dev-server npm ranking history: currently #1066 (by weekly downloads).

Listing placement

All npm2,256 listings · 113 pages · 1,130 shown · page 54, #6 (overall #1,066)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins250 listings · 13 pages · page 10, #8 (overall #188)
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 (121)
Recent weekly downloads observations for vite-plugin-mock-dev-server
Date (UTC)Weekly downloadsChange vs. previous
5,522-1.6K
7,103+390
6,713-2.9K
9,647-2K
11,6240
11,624+229
11,395+163
11,232+1K
10,202+529
9,673+921
8,752-494
9,246-2.7K
11,903-648
12,551—

Similar npm Vite plugins plugins

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