{"id":15717571,"url":"https://github.com/cofficlab/netto","last_synced_at":"2026-05-09T19:04:33.468Z","repository":{"id":229550191,"uuid":"734999102","full_name":"CofficLab/Netto","owner":"CofficLab","description":"Manage network permissions for macOS applications.","archived":false,"fork":false,"pushed_at":"2025-11-03T10:06:26.000Z","size":10885,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-11-03T12:04:40.620Z","etag":null,"topics":["macos-app","swiftui"],"latest_commit_sha":null,"homepage":"https://coffic.cn/netto","language":"Swift","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/CofficLab.png","metadata":{"files":{"readme":"README-DEV.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-12-23T09:55:29.000Z","updated_at":"2025-11-03T10:06:31.000Z","dependencies_parsed_at":"2025-06-02T01:29:54.105Z","dependency_job_id":"a4cc75cf-c826-466a-8c70-6528d91ea7d9","html_url":"https://github.com/CofficLab/Netto","commit_stats":null,"previous_names":["cofficlab/travelmode","cofficlab/netto"],"tags_count":71,"template":false,"template_full_name":null,"purl":"pkg:github/CofficLab/Netto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CofficLab%2FNetto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CofficLab%2FNetto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CofficLab%2FNetto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CofficLab%2FNetto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CofficLab","download_url":"https://codeload.github.com/CofficLab/Netto/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CofficLab%2FNetto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32831504,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"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":["macos-app","swiftui"],"created_at":"2024-10-03T21:50:32.152Z","updated_at":"2026-05-09T19:04:33.460Z","avatar_url":"https://github.com/CofficLab.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 开发文档\n\n## 注意事项\n\n- 确保已卸载应用目录中的软件\n- 在运行前，有脚本将构建后的 APP 移动到 Application 目录下，这个脚本配置在了 Xcode 的构建流程中\n- 如需升级版本，既要修改 APP 的版本，又要修改扩展的版本\n\n## 问题\n\n- 有几个构建产物？\n\n  2 个，一个 APP 和一个扩展。\n\n- Could not attach to pid : “4226” 打开控制台 APP，搜索相关日志。\n\n## 架构设计 Architecture Design\n\n### 整体架构 Overall Architecture\n\n```bash\nUI Layer (用户界面)\n    ↓ 调用\nCore/Service/ (业务逻辑层)\n    ↓ 调用\nCore/Repository/ (数据访问层)\n    ↓ 操作\nModel Layer (数据模型)\n    ↓ 存储\nSwiftData/CoreData\n```\n\n### 层级职责 Layer Responsibilities\n\n- **UI Layer**: 用户界面展示和交互处理\n- **Service Layer**: 业务逻辑封装、事务管理、数据验证\n- **Repository Layer**: 数据访问、CRUD 操作、数据库管理\n- **Model Layer**: 数据模型定义和关系映射\n\n## 参考资料\n\n- [macOS System Preference Panes](https://gist.github.com/rmcdongit/f66ff91e0dad78d4d6346a75ded4b751)\n- [Network Extension Debugging on macOS]\u003chttps://www.avanderlee.com/debugging/network-extension-debugging-macos/\u003e\n- [Filtering Network Traffic]\u003chttps://developer.apple.com/documentation/networkextension/filtering-network-traffic\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcofficlab%2Fnetto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcofficlab%2Fnetto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcofficlab%2Fnetto/lists"}