npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

web-myna

v0.0.13

Published

emulate your api for testing and development

Downloads

5

Readme

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.