All Projects → Cryrivers → manta-style

Cryrivers / manta-style

Licence: MIT license
🚀 The futuristic API Mock Server for Frontend

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to manta-style

Openapi Mock
OpenAPI mock server with random data generation
Stars: ✭ 202 (+392.68%)
Mutual labels:  mock-server
json-fake-server
Simple way to create http server (node js) https://www.npmjs.com/package/test-fake-server
Stars: ✭ 15 (-63.41%)
Mutual labels:  mock-server
chuck
Lightweight proxy for REST API mocking and run integration test on mobile devices
Stars: ✭ 17 (-58.54%)
Mutual labels:  mock-server
Lazy Mock
一个快速生成后端模拟数据的懒人工具,支持代码生成器模板开发
Stars: ✭ 236 (+475.61%)
Mutual labels:  mock-server
platypus
Very simple and customizable mock/echo server
Stars: ✭ 15 (-63.41%)
Mutual labels:  mock-server
mockingbird
🐦 Decorator Powered TypeScript Library for Creating Mocks
Stars: ✭ 70 (+70.73%)
Mutual labels:  fakerjs
Parrot Mocker Web
Simple web server to forward received requests to real servers or just mock
Stars: ✭ 194 (+373.17%)
Mutual labels:  mock-server
karate
Test Automation Made Simple
Stars: ✭ 6,384 (+15470.73%)
Mutual labels:  mock-server
mock-webpack-plugin
A webpack plugin that starts a json mock server
Stars: ✭ 21 (-48.78%)
Mutual labels:  mock-server
wiremock
A tool for mocking HTTP services
Stars: ✭ 5,239 (+12678.05%)
Mutual labels:  mock-server
Mockoon
Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.
Stars: ✭ 3,448 (+8309.76%)
Mutual labels:  mock-server
smockin
Dynamic API, S3 & Mail mocking for web, mobile & microservice development.
Stars: ✭ 74 (+80.49%)
Mutual labels:  mock-server
mocat
🐈 Mocat is a mocking toolbar that allows you to interactively develop and test network requests.
Stars: ✭ 27 (-34.15%)
Mutual labels:  mock-server
Localroast
Mock a server for development and testing
Stars: ✭ 217 (+429.27%)
Mutual labels:  mock-server
main
Mocks Server monorepo
Stars: ✭ 109 (+165.85%)
Mutual labels:  mock-server
Sgo
A dev server for rapid prototyping. Setting a directory to a static server.It provides a 404 neat interface for listing the directory's contents and switching into sub folders.
Stars: ✭ 194 (+373.17%)
Mutual labels:  mock-server
ruby-dns-mock
DNS mock server written on 💎 Ruby. Mimic any DNS records for your test environment with fake DNS server.
Stars: ✭ 50 (+21.95%)
Mutual labels:  mock-server
vcr.js
Mock server with Proxy and Record support inspired by ruby VCR.
Stars: ✭ 41 (+0%)
Mutual labels:  mock-server
kb-proxy
kb-proxy 是一个可本地部署的、提供代理功能、接口测试管理、支持在线Mock、Host环境管理的在线工具平台。
Stars: ✭ 52 (+26.83%)
Mutual labels:  mock-server
Endpoint2mock
Android library which simplifies mocking of Retrofit endpoints
Stars: ✭ 16 (-60.98%)
Mutual labels:  mock-server

🚀 The futuristic API Mock Server for Frontend

CircleCI Codecov GitHub version lerna


UPDATE:

While Manta Style is designed to be a mock server that converts type definitions into mock data. The core of Manta Style compiles definitions and makes them usable at JavaScript runtime. The runtime also supports input formatting and validation other than mocking data.

For more tools built with Manta Style core runtime, please check out Tools.


Check out the Quick Start page for a quick overview.

Motivation

Manta Style generates "real" (enough) mock data from your type definitions.

With Manta Style, you can start implementing feature once your data schema is defined. But Manta Style is more than just that.

Generates mock data directly from your type declarations

Manta Style officially supports TypeScript and Flow at the moment.

Mock data with respect to real world scenario such as past dates, addresses, names

interface User {
  /**
   * @faker {{internet.userName}}
   */
  userName: string; // Amina.Langosh49

  /**
   * @faker date.past
   */
  birthday: number; // 1529370938452

  /**
   * @example Croatia
   */
  country: string; // Croatia
}

Mock conditions specific to your type definitions

type WithResponseSuccess<T> = {
  status: 'ok';
  data: T;
};

type WithResponseFailure = {
  status: 'error';
  /**
   * @example Bad Request
   */
  message: string;
};

type WithResponse<T> = WithResponseSuccess<T> | WithResponseFailure;

Manta Style will generate either the error case or the normal case according to your declarations. Already have your list of error conditions and messages well-defined with your back end? You are in the luck! Manta Style will generate those cases for you just like in real world.

This also gives us one more motivation to fine-tune the typing to our codebase.

Fix a test case like a snapshot.

Implementing boundary cases has been hair pulling. With Manta Style you can supply a snapshot and have it returned every time until you finish.

... and more

Need more feature? Create an issue and let us know how Manta Style can help you.

Contributing

Getting Started

npm install
npm run bootstrap
npm run build

Tools

  • Magic Type, a CLI tool that compiles TypeScript definitions to type objects runnable at JavaScript runtime.

Acknowledgments

  • Zhongliang Wang for original idea, architecture design, initial implementation of runtime and transformers.
  • Tan Li Hau for the design and implementation of selective mocking, plugin system, FlowType support and many official plugins.
  • Jennie Ji for implementation of live-reload feature.
  • Wei Gao for brilliant documentation.

License

Manta Style is MIT licensed

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].