{"id":17651643,"url":"https://github.com/marle3003/mokapi","last_synced_at":"2026-03-01T09:08:01.559Z","repository":{"id":40664509,"uuid":"255063502","full_name":"marle3003/mokapi","owner":"marle3003","description":"Your API mocking tool for OpenAPI and AsyncAPI using Go and JavaScript - https://mokapi.io","archived":false,"fork":false,"pushed_at":"2026-02-26T22:11:59.000Z","size":1862190,"stargazers_count":46,"open_issues_count":1,"forks_count":9,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-27T03:42:29.966Z","etag":null,"topics":["api-mocking","api-simulation","api-testing","fake","javascript","kafka","ldap","mock","mock-server","mock-testing","openapi","openapi-tooling","openapi2","openapi3","openapi31","rest-api","smtp","swagger","swagger2","testing"],"latest_commit_sha":null,"homepage":"https://mokapi.io","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marle3003.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-04-12T11:00:42.000Z","updated_at":"2026-02-25T20:54:49.000Z","dependencies_parsed_at":"2024-01-15T07:44:08.882Z","dependency_job_id":"b773256c-9962-4ad5-93c7-cbc349ec5120","html_url":"https://github.com/marle3003/mokapi","commit_stats":{"total_commits":396,"total_committers":4,"mean_commits":99.0,"dds":0.5202020202020202,"last_synced_commit":"6a978d35d37a778f8df7fadeef9a10f2b47a4470"},"previous_names":[],"tags_count":169,"template":false,"template_full_name":null,"purl":"pkg:github/marle3003/mokapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marle3003%2Fmokapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marle3003%2Fmokapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marle3003%2Fmokapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marle3003%2Fmokapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marle3003","download_url":"https://codeload.github.com/marle3003/mokapi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marle3003%2Fmokapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29965419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T06:55:38.174Z","status":"ssl_error","status_checked_at":"2026-03-01T06:53:04.810Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api-mocking","api-simulation","api-testing","fake","javascript","kafka","ldap","mock","mock-server","mock-testing","openapi","openapi-tooling","openapi2","openapi3","openapi31","rest-api","smtp","swagger","swagger2","testing"],"created_at":"2024-10-23T11:42:54.234Z","updated_at":"2026-03-01T09:08:01.536Z","avatar_url":"https://github.com/marle3003.png","language":"Go","readme":"\u003cp align=\"center\"\u003e\n\u003ca href=\"https://mokapi.io\"\u003e\n\u003cimg src=\"logo.svg\" alt=\"Mokapi\" title=\"Mokapi\" width=\"300\" /\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch3 align=\"center\"\u003eYour API Mocking Tool for Agile Development\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/marle3003/mokapi/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/release/marle3003/mokapi.svg\" alt=\"Github release\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/marle3003/mokapi/actions/workflows/test.yml\"\u003e\u003cimg src=\"https://github.com/marle3003/mokapi/actions/workflows/build.yml/badge.svg\" alt=\"Build status\"\u003e\u003c/a\u003e\n\u003ca href=\"https://codecov.io/gh/marle3003/mokapi\"\u003e\u003cimg src=\"https://img.shields.io/codecov/c/gh/marle3003/mokapi/main.svg\" alt=\"Codecov branch\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/marle3003/mokapi/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"MIT License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/marle3003/mokapi/releases\"\u003eDownload\u003c/a\u003e ·\n    \u003ca href=\"https://mokapi.io/docs/welcome\"\u003eDocumentation\u003c/a\u003e\n\u003c/p\u003e\n\n# 🚀 Overview\n\nMokapi is an open-source tool that helps Agile, DevOps, and Continuous \nDeployment teams design, test, and validate APIs before implementation. \nIt enables rapid prototyping of scenarios—like delayed responses, \nfailures, or edge cases—without needing a live backend. By simulating \nreal-world conditions early, Mokapi improves API quality and reduces \nthe risk of bugs in production.\n\n# ✨ Features\n\n- **Multiple Protocol support**: HTTP, HTTPS, Apache Kafka, SMTP, LDAP\n- **Everything as Code**: Reusing, version control, consistency and integrate mocks with your CI/CD.\n- **An embedded JavaScript engine** to control everything - status, headers, delays, errors or other edge cases.\n- **Patch Configuration** changes for mocking needs, rather than changing the original contract\n- **Multiple Provider support**: File, HTTP, GIT, NPM to gather configurations and scripts.\n- **Dashboard** to see what's going on.\n\n## 🧩 OpenAPI \u0026 AsyncAPI Support\n\nMokapi supports mocking REST APIs using **OpenAPI 2.0 / 3.0 / 3.1** and event-driven systems using **AsyncAPI**.\n\n## 🔧 Spin Up Mokapi\n\nInstall and start Mokapi using one of the following methods.\nReplace the URL with your own OpenAPI or AsyncAPI specification.\n\nWindows\n```shell\nchoco install mokapi\nmokapi https://petstore31.swagger.io/api/v31/openapi.json\n```\n\nMacOS\n```shell\nbrew tap marle3003/tap \nbrew install mokapi\nmokapi https://petstore31.swagger.io/api/v31/openapi.json\n```\n\nDocker\n```shell\ndocker run -p 80:80 -p 8080:8080 mokapi/mokapi:latest https://petstore31.swagger.io/api/v31/openapi.json\n```\n\n# 🎯 Hit Your First Mock\nOnce Mokapi is running, you can make requests to your mocked API like so:\n```shell\ncurl http://localhost/api/v31/pet/2 -H 'Accept: application/json'\n```\n\n# 🧩 Customize Your Mock with JavaScript\n\nMokapi makes it simple to control responses using embedded JavaScript.\n\nFor example, you can dynamically change the response based on query parameters:\n\n```typescript\nimport { on } from 'mokapi';\n\nexport default function() {\n    on('http', (request, response) =\u003e {\n        switch (request.path.petId) {\n            case 2:\n                response.data.name = 'Betty';\n            case 9:\n                response.statusCode = 404;\n        }\n    });\n}\n```\n\n# 🖥️ Dashboard\n\nMokapi’s dashboard lets you visualize your mock APIs. View requests and responses in real-time, generate and validate sample data for testing.\n\n\u003cimg src=\"webui.png\" alt=\"Mokapi Web UI\" title=\"Mokapi Web UI\" /\u003e\n\n# 🧪 Learn by Example\n\nExplore tutorials that walk you through mocking different protocols and scenarios:\n\n- 🌍 [Get started with REST API](https://mokapi.io/resources/tutorials/get-started-with-rest-api)\\\n  This tutorial will show you how to mock a REST API using an OpenAPI specification.\n\n- ⚡ [Mocking Kafka with AsyncAPI](https://mokapi.io/resources/tutorials/get-started-with-kafka)\\\n  Mocking a Kafka topic using Mokapi and verifying that a producer generates valid messages.\n\n- 👨‍💻 [Mocking LDAP Authentication](https://mokapi.io/resources/tutorials/mock-ldap-authentication-in-node)\\\n  Simulate LDAP-based login flows, including group-based permissions.\n\n- 📧 [Mocking SMTP Mail Servers](https://mokapi.io/resources/tutorials/mock-smtp-server-send-mail-using-node)\\\n  Use Mokapi to simulate sending and receiving emails in Node.js apps.\n\n- 🖥️ [End-to-End Testing with Jest and GitHub Actions](https://mokapi.io/resources/tutorials/running-mokapi-in-a-ci-cd-pipeline)\\\n  Integrate Mokapi into your CI pipeline for full-stack E2E testing.\n\n\u003e More examples are available on [mokapi.io/resources](https://mokapi.io/resources)\n\n# 📚 Documentation\n\n- [Get Started](https://mokapi.io/docs/welcome)\n- [HTTP](https://mokapi.io/docs/http/overview)\n- [Kafka](https://mokapi.io/docs/kafka/overview)\n- [LDAP](https://mokapi.io/docs/ldap/overview)\n- [SMTP](https://mokapi.io/docs/mail/overview)\n- [Javascript API](https://mokapi.io/docs/javascript-api/overview)\n- [Resources](https://mokapi.io/resources)\n\n# ☕ Support\n\nShow your love for Mokapi and support the project by grabbing some cool merch!  \n[Visit the Mokapi Merchandise Store](https://mokapi.myspreadshop.ch) 🔥\n\nIf you like Mokapi, consider buying me a coffee:\n\n\u003ca href=\"https://www.buymeacoffee.com/mokapi\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;\" \u003e\u003c/a\u003e\n\n# 📄 License\n\nThis project is licensed under the MIT License. See the [LICENSE](https://github.com/marle3003/mokapi/blob/main/LICENSE) file for details.","funding_links":["https://www.buymeacoffee.com/mokapi"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarle3003%2Fmokapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarle3003%2Fmokapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarle3003%2Fmokapi/lists"}