{"id":19993743,"url":"https://github.com/leavesCZY/Monitor","last_synced_at":"2025-05-04T12:32:32.764Z","repository":{"id":108394706,"uuid":"169747492","full_name":"leavesCZY/Monitor","owner":"leavesCZY","description":"一个适用于 OkHttp / Retrofit 的可视化抓包工具","archived":false,"fork":false,"pushed_at":"2025-03-08T08:48:49.000Z","size":340,"stargazers_count":297,"open_issues_count":0,"forks_count":42,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-08T09:31:48.966Z","etag":null,"topics":["network-monitoring","okhttp-interceptor","okttp-monitoring"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/leavesCZY.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":"2019-02-08T14:32:47.000Z","updated_at":"2025-03-08T08:48:23.000Z","dependencies_parsed_at":"2023-10-30T11:30:17.149Z","dependency_job_id":"c0530bad-e3a5-48c8-b862-7aca87b8b75c","html_url":"https://github.com/leavesCZY/Monitor","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leavesCZY%2FMonitor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leavesCZY%2FMonitor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leavesCZY%2FMonitor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leavesCZY%2FMonitor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leavesCZY","download_url":"https://codeload.github.com/leavesCZY/Monitor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252335112,"owners_count":21731521,"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":["network-monitoring","okhttp-interceptor","okttp-monitoring"],"created_at":"2024-11-13T04:52:56.926Z","updated_at":"2025-05-04T12:32:31.198Z","avatar_url":"https://github.com/leavesCZY.png","language":"Kotlin","funding_links":[],"categories":["Kotlin"],"sub_categories":[],"readme":"# Monitor [![Maven Central](https://img.shields.io/maven-central/v/io.github.leavesczy/monitor.svg)](https://central.sonatype.com/artifact/io.github.leavesczy/monitor)\n\n一个适用于 OkHttp 和 Retrofit 的可视化抓包工具\n\n只需为 OkHttpClient 添加 MonitorInterceptor，就会自动记录并缓存所有的网络请求信息，并提供可视化界面进行查看\n\n```kotlin\nval okHttpClient = OkHttpClient.Builder()\n    .addInterceptor(MonitorInterceptor())\n    .build()\n```\n\n同时引入 debug 和 release 版本的依赖库\n\n- debug 依赖用于日常的开发阶段\n- release 依赖用于最终的上线阶段，此模式下的 MonitorInterceptor 不包含任何依赖，也不会执行任何操作\n\n```kotlin\ndependencyResolutionManagement {\n    repositories {\n        google()\n        mavenCentral()\n    }\n}\n\ndependencies {\n    val latestVersion = \"x.x.x\"\n    debugImplementation(\"io.github.leavesczy:monitor:${latestVersion}\")\n    releaseImplementation(\"io.github.leavesczy:monitor-no-op:${latestVersion}\")\n}\n```\n\n![](https://github.com/leavesCZY/Monitor/assets/30774063/9054fcf3-947b-46dc-a765-ce620993bd11)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FleavesCZY%2FMonitor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FleavesCZY%2FMonitor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FleavesCZY%2FMonitor/lists"}