{"id":21193551,"url":"https://github.com/moqsien/ghosts","last_synced_at":"2025-07-10T03:32:43.111Z","repository":{"id":61839779,"uuid":"541179100","full_name":"moqsien/ghosts","owner":"moqsien","description":"ghosts will automatically get dns info and modify your hosts to accelerate your github visits.","archived":false,"fork":false,"pushed_at":"2022-10-23T17:06:54.000Z","size":26,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-20T15:49:38.884Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/moqsien.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}},"created_at":"2022-09-25T13:23:38.000Z","updated_at":"2023-01-05T02:32:44.000Z","dependencies_parsed_at":"2023-01-20T10:45:13.973Z","dependency_job_id":null,"html_url":"https://github.com/moqsien/ghosts","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moqsien%2Fghosts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moqsien%2Fghosts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moqsien%2Fghosts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moqsien%2Fghosts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moqsien","download_url":"https://codeload.github.com/moqsien/ghosts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225615164,"owners_count":17496946,"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":[],"created_at":"2024-11-20T19:14:43.314Z","updated_at":"2024-11-20T19:14:44.022Z","avatar_url":"https://github.com/moqsien.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"### ghosts\n----------------\n获取dns并自动修改和备份hosts文件，加速github访问。\n\n支持Linux、MacOS、Windows、FreeBSD。\n\n### 背景\n目前github加速访问，主要有以下几种方式：\n\n1、修改hosts；\n\n2、加速工具，如dev-sidecar, fastgithub，watt toolkit等；\n\n3、github镜像；\n\n4、梯子；\n\n其中，现有的hosts修改方案总是建议用额外的hosts修改软件，加速工具多不支持ssh，镜像不稳定，梯子一般需要付费。\n\nghosts可作为加速工具的补充，只在需要的时候手动运行一次，就可以自动备份和修改hosts文件，从而加速github ssh模式下推拉代码。\n同时可通过以配置文件的方式设置过滤条件，ping参数等，从而获取到更高质量的hosts。\n\n### 使用方法\n1、如果已经配置好go开发环境，则直接使用go install安装：\n\n```shell\ngo install github.com/moqsien/ghosts@latest\n\nghosts help // 这个命令可以让你看到ghosts目前提供了哪些功能\n```\n\n2、二进制安装文件：\n\n[下载](https://github.com/moqsien/ghosts/releases/tag/v0.0.2)\n\n下载完成后，可以自行设置环境变量，或者将二进制文件移动到已在环境变量中的目录下。\n\n### License\n[MIT](https://github.com/moqsien/ghosts/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoqsien%2Fghosts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoqsien%2Fghosts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoqsien%2Fghosts/lists"}