GitHub Hot Board

GitHub Hot Board · Hồ sơ kho lưu trữ

oldj/SwitchHosts

Switch hosts quickly! (Mô tả đến từ chính kho lưu trữ.)

TypeScript#electron#hosts#hostseditor

Dữ liệu tại October 28oldj

Thứ hạng tốt nhất

#255

Mọi thời đại · TypeScript theo ngôn ngữ

27K

Tổng sao

2.7K

Tổng fork

0

Số ngày có mặt (30 ngày)

Giấy phép: Apache-2.0Push gần nhất: October 22Issue mở (gồm PR): 394Thu thập từ 2026-10-25; chưa rõ = chưa thu thập được

Tài liệu dự án


SwitchHosts

Homepage: https://switchhosts.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.

System hosts are written as UTF-8 without a BOM. Before converting an existing Windows ANSI or BOM-marked UTF-16 file, SwitchHosts saves its original bytes in internal/histories/hosts-encoding-backups/ under the active data directory, even when history recording is disabled. These .bin backups are not removed by the history limit or included in the in-app JSON export.

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

Copyright

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

Thứ hạng hiện tại

Diễn biến 30 ngày

Không có bản ghi nào trong 30 ngày qua.

Gắn huy hiệu vào README của bạn · oldj/SwitchHosts[![Gắn huy hiệu vào README của bạn](https://git.vaiox.xyz/api/badge/oldj/SwitchHosts.svg)](https://git.vaiox.xyz/vi/repo/oldj/SwitchHosts)

Badge · 任何仓库都可以挂 —— 未上榜的仓库显示灰章,上完榜会自动点亮。

<a href="https://git.vaiox.xyz/vi/repo/oldj/SwitchHosts"><img src="https://git.vaiox.xyz/api/badge/oldj/SwitchHosts.svg" alt="Gắn huy hiệu vào README của bạn" height="20"></a>

← Về bảng xếp hạng

GitHub Hot BoardCỗ Máy Thời GianKhám phá联系我们 · Contact