Mocky

Open source

Mocky lets developers generate custom HTTP responses so they can test web services and clients before a real backend exists.

GitHub stars
2.1k
Last 30 days
-4(+0%)
Last commit
3 yr ago
Repository age
13 years
Version
V3.0.5
Licence
Apache-2.0
Self-hosted
Yes

About Mocky

Mocky is a small application that produces custom HTTP responses on demand. Developers use it when the backend they depend on is still being built, when a single app needs a mocked backend reply, or when they want to exercise a web service client against a known response.

The project runs as a free online service at mocky.io. Its README points to an FAQ for allowed usage and states plainly that the author does not guarantee the sustainability or stability of the hosted application, so it suits testing and prototyping rather than anything that must stay up.

Under the hood the API is written in Scala on the HTTP4s server, and mocks are stored in a PostgreSQL database through Doobie. The frontend is a React and Redux application written in TypeScript. The code is released under the Apache License 2.0. The section on hosting your own instance is still marked as work in progress.

Key features

  • Generate custom HTTP responses
  • Mock a backend that is still being built
  • Mock backend responses inside a single app
  • Test web service clients against set responses
  • API written in Scala with HTTP4s
  • Mocks stored in PostgreSQL
  • React and Redux frontend in TypeScript

Good fit for

  • Mocking an unfinished backend
  • Testing a web service client
  • Front-end work before the API is ready
Tags
mock-api
http
testing
scala
react
api-development

Mocky: questions and answers

What is Mocky used for?
Mocky lets developers generate custom HTTP responses so they can test web services and clients before a real backend exists. It is a good fit for mocking an unfinished backend, testing a web service client and front-end work before the API is ready.
Is Mocky open source?
Yes. Mocky is open source under the Apache-2.0 licence. Its source code is on GitHub at MockyAbstract/Mocky and is written mainly in TypeScript.
Is Mocky free?
Yes. Mocky is open source, so the software itself is free to use. A managed cloud version is also available.
What is Mocky an alternative to?
Mocky is an open-source alternative to Beeceptor, Webhook.site, WireMock Cloud and Mockaroo. Other open-source alternatives to Beeceptor include MockServer, Mockoon and Insomnia Mockbin.
Is Mocky actively maintained?
The most recent commit to Mocky was on 4 September 2023. The project has 2.1k stars on GitHub.

Open-source alternatives to Mocky

See all

SaaS alternatives to Mocky

See all