{"id":37025987,"url":"https://github.com/leavesczy/monitor","last_synced_at":"2026-01-14T03:01:06.802Z","repository":{"id":108394706,"uuid":"169747492","full_name":"leavesCZY/Monitor","owner":"leavesCZY","description":"一个适用于 OkHttp / Retrofit 的可视化抓包工具","archived":false,"fork":false,"pushed_at":"2025-12-20T14:02:34.000Z","size":477,"stargazers_count":307,"open_issues_count":0,"forks_count":44,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-12-22T17:34:58.628Z","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-02-08T14:32:47.000Z","updated_at":"2025-12-22T11:00:46.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":18,"template":false,"template_full_name":null,"purl":"pkg:github/leavesCZY/Monitor","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","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leavesCZY%2FMonitor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408799,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":["network-monitoring","okhttp-interceptor","okttp-monitoring"],"created_at":"2026-01-14T03:00:55.591Z","updated_at":"2026-01-14T03:01:05.901Z","avatar_url":"https://github.com/leavesCZY.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Monitor\n\n一个适用于 OkHttp / Retrofit 的可视化抓包工具\n\n只需为 OkHttpClient 添加 MonitorInterceptor，就会自动记录并缓存所有的网络请求信息，并提供可视化界面进行查看\n\n```kotlin\nval okHttpClient = OkHttpClient\n    .Builder()\n    .addNetworkInterceptor(interceptor = 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/user-attachments/assets/87308488-fe02-47bd-8f81-01470ddb9de8)\n","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"}