Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →
Top 8 TypeScript mock-server Projects
-
mockoon
Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.
-
prism
Turn any OpenAPI2/3 and Postman Collection file into an API server with mocking, transformations and validations. (by stoplightio)
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
ts-openapi-generator
:hammer_and_pick: Generate API, Model, and Mocks files from Swagger/OpenAPI to use in any project (java, ts, js, PHP, angular...)
Mockoon - Used as a logging server instead of using print in the console.
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.
Project mention: Smocker: Smocker is a simple and efficient HTTP mock server and proxy | news.ycombinator.com | 2024-02-21
Project mention: Client-side proxies – a better way to individualise the Internet? (2000) | news.ycombinator.com | 2023-07-23Interesting how the world has changed since the 2000s here - nowadays the ecosystem is far better, so it's much easier to set up tools to mess around with this, but the use of HTTPS everywhere makes it more difficult in more advanced cases (e.g. you'll often need to fight certificate configuration in individual clients).
In part because of that, browser extensions have become the main way to go for this kind of local web modification, but now there's new restrictions slowly coming in there too.
If you want to mess around with HTTP-level rewriting for yourself though, I maintain a Node.js library for easily writing tiny custom HTTP & HTTPS-intercepting proxies that makes it very easy: https://github.com/httptoolkit/mockttp/. Others have built more specific tooling on top too, like this web page modification proxy: https://github.com/OnkelTem/wmod-proxy
There's a walkthrough for setting up a quick local proxy & rewriting your own browser traffic here: https://httptoolkit.com/blog/javascript-mitm-proxy-mockttp/
TypeScript mock-server related posts
- Client-side proxies – a better way to individualise the Internet? (2000)
- Please recommend a good API Mocking tool
- Framework for end to end testing of microservices
- HTTP Toolkit for Performance Engineers ⚡
- Hudsucker: A MITM HTTP/S (and websocket) proxy
- How to get packet from mobile game? (How to hack mobile game?)
- In one click intercept, debug and mock HTTP with HTTP Toolkit
-
A note from our sponsor - InfluxDB
www.influxdata.com | 25 Apr 2024
Index
What are some of the best open-source mock-server projects in TypeScript? This list will help you:
Project | Stars | |
---|---|---|
1 | mockoon | 5,864 |
2 | prism | 4,006 |
3 | smocker | 1,113 |
4 | atmo | 818 |
5 | mockttp | 736 |
6 | mockoon.com | 18 |
7 | fake-api-middleware | 10 |
8 | ts-openapi-generator | 8 |
Sponsored