{"id":13406161,"url":"https://github.com/oldj/SwitchHosts","last_synced_at":"2025-03-14T10:32:36.761Z","repository":{"id":37549632,"uuid":"2312977","full_name":"oldj/SwitchHosts","owner":"oldj","description":"Switch hosts quickly!","archived":false,"fork":false,"pushed_at":"2024-09-24T09:27:34.000Z","size":34656,"stargazers_count":23582,"open_issues_count":381,"forks_count":2480,"subscribers_count":399,"default_branch":"master","last_synced_at":"2024-10-10T14:41:16.240Z","etag":null,"topics":["electron","hosts","hostseditor","hostsfile","switch-hosts","switchhosts"],"latest_commit_sha":null,"homepage":"https://switchhosts.vercel.app","language":"TypeScript","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/oldj.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":"2011-09-02T09:38:09.000Z","updated_at":"2024-10-10T12:12:48.000Z","dependencies_parsed_at":"2023-12-22T16:30:53.446Z","dependency_job_id":"f29226f7-bd04-4afb-8e52-9885e554fad7","html_url":"https://github.com/oldj/SwitchHosts","commit_stats":null,"previous_names":[],"tags_count":51,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oldj%2FSwitchHosts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oldj%2FSwitchHosts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oldj%2FSwitchHosts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oldj%2FSwitchHosts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oldj","download_url":"https://codeload.github.com/oldj/SwitchHosts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221458340,"owners_count":16825295,"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":["electron","hosts","hostseditor","hostsfile","switch-hosts","switchhosts"],"created_at":"2024-07-30T19:02:22.817Z","updated_at":"2024-10-25T20:31:59.745Z","avatar_url":"https://github.com/oldj.png","language":"TypeScript","readme":"# SwitchHosts\n\n- [简体中文](README.zh_hans.md)\n- [繁體中文](README.zh_hant.md)\n\nHomepage: [https://switchhosts.vercel.app](https://switchhosts.vercel.app)\n\nSwitchHosts is an App for managing hosts file, it is based on [Electron](http://electron.atom.io/)\n, [React](https://facebook.github.io/react/), [Jotai](https://jotai.org/)\n, [Chakra UI](https://chakra-ui.com/), [CodeMirror](http://codemirror.net/), etc.\n\n## Screenshot\n\n\u003cimg src=\"https://raw.githubusercontent.com/oldj/SwitchHosts/master/screenshots/sh_light.png\" alt=\"Capture\" width=\"960\"\u003e\n\n## Features\n\n- Switch hosts quickly\n- Syntax highlight\n- Remote hosts\n- Switch from system tray\n\n## Install\n\n### Download\n\nYou can download the source code and build it yourself, or download the built version from following\nlinks:\n\n- [SwitchHosts Download Page (GitHub release)](https://github.com/oldj/SwitchHosts/releases)\n\nYou can also install the built version using the [package manager Chocolatey](https://community.chocolatey.org/packages/switchhosts):\n```powershell\nchoco install switchhosts\n```\n\n## Backup\n\nSwitchHosts stores data at `~/.SwitchHosts` (Or folder `.SwitchHosts` under the current user's home\npath on Windows), the `~/.SwitchHosts/data` folder contains data, while the `~/.SwitchHosts/config`\nfolder contains various configuration information.\n\n## Develop and build\n\n### Development\n\n- Install [Node.js](https://nodejs.org/)\n- Change to the folder `./`, run `npm install` to install dependented libraries\n- Run `npm run dev` to start the development server\n- Then run `npm run start` to start the app for developing or debuging\n\n### Build and package\n\n- It is recommended to use [electron-builder](https://github.com/electron-userland/electron-builder)\n  for packaging\n- Go to the `./` folder\n- Run `npm run build`\n- Run `npm run make`, if everything goes well, the packaged files will be in the `./dist` folder.\n- This command may take several minutes to finish when you run it the first time, as it needs time\n  to download dependent files. You can download the dependencies\n  manually [here](https://github.com/electron/electron/releases),\n  or [Taobao mirror](https://npmmirror.com/mirrors/electron/), then save the files to `~/.electron`\n  . You can check the [Electron Docs](http://electron.atom.io/docs/) for more infomation.\n\n```bash\n# build\nnpm run build\n\n# make\nnpm run make # the packed files will be in ./dist\n```\n\n## Copyright\n\nSwitchHosts is a free and open source software, it is released under the [Apache License](./LICENSE).\n","funding_links":[],"categories":["TypeScript","CSS","Python","Similar projects","工具","Cross-Platform","语言资源库","JavaScript","JavaScript (485)","网络服务","软件工具","Developer Tools","应用","💻 软件","Development Tools","my-ubuntu","OSX Application","Applications"],"sub_categories":["JavaScript","typescript","网络服务_其他","Developer Utilities","系统管理","IDE"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foldj%2FSwitchHosts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foldj%2FSwitchHosts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foldj%2FSwitchHosts/lists"}