Vite Plugin Mock Server

JSON →
library 1.3.1 ·javascript
verified May 27, 2026

vite-plugin-mock-server is a Vite plugin designed to provide local API mocking capabilities for development servers. It enables developers to define mock APIs using both TypeScript and JavaScript files, automatically hot-reloading them upon modification. The plugin is built with TypeScript, ensuring type safety for mock definitions. A key differentiator is its robust compatibility with `express.js` middlewares, allowing for advanced request processing like body parsing and cookie handling directly within the mock server configuration. It leverages ant-style path matching for flexible URL pattern definition, making it versatile for various API structures. The current stable version is 1.3.1. While no explicit release cadence is stated, it appears to be actively maintained, with updates released as needed to support Vite and address community feedback.

total hits 31
actors 8 distinct systems
last hit 21h ago Amazonbot
GPTBot
5
MetaBot
4
Script
1
Amazonbot
1
ByteDance
1
Search engines
1
Humans
1

top countries 🇨🇦 Canada · 🇺🇸 United States · 🇫🇷 France · 🇮🇳 India · 🇸🇬 Singapore