mock-dev-server

JSON →
library 2.0.0 ·javascript
verified Jun 4, 2026

mock-dev-server is an Express middleware that automatically generates mock API endpoints from a project's `mock/index.js` configuration file. Current stable version is 2.0.0. It supports both simple JSON responses and custom handler functions with full Express 4 semantics, including route parameters. Key differentiators include zero configuration (just place a mock file), support for all HTTP methods, and seamless integration with any Express-based dev server, including webpack-dev-server. It is part of the Alibaba ICE ecosystem but can be used standalone.