{"library":"mountebank","type":"library","category":null,"description":"Mountebank is an open-source, cross-platform, multi-protocol test double tool designed to mock services over the wire. It enables developers to create configurable mock API endpoints for various protocols like HTTP, HTTPS, TCP, and SMTP. Mountebank primarily operates by creating \"imposters\" that listen on specified ports, responding to requests based on defined \"stubs\" which include predicates (conditions) and responses. This approach allows for isolated and repeatable testing of applications, reducing dependencies on external services and improving development efficiency.\nThe project recently transitioned to a community-driven effort under the `mountebank-testing` GitHub organization, with the npm package name changing from `mountebank` to `@mbtest/mountebank`. It maintains a consistent release cadence, with several updates in the past year (v2.9.1 to v2.9.4). Key differentiators include its multi-protocol support, a powerful REST API for dynamic configuration, and the ability to extend functionality through JavaScript injection.","language":"javascript","status":"active","version":"2.9.1","tags":["javascript","test","stub","mock","double","smtp","email","http","https"],"install":[{"cmd":"npm install mountebank","imports":["npm install -g @mbtest/mountebank && mb","const mb = require('@mbtest/mountebank'); const server = await mb.create({ port: 2525 });","fetch('http://localhost:2525/imposters', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(imposterConfig) })"]},{"cmd":"yarn add mountebank","imports":[]},{"cmd":"pnpm add mountebank","imports":[]}],"homepage":"http://www.mbtest.org","github":"https://github.com/bbyars/mountebank","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/mountebank","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/mountebank/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Tue Jul 21","install_tag":null}}