Webpack Mock Server

JSON →
library 1.0.23 ·javascript
verified May 27, 2026

Webpack Mock Server is an Express.js middleware designed to integrate seamlessly with `webpack-dev-server` for API request mocking during development. It boasts a built-in hot-replacement (HMR) mechanism and a TypeScript compiler, allowing developers to define mock responses using `.js`, `.ts`, and `.json` files. The current stable version is `1.0.23`, with an active maintenance cadence demonstrated by frequent point releases addressing compatibility and bug fixes. A key differentiator is its ability to display all configured mock endpoints in a user-friendly `index.html` interface, accessible directly from the console. Unlike traditional proxy setups, it functions as a middleware, avoiding complex proxy-path-patterns while maintaining the ability to use ordinary `fetch('/api/getUserInfo')` calls. It can also operate as a standalone Express middleware without Webpack. This approach simplifies development workflow by providing a robust and integrated mocking solution.

total hits 17
actors 7 distinct systems
last hit 4d ago MJ12bot
GPTBot
5
MetaBot
4
Script
1
Search engines
3

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇮 Finland · 🇩🇪 Germany