{"id":15295992,"url":"https://github.com/mocks-server/main","last_synced_at":"2025-05-16T05:06:22.785Z","repository":{"id":35949216,"uuid":"220199971","full_name":"mocks-server/main","owner":"mocks-server","description":"Node.js mock server running live, interactive mocks in place of real APIs","archived":false,"fork":false,"pushed_at":"2024-03-18T12:06:49.000Z","size":17946,"stargazers_count":302,"open_issues_count":81,"forks_count":18,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-11T09:40:58.177Z","etag":null,"topics":["api-rest","command-line-app","command-line-interface","cypress","development-tools","express","expressjs","fixtures","middlewares","mock","mock-server","mocks-server","nodejs","openapi","rest","rest-api","rest-apis","test-automation","testing-tools"],"latest_commit_sha":null,"homepage":"https://www.mocks-server.org","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mocks-server.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-07T09:33:38.000Z","updated_at":"2025-05-08T03:16:01.000Z","dependencies_parsed_at":"2023-01-16T09:41:02.384Z","dependency_job_id":"ed567591-dc8f-4995-b4e2-e5ebe0ae3829","html_url":"https://github.com/mocks-server/main","commit_stats":{"total_commits":2917,"total_committers":7,"mean_commits":416.7142857142857,"dds":0.3932122043195063,"last_synced_commit":"8881ca829a5b1b155bc008cb08990301efa10f42"},"previous_names":[],"tags_count":63,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mocks-server%2Fmain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mocks-server%2Fmain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mocks-server%2Fmain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mocks-server%2Fmain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mocks-server","download_url":"https://codeload.github.com/mocks-server/main/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254471061,"owners_count":22076585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-rest","command-line-app","command-line-interface","cypress","development-tools","express","expressjs","fixtures","middlewares","mock","mock-server","mocks-server","nodejs","openapi","rest","rest-api","rest-apis","test-automation","testing-tools"],"created_at":"2024-09-30T18:08:53.183Z","updated_at":"2025-05-16T05:06:22.767Z","avatar_url":"https://github.com/mocks-server.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003ca href=\"https://www.mocks-server.org\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003cimg width=\"120\" src=\"https://www.mocks-server.org/img/logo_120.png\" alt=\"Mocks Server logo\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/mocks-server/main/actions?query=workflow%3Abuild+branch%3Amaster\"\u003e\u003cimg src=\"https://github.com/mocks-server/main/workflows/build/badge.svg?branch=master\" alt=\"Build Status\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://codecov.io/gh/mocks-server/main\"\u003e\u003cimg src=\"https://codecov.io/gh/mocks-server/main/branch/master/graph/badge.svg?token=2S8ZR55AJV\" alt=\"Coverage\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://sonarcloud.io/project/overview?id=mocks-server_main\"\u003e\u003cimg src=\"https://sonarcloud.io/api/project_badges/measure?project=mocks-server_main\u0026metric=alert_status\" alt=\"Quality Gate\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@mocks-server/main\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/@mocks-server/main.svg\" alt=\"Downloads\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://renovatebot.com\"\u003e\u003cimg src=\"https://img.shields.io/badge/renovate-enabled-brightgreen.svg\" alt=\"Renovate\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/mocks-server/main/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/release-date/mocks-server/main.svg\" alt=\"Last release\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/mocks-server/main/commits\"\u003e\u003cimg src=\"https://img.shields.io/github/last-commit/mocks-server/main.svg\" alt=\"Last commit\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/mocks-server/main/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/@mocks-server/main.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## Introduction\n\nNode.js mock server running live, interactive mocks in place of real APIs. __It makes able to define many different responses for a same route__, so, you can change the whole mocked API behavior by simply changing the response of one or many routes while the server is running.\n\n## Usage\n\nDefine your mocked API routes in YAML, JSON, JavaScript or TypeScript files. Mocks Server loads them automatically and watches for changes. Defining routes using any of the available APIs is also possible.\n\nRoutes can be defined in many ways, from plain objects to plain text and even Express middlewares, and they can act in different ways also, from sending a response to proxy the request to another host.\n\n## Configuration\n\nConfigure the server simply modifying the configuration file at the root folder of your project, or use command line arguments, or even environment variables.\n\nFor changing options while it is running, you can also use any of the available integrations tools that enable live interactions with Mocks Server.\n\n## Integrations\n\nProviding a Javascript API, an interactive command line interface and a REST API for __changing the responses of the mocked API while it is running, it is easy to use both for development and testing__. Tools providing integrations with other ecosystems are also available, such as Cypress commands.\n\n## Documentation\n\nTo check out docs, visit [www.mocks-server.org][website-url].\n\n## Ecosystem\n\n| Project | Status | Description |\n| --- | --- | --- |\n| [main] | [![main-status]][main-package] | Main distribution. It includes all plugins preinstalled |\n| [core] | [![core-status]][core-package] | Pluggable core. It can be used programmatically also |\n| [plugin-admin-api] | [![plugin-admin-api-status]][plugin-admin-api-package] | Plugin providing an administration REST API |\n| [plugin-inquirer-cli] | [![plugin-inquirer-cli-status]][plugin-inquirer-cli-package] | Plugin providing an administration interactive CLI |\n| [plugin-openapi] | [![plugin-openapi-status]][plugin-openapi-package] | Plugin allowing to create routes and collections from OpenApi definitions |\n| [plugin-proxy] | [![plugin-proxy-status]][plugin-proxy-package] | Plugin providing Proxy route handler |\n| [admin-api-client] | [![admin-api-client-status]][admin-api-client-package] | API client for [plugin-admin-api] |\n| [admin-api-client-data-provider] | [![admin-api-client-data-provider-status]][admin-api-client-data-provider-package] | API client for [plugin-admin-api] built using [data-provider] |\n| [admin-api-paths] | [![admin-api-paths-status]][admin-api-paths-package] | Definition of [plugin-admin-api] routes |\n| [cypress-commands] | [![cypress-commands-status]][cypress-commands-package] | [Cypress][cypress] commands to administrate Mocks Server |\n| [config] | [![config-status]][config-package] | Provides configuration to [core][core] components and plugins |\n| [nested-collections] | [![nested-collections-status]][nested-collections-package] | Nested collections manager. Used to provide alert namespaces to plugins |\n| [logger] | [![logger-status]][logger-package] | Winston-based logger with namespaces and events emitter |\n\n## Contributing\n\nContributors are welcome.\nPlease read the [contributing guidelines](.github/CONTRIBUTING.md) and [code of conduct](.github/CODE_OF_CONDUCT.md).\n\n[main]: https://github.com/mocks-server/main/tree/master/packages/main\n[main-status]: https://img.shields.io/npm/v/@mocks-server/main.svg\n[main-package]: https://npmjs.com/package/@mocks-server/main\n\n[core]: https://github.com/mocks-server/main/tree/master/packages/core\n[core-status]: https://img.shields.io/npm/v/@mocks-server/core.svg\n[core-package]: https://npmjs.com/package/@mocks-server/core\n\n[plugin-admin-api]: https://github.com/mocks-server/main/tree/master/packages/plugin-admin-api\n[plugin-admin-api-status]: https://img.shields.io/npm/v/@mocks-server/plugin-admin-api.svg\n[plugin-admin-api-package]: https://npmjs.com/package/@mocks-server/plugin-admin-api\n\n[plugin-inquirer-cli]: https://github.com/mocks-server/main/tree/master/packages/plugin-inquirer-cli\n[plugin-inquirer-cli-status]: https://img.shields.io/npm/v/@mocks-server/plugin-inquirer-cli.svg\n[plugin-inquirer-cli-package]: https://npmjs.com/package/@mocks-server/plugin-inquirer-cli\n\n[plugin-openapi]: https://github.com/mocks-server/main/tree/master/packages/plugin-openapi\n[plugin-openapi-status]: https://img.shields.io/npm/v/@mocks-server/plugin-openapi.svg\n[plugin-openapi-package]: https://npmjs.com/package/@mocks-server/plugin-openapi\n\n[plugin-proxy]: https://github.com/mocks-server/main/tree/master/packages/plugin-proxy\n[plugin-proxy-status]: https://img.shields.io/npm/v/@mocks-server/plugin-proxy.svg\n[plugin-proxy-package]: https://npmjs.com/package/@mocks-server/plugin-proxy\n\n[admin-api-client]: https://github.com/mocks-server/main/tree/master/packages/admin-api-client\n[admin-api-client-status]: https://img.shields.io/npm/v/@mocks-server/admin-api-client.svg\n[admin-api-client-package]: https://npmjs.com/package/@mocks-server/admin-api-client\n\n[admin-api-client-data-provider]: https://github.com/mocks-server/main/tree/master/packages/admin-api-client-data-provider\n[admin-api-client-data-provider-status]: https://img.shields.io/npm/v/@mocks-server/admin-api-client-data-provider.svg\n[admin-api-client-data-provider-package]: https://npmjs.com/package/@mocks-server/admin-api-client-data-provider\n\n[admin-api-paths]: https://github.com/mocks-server/main/tree/master/packages/admin-api-paths\n[admin-api-paths-status]: https://img.shields.io/npm/v/@mocks-server/admin-api-paths.svg\n[admin-api-paths-package]: https://npmjs.com/package/@mocks-server/admin-api-paths\n\n[cypress-commands]: https://github.com/mocks-server/main/tree/master/packages/cypress-commands\n[cypress-commands-status]: https://img.shields.io/npm/v/@mocks-server/cypress-commands.svg\n[cypress-commands-package]: https://npmjs.com/package/@mocks-server/cypress-commands\n\n[config]: https://github.com/mocks-server/main/tree/master/packages/config\n[config-status]: https://img.shields.io/npm/v/@mocks-server/config.svg\n[config-package]: https://npmjs.com/package/@mocks-server/config\n\n[nested-collections]: https://github.com/mocks-server/main/tree/master/packages/nested-collections\n[nested-collections-status]: https://img.shields.io/npm/v/@mocks-server/nested-collections.svg\n[nested-collections-package]: https://npmjs.com/package/@mocks-server/nested-collections\n\n[logger]: https://github.com/mocks-server/main/tree/master/packages/logger\n[logger-status]: https://img.shields.io/npm/v/@mocks-server/logger.svg\n[logger-package]: https://npmjs.com/package/@mocks-server/logger\n\n[website-url]: https://www.mocks-server.org\n[data-provider]: https://www.data-provider.org\n[cypress]: https://www.cypress.io/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmocks-server%2Fmain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmocks-server%2Fmain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmocks-server%2Fmain/lists"}