WireMock vs Mock Service Worker: open-source test data and mocking tools compared
Metrics as of , from the GitHub or GitLab API of each repository. Refreshed monthly.
Summary
WireMock: HTTP API mocking tool that runs in unit tests, as a standalone server, or in a container.
Mock Service Worker: API mocking library for JavaScript that intercepts requests at the network level in browsers and Node.js.
Both are listed under Test data and mocking. The table gives repository metrics from the GitHub API with their fetch date, then the documented facts used for every comparison in this category, each linked to the README or docs page it comes from. A cell reads "not documented" when the fact was not found in the project's documentation; that does not mean the feature is absent.
Side by side
| Fact | WireMock | Mock Service Worker |
|---|---|---|
| Stars | 7,3781 | 18,2161 |
| Forks | 1,5191 | 6261 |
| Contributors | 3091 | 1821 |
| Last release | 2025-11-141 | 2026-07-081 |
| Last commit | 2026-09-221 | 2026-09-081 |
| Commits in 90 days | 1311 | 121 |
| License | Apache-2.01 | MIT1 |
| Primary language | Java1 | TypeScript1 |
| Status | active1 | active1 |
| Languages for writing tests | Java and JVM; community solutions for Python, Node.js, .NET, Go, Rust, Kotlin, Groovy and others source: Docs: WireMock Java | JavaScript source: README |
| Protocols | HTTP-based protocols and REST; HTTPS, gRPC, GraphQL, webhooks; WebSockets (beta) source: Docs: WireMock Java | HTTP, GraphQL, WebSocket source: Docs: Quick start |
| Definition format | Java API, JSON files, JSON over HTTP; record and playback of stubs source: README | Code (request handlers passed to setupServer in Node.js or setupWorker in the browser) source: Docs: Quick start |
| Framework integrations | JUnit 5 Jupiter extension; JUnit 4 and Vintage source: Docs: JUnit 5+ Jupiter | Vitest (quick start setup) source: Docs: Quick start |
| Install method | Maven or Gradle (org.wiremock:wiremock); standalone uber JAR source: Docs: Download and Installation | npm (npm i msw --save-dev) source: Docs: Quick start |
1 Fetched from the GitHub or GitLab API on . Hover a value for its own date.
When each fits
Written from each project's documented scope, not from preference. Neither tool is ranked.
WireMock
Fits projects that need stable test and development environments with simulated APIs; its README describes running in unit tests, as a standalone process or in a container. source: README
Mock Service Worker
Fits projects that mock APIs in the browser and in Node.js; its docs describe intercepting outgoing requests and answering them with mocked responses. source: Docs: Introduction
More on these tools
Sources
- GitHub REST API: repository, read
- GitHub REST API: repository, read
- GitHub REST API: contributors, read
- GitHub REST API: contributors, read
- GitHub REST API: latest release, read
- GitHub REST API: latest release, read
- GitHub REST API: commits, read
- GitHub REST API: commits, read
- Docs: WireMock Java, read
- README, read
- Docs: Quick start, read
- README, read
- Docs: JUnit 5+ Jupiter, read
- Docs: Download and Installation, read
- Docs: Introduction, read
Documented facts collected 2026-09-22. See the methodology for how metrics and facts are gathered.