openapi-mock
OpenAPI mock server with random data generation (by muonsoft)
typed-openapi
Generate a headless Typescript API client from an OpenAPI spec (by astahmer)
openapi-mock | typed-openapi | |
---|---|---|
2 | 1 | |
470 | 142 | |
1.1% | - | |
1.9 | 8.1 | |
7 months ago | 3 months ago | |
Go | TypeScript | |
MIT License | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
openapi-mock
Posts with mentions or reviews of openapi-mock.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-01-25.
-
How to Automatically Consume RESTful APIs in Your Frontend
Since the OpenAPI can effectively describe our resources, we can reuse it to generate a dummy server that can be later used for development and testing purposes without bootstrapping any actual services. There some tools available that can help us with this task, such as Prism, OpenAPI Mock, OpenAPI Backend and the MSW library we have already seen.
- Eskimo is a supercharged mocking server for developers and testers, that aims to abstract the complexities of coding a mock server into simple JSON configurations.
typed-openapi
Posts with mentions or reviews of typed-openapi.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-01-25.
-
How to Automatically Consume RESTful APIs in Your Frontend
Since the OpenAPI specification is language-agnostic, we can use the output to validate data in both our frontend and backend. This approach makes total sense since we can provide uniform validation rules on both sides of our stack. There are a few libraries out there that can help us with this task, such as typed-openapi or openapi-zod-client, which can take an OpenAPI definition as an input and transform it to zod schema definitons.
What are some alternatives?
When comparing openapi-mock and typed-openapi you can also consider the following projects:
oapi-codegen - Generate Go client and server boilerplate from OpenAPI 3 specifications
swagmock - Mock data generator for swagger api
mockoon - Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.
gnostic - A compiler for APIs described by the OpenAPI Specification with plugins for code generation and other API support tasks.
prism - Turn any OpenAPI2/3 and Postman Collection file into an API server with mocking, transformations and validations.
kin-openapi - OpenAPI 3.0 (and Swagger v2) implementation for Go (parsing, converting, validation, and more)
SWR - React Hooks for Data Fetching