Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

web-myna

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web-myna

emulate your api for testing and development

  • 0.0.13
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
increased by225%
Maintainers
1
Weekly downloads
 
Created
Source

Web Myna

GitHub top language github contributors web-myna.svg prs welcome

Why ?

For a long time, the idea of having a system to record API calls to use them in functional or e2e tests has been making its mark. I have tried several tools:

  • Polly.js with its REST recording. But Polly imposes a lot of configuration, and leaves too dependent on the library in the tests.
  • RestBird. The project is still a little young, the documentation still too incomplete. And above all, you can only launch the mock server on localhost, which is a problem within docker-composer.
  • Http Toolkit. It is a paid system to enjoy all features, and it does not really work as an API server (mocked), but more as a request interceptor.
  • Mock server. Probably the most attractive project, but it seems really too complicated!

So no project that really matched the need.

How ?

This is what I expect from such a tool:

  • Technology-independent: the idea is to configure the API's consumer application to point to the recorder API. That's all.
  • The API recorder is configured for an API route and has already recorded the response: it returns it.
  • If the API recorder is configured for an API route but has no record: it records.
  • If the API requires authentication, this is indicated in the API recorder configuration, and it uses env variables to avoid hard recording secrets.
  • All configuration of the recorder API must be isolated and versionable (SQLite and json?)
  • It should be easy to redo complete records when the API changes. Ideally, a feature should allow a specific record to be verified to compare it with the true API response
  • Possibly, have a notion of team, i.e. associate mocker services with work teams (like using an auth token from the tests to identify a team?)
  • It will therefore require an interface to manage the API Recorder server.
  • The system will have to run both locally and in a docker container. Actually, especially in a docker container

Installation

make install

Usage

make start

Contributing

pull requests are welcome. for major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

make test

To learn more about the contributions to this project, consult the contribution guide.

Maintainer

alexisjanvier
Alexis Janvier

License

web-myna is licensed under the mit license, courtesy of Arte and Marmelab.

FAQs

Package last updated on 11 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc