json-server vs WireMock
A side-by-side comparison of two self-hosted developer tools & git options — licensing, setup difficulty, resource needs, and what each one replaces.
| Feature | json-server | WireMock |
|---|---|---|
| Deploy effort | Under-an-hour setup | Under-an-hour setup |
| Health score | 82 · Excellent | 85 · Excellent |
| Category | Developer Tools & Git | Developer Tools & Git |
| License | MIT | Apache-2.0 |
| Language | JavaScript | Java |
| Setup difficulty | Easy | Medium |
| Min. RAM | 128 MB | 512 MB |
| Deployment | source, docker | docker, binary |
| GitHub stars | ★ 75,721 | ★ 7,380 |
| First released | 2014 | 2011 |
| Replaces | Mockoon, Postman Mock | Mockoon, Postman Mock |
What are json-server and WireMock?
json-server
json-server is an open-source tool that creates a full fake REST API from a single JSON file with zero coding. It is widely used for prototyping and self-hosted mock backends during development.
- Instant REST API
- JSON file backend
- Full CRUD support
- Custom routes
WireMock
WireMock is an open-source tool for mocking HTTP-based APIs and simulating service behavior. It can be run as a standalone self-hosted server for testing and development against virtualized dependencies.
- HTTP API mocking
- Request matching and stubbing
- Fault and latency simulation
- Record and playback
json-server vs WireMock: key differences
Json-server is written in JavaScript, while WireMock is built with Java. Licensing differs — MIT for json-server versus Apache-2.0 for WireMock. Json-server is the lighter option, starting around 128 MB of RAM against 512 MB for WireMock. WireMock is the more established project (first released 2011), while json-server arrived in 2014. Json-server has the considerably larger community, at 75,721 GitHub stars versus 7,380.
Why pick each one
Choose json-server if…
- Zero-code setup
- Instant REST endpoints
- Great for prototyping
Watch out for
- Not production-grade
- Node.js required
Choose WireMock if…
- Released under the Apache-2.0 license
- First-class Docker support for quick deployment
- Mature project with 7.4k GitHub stars
- Written in Java
Frequently asked questions
Is json-server or WireMock better?
json-server is the stronger all-round pick: it has both the larger community and the simpler easy setup. Consider WireMock if its specific feature set fits your needs better.
Are json-server and WireMock free and open-source?
Yes. json-server is licensed under MIT and WireMock under Apache-2.0. Both can be self-hosted at no software cost.
Can I run json-server and WireMock with Docker?
json-server: yes. WireMock: yes.
Which is lighter on resources, json-server or WireMock?
json-server has the smaller minimum footprint at 128 MB of RAM, compared to about 512 MB for WireMock. Real-world usage depends on library size, user count, and enabled features.