{"id":28292844,"url":"https://github.com/otk-final/deepmock","last_synced_at":"2026-02-17T09:41:50.530Z","repository":{"id":283691733,"uuid":"952581062","full_name":"otk-final/deepmock","owner":"otk-final","description":"一个在线模拟http响应工具","archived":false,"fork":false,"pushed_at":"2025-03-24T14:18:22.000Z","size":1162,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-18T06:39:46.799Z","etag":null,"topics":["api","http","mock","mockjs","sse","websocket"],"latest_commit_sha":null,"homepage":"http://console.deepmock.cn","language":null,"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/otk-final.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":"2025-03-21T14:17:30.000Z","updated_at":"2025-06-28T18:28:46.000Z","dependencies_parsed_at":"2025-03-21T16:43:12.924Z","dependency_job_id":null,"html_url":"https://github.com/otk-final/deepmock","commit_stats":null,"previous_names":["otk-final/deepmock"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/otk-final/deepmock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otk-final%2Fdeepmock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otk-final%2Fdeepmock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otk-final%2Fdeepmock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otk-final%2Fdeepmock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/otk-final","download_url":"https://codeload.github.com/otk-final/deepmock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otk-final%2Fdeepmock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29539317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T08:11:05.436Z","status":"ssl_error","status_checked_at":"2026-02-17T08:09:38.860Z","response_time":100,"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","http","mock","mockjs","sse","websocket"],"created_at":"2025-05-22T05:11:18.826Z","updated_at":"2026-02-17T09:41:50.525Z","avatar_url":"https://github.com/otk-final.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# deepmock\n一个在线模拟http响应工具\n\n\u003ca href=\"http://console.deepmock.cn\" target=\"_blank\"\u003e 在线使用\u003c/a\u003e | [控制台]\n\n### 谁在用？\n\n1. 前端开发人员需要模拟真实网络数据时，后端开发快速定义接口格式和mock数据进行联调测试\n2. 模拟真实网络环境（延迟）\n3. 模拟服务器繁忙（并发，限流，队列）\n\n##### 架构图\n\n![image](https://github.com/otk-final/deepmock/blob/main/image/flow.png)\n\n#### 特性\n\n##### 模拟场景（可多选）\n\n- [x] 认证（Basic)\n- [x] 队列\n- [x] 并发\n- [x] 延迟\n- [x] 限流\n\n##### 路由\n\n对同一接口，不同请求参数（`path` ，`header`，`query`）设置不同响应模式\n\n##### 响应模式（单选）\n\n1. 转发\n   1. 支持重写响应头\n2. 模拟\n   1. 支持自定义响应码\n   2. 支持自定义响应头\n   3. 支持自定义响应体\n   \n##### 支持响应类型\n\n1. 普通文本格式    `json` ，`xml`， `html`， `text`\n\n   自定义\n\n2. sse服务端推送    `text`\n\n   自定义内容（换行），默认响应头`content-type`：`text/event-stream`， 每`1秒`输出一行文本，\n\n#### http\n\n![image](https://github.com/otk-final/deepmock/blob/main/image/http.png)\n\n#### websocket\n\n自定义websocket端点，用于真实客户端接入，通过console控制台发送消息和真实客户端进行通信联调\n\n![image](https://github.com/otk-final/deepmock/blob/main/image/ws.png)\n\n#### 快捷测试（简易版Postman）\n\n受限于浏览器安全策略，不允许在线调试`https`接口\n\n![image](https://github.com/otk-final/deepmock/blob/main/image/test2.png)\n\n#### 承诺\n\n1. 无需登陆。\n2. 不保留任何请求数据和转发数据。\n3. 根据`浏览器指纹ID`生成独立`二级域名`进行数据隔离。\n4. 工具仅适合开发环境联调测试，请勿生产环境使用！！！\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotk-final%2Fdeepmock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fotk-final%2Fdeepmock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotk-final%2Fdeepmock/lists"}