{"id":38476429,"url":"https://github.com/sky22333/hostswitcher","last_synced_at":"2026-01-17T05:20:58.786Z","repository":{"id":297503410,"uuid":"995056352","full_name":"sky22333/hostswitcher","owner":"sky22333","description":"Windows 系统 hosts 管理工具","archived":false,"fork":false,"pushed_at":"2025-09-08T06:16:00.000Z","size":1788,"stargazers_count":15,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-08T07:20:56.370Z","etag":null,"topics":["go","hosts","hostsfile","switchhosts","wails"],"latest_commit_sha":null,"homepage":"","language":"Vue","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/sky22333.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":"2025-06-02T22:44:19.000Z","updated_at":"2025-09-08T06:11:07.000Z","dependencies_parsed_at":"2025-09-08T07:11:18.457Z","dependency_job_id":"5c2ee0af-973a-49bd-bd4e-d33ccab52d81","html_url":"https://github.com/sky22333/hostswitcher","commit_stats":null,"previous_names":["sky22333/hostswitcher"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/sky22333/hostswitcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sky22333%2Fhostswitcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sky22333%2Fhostswitcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sky22333%2Fhostswitcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sky22333%2Fhostswitcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sky22333","download_url":"https://codeload.github.com/sky22333/hostswitcher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sky22333%2Fhostswitcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28498767,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T04:31:57.058Z","status":"ssl_error","status_checked_at":"2026-01-17T04:31:45.816Z","response_time":85,"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":["go","hosts","hostsfile","switchhosts","wails"],"created_at":"2026-01-17T05:20:57.263Z","updated_at":"2026-01-17T05:20:58.778Z","avatar_url":"https://github.com/sky22333.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 🌐 Hosts 管理工具\r\n\r\n[![Go](https://img.shields.io/badge/Go-1.22+-00ADD8?style=flat\u0026logo=go\u0026logoColor=white)](https://golang.org/)\r\n[![Vue.js](https://img.shields.io/badge/Vue.js-3.x-4FC08D?style=flat\u0026logo=vue.js\u0026logoColor=white)](https://vuejs.org/)\r\n[![Wails](https://img.shields.io/badge/Wails-2.x-FF6B6B?style=flat\u0026logo=wails\u0026logoColor=white)](https://wails.io/)\r\n[![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\r\n\r\n一个现代化的windows hosts 文件管理工具，提供直观的图形界面和强大的管理功能。支持本地配置管理、远程源同步、系统托盘集成等特性。使用`Wails v2`开发。\r\n\r\n\u003cp align=\"center\"\u003e\r\n  \u003cimg src=\"https://count.getloli.com/get/@sky22333.hostswitcher?theme=rule34\" alt=\"Visitors\"\u003e\r\n\u003c/p\u003e\r\n\r\n## ✨ 功能特性\r\n\r\n### 🎯 核心功能\r\n- **可视化编辑**: 基于 Monaco Editor 的代码编辑器\r\n- **配置管理**: 快捷修改 hosts 配置\r\n- **实时预览**: 实时显示文件状态和变更提示\r\n- **权限检测**: 自动检测管理员权限，友好的权限提示\r\n- **备份恢复**: 一键管理备份、恢复多个 hosts 文件\r\n- **远程同步**: 支持从远程 URL 获取 hosts 配置\r\n\r\n## 💻 系统要求\r\n\r\n### 运行环境\r\n- Windows 10 +\r\n- Windows Server 2016 +\r\n- WebView2 Runtime (通常已预装)\r\n- **权限**: 修改 hosts 文件需要管理员权限，请以管理员身份运行。\r\n- **报毒问题**: 修改hosts是敏感行为，可能会被误报病毒，可以添加白名单运行。\r\n\r\n## 🔧 开发环境配置\r\n\r\n### 1. 克隆项目\r\n\r\n### 2. 安装 Wails CLI\r\n```bash\r\ngo install github.com/wailsapp/wails/v2/cmd/wails@latest\r\n```\r\n\r\n## 🏗️ 编译构建\r\n\r\n### 开发构建\r\n```bash\r\n# 启动开发模式（热重载）\r\nwails dev\r\n```\r\n\r\n### 生产构建\r\n```bash\r\n# 构建前端资源\r\ncd frontend\r\nnpm run build\r\ncd ..\r\n\r\n# 构建应用程序\r\nwails build\r\n\r\n# 指定平台构建（Windows）\r\nwails build -platform windows/amd64\r\n```\r\n\r\n---\r\n\r\n如果这个项目对您有帮助，请考虑给个 ⭐ Star！\r\n\r\n## 📸 应用预览\r\n*Host编辑器*\r\n![主界面](/.github/demo/1.png)\r\n\r\n*远程源管理*\r\n![远程源管理](/.github/demo/2.png)\r\n\r\n*备份管理*\r\n![备份管理](/.github/demo/3.png)\r\n\r\n*应用设置*\r\n![设置页面](/.github/demo/4.png)\r\n\r\n\r\n---\r\n\r\n## Stargazers over time\r\n[![Stargazers over time](https://starchart.cc/sky22333/hostswitcher.svg?variant=adaptive)](https://starchart.cc/sky22333/hostswitcher)\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsky22333%2Fhostswitcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsky22333%2Fhostswitcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsky22333%2Fhostswitcher/lists"}