Webpack Mock Server
JSON →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.
Traffic · last 30 days ↓44% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇮 Finland · 🇩🇪 Germany