{"id":21162725,"url":"https://github.com/tmcdos/mockapist","last_synced_at":"2025-08-31T22:35:36.168Z","repository":{"id":180190065,"uuid":"152878756","full_name":"tmcdos/mockapist","owner":"tmcdos","description":"Mock REST APIs locally","archived":false,"fork":false,"pushed_at":"2018-10-16T09:36:56.000Z","size":678,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T16:15:18.358Z","etag":null,"topics":["local","mocking","rest-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tmcdos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"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":"2018-10-13T14:13:45.000Z","updated_at":"2021-01-29T13:10:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"8f80c2f0-f872-493c-8ba0-600e0f63e1f9","html_url":"https://github.com/tmcdos/mockapist","commit_stats":null,"previous_names":["tmcdos/mockapist"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tmcdos/mockapist","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmcdos%2Fmockapist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmcdos%2Fmockapist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmcdos%2Fmockapist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmcdos%2Fmockapist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmcdos","download_url":"https://codeload.github.com/tmcdos/mockapist/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmcdos%2Fmockapist/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273051832,"owners_count":25037073,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["local","mocking","rest-api"],"created_at":"2024-11-20T13:33:11.887Z","updated_at":"2025-08-31T22:35:36.150Z","avatar_url":"https://github.com/tmcdos.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mockAPIst\r\n\r\n\u003e A simple tool to help you mock REST APIs locally\r\n\r\nThis tool was made out of necessity. I needed something simple (not like Postman) so I tried [Mockoon](https://github.com/255kb/mockoon)  \r\nI soon realized that it lacks some bells and whistles - so I decided to build a tool to suit my requirements.\r\n\r\n![](https://github.com/tmcdos/mockapist/raw/master/screen.png)\r\n\r\n## Features\r\n\r\n- the web server is active automatically on start (no need to start it manually)\r\n- the web server does not need restart when you define a new route (restart is needed only when changing the port)\r\n- CORS (if selected) works for all HTTP verbs (not only for OPTIONS)\r\n- ability to define global headers (will be applied on all defined routes - but not on undefined ones, which will be proxied)\r\n- automatically prevents defining duplicate routes (this also catches glob patterns - i.e. **\"/user/add\"** will be considered the same as **\"/user/*\"**)\r\n- global headers can be overridden for each route\r\n- a route may have multiple responses\r\n- a response can match to more than 1 HTTP verb (e.g. both PATCH and PUT) - you do not have to copy/paste the same response\r\n- route headers can be overridden by each response\r\n- a response may have several variants so you can quickly switch between them\r\n- each variant may either specify its content as text or reference a file (MIME type of the file will be used for the **\"Content-Type\"** header) - file takes precedence over the text content\r\n- for `application/json` responses [ACE editor](https://github.com/ajaxorg/ace) is used for highlighting\r\n\r\n### Limitations\r\n\r\n- Latency is planned but not yet implemented\r\n- Templating/interpolation (for `application/json`) is not currently planned but would be nice to have\r\n- Unlike **Mockoon**, there is only 1 environment at any given time though you can import/export the current environment\r\n- The fact that you can't have both **\"/user/add\"** and **\"/user/*\"** as separate routes (so that you define what is common for the pattern and then add an exception) may be inconvenient in some situations\r\n- The tool is slightly opinionated so it may not be suitable for everyone\r\n\r\n#### Build Setup\r\n\r\n``` bash\r\n# install dependencies\r\nnpm install\r\n\r\n# serve with hot reload at localhost:9080\r\nnpm run dev\r\n\r\n# build electron application for production\r\nnpm run build\r\n```\r\n\r\n## License\r\n\r\n[The MIT License](https://raw.githubusercontent.com/stylelint/stylelint/master/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmcdos%2Fmockapist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmcdos%2Fmockapist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmcdos%2Fmockapist/lists"}