oldj/SwitchHosts

Rustswitchhosts.app
macOSWindowsLinux

Switch hosts quickly!

electronhostshostsfilehostseditorswitchhostsswitch-hosts
Star 增长趋势
Star
27.1k
Forks
2.7k
周增长
+35
Issues
423
10k20k
2011年10月2016年9月2021年9月2026年9月
制品库crates.io
README

SwitchHosts

Homepage: https://switchhosts.vercel.app

SwitchHosts is an App for managing hosts file, it is based on Tauri, React, Jotai, Mantine, etc.

Screenshot

SwitchHosts screenshot

Features

  • Manage system, local, remote, group, and folder hosts entries
  • Switch hosts quickly from the main window or system tray
  • Syntax highlighting for hosts files
  • Find and replace across hosts entries
  • Refresh remote hosts manually, on a schedule, or at startup
  • Import/export hosts data, including importing backups from a URL
  • Move entries to the trashcan and restore or delete them later
  • Preferences for write mode, proxy, update checks, launch at login, post-apply commands, and the local HTTP API

Install

Download

You can download the source code and build it yourself, or download the built version from following links:

You can also install the built version using the package manager Chocolatey:

choco install switchhosts

Backup

SwitchHosts stores data at ~/.SwitchHosts (Or folder .SwitchHosts under the current user's home path on Windows). In the v5 data layout:

  • ~/.SwitchHosts/manifest.json stores the hosts tree
  • ~/.SwitchHosts/entries/ stores local and remote hosts content
  • ~/.SwitchHosts/trashcan.json stores trashcan entries
  • ~/.SwitchHosts/internal/config.json stores preferences
  • ~/.SwitchHosts/internal/histories/ stores system hosts and command run history

For a complete manual backup, copy the whole ~/.SwitchHosts folder. The in-app export creates a hosts data backup JSON; it does not include preferences or histories.

Develop and build

Prerequisites

Development

  • Run npm install to install dependencies
  • Run npm run tauri:dev to start the app in development mode

Build and package

  • Run npm run tauri:build to create a production build
  • The packaged files will be in ./src-tauri/target/release/bundle/
# development
npm run tauri:dev

# production build
npm run tauri:build

SwitchHosts is a free and open source software, it is released under the Apache License.

相关仓库
microsoft/vscode

Visual Studio Code

TypeScriptnpmappMIT Licenseeditorelectron
code.visualstudio.com
191.5k42.1k
electron/electron

:electron: Build cross-platform desktop apps with JavaScript, HTML, and CSS

C++appMIT Licenseelectronjavascript
electronjs.org
123k17.5k
microsoft/playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

TypeScriptnpmappApache License 2.0playwrighttesting
playwright.dev
95.8k6.4k
toeverything/AFFiNE

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

TypeScriptnpmappOthereditorcrdt
affine.pro
72.4k5.3k
marktext/marktext

📝A simple and elegant markdown editor, available for Linux, macOS and Windows.

TypeScriptnpmappMIT Licensemacostypewriter-mode
marktext.me
61.2k4.5k
atom/atom

:atom: The hackable text editor

JavaScriptnpmappMIT Licenseatomeditor
atom.io
60.7k17.2k
laurent22/joplin

Joplin - the privacy-focused note taking app with sync capabilities for Windows, macOS, Linux, Android and iOS.

TypeScriptnpmappOtherreact-nativenodejs
joplinapp.org
56.3k6.3k
agalwood/Motrix

A full-featured download manager.

TypeScriptnpmappOthermotrixaria2
motrix.app
55.4k5k
lyswhut/lx-music-desktop

一个基于 Electron 的音乐软件

TypeScriptnpmappApache License 2.0music-playerjavascript
lyswhut.github.io/lx-music-doc/
53.4k7k
upscayl/upscayl

🆙 Upscayl - #1 Free and Open Source AI Image Upscaler for Linux, MacOS and Windows.

TypeScriptnpmappGNU Affero General Public License v3.0aiesrgan
upscayl.org
49.1k2.5k
GitSquared/edex-ui

A cross-platform, customizable science fiction terminal emulator with advanced monitoring & touchscreen support.

JavaScriptnpmcliGNU General Public License v3.0terminalscience-fiction
45k3.2k
siddharthvaddem/openscreen

Create stunning demos for free. Open-source, no subscriptions, no watermarks, and free for commercial use. An alternative to Screen Studio.

TypeScriptnpmappMIT Licenseelectronpixijs
39.9k3.1k