Skip to content
@Smart-Hosts

Smart Hosts

Serve your smart hosts file as a DNS server.

Hi there đź‘‹

中文

Smart Hosts.app is a desktop application that helps users configure and customize domain resolution for development or private environments.

Poster

Smart Hosts.app

Serve your smart hosts file as a DNS server.

Features

  • Full /etc/hosts compatibility
  • WiFI SSID-based resolution
  • Unix shell pattern matching

Stack

  • Tauri for building MacOS App.
  • Leptos for building front-end(User interface) of MacOS App.
  • Bridging
    • For bridging between Objective-C and Rust to interact with MacOS system.
    • For bridging between Swift and Rust to interact with MacOS system.
      • swift-rs for bridging StoreKit Apple Framework.
    • Cross-language calls between JavaScript and Rust to interact with the front-end.
      • Integrated front-end toolchain with Rspack
      • Used wasm-bindgen to call front-end code and browser APIs.
  • DNS Protocol Implementation
    • Use deku to handle its binary protocol.

Quick Links

Screenshots

preferences window | general preferences window | hosts file tray window

Screenshots Dark Mode

preferences window | general preferences window | hosts file tray window

Changelogs

v0.5.0 (2025-01-09)

  • New Feature: Hosts file code editor with syntax highlighting powered by tree-sitter
  • Preferences UI: Fix component flinking issue while loading resource. And some adjustments
  • Third-Party Dependencies: Upgraded several libraries

v0.4.0 (2025-01-03)

  • Added an auto-start configuration option
  • Fixed missing SSID wildcard matching limitation notice for the free plan and updated feature descriptions for the Pro plan
  • Upgraded multiple third-party dependencies
  • Updated the default Hosts file example

v0.3.0 (2024-12-29)

  • SSID: Supports Unix shell-style wildcard matching
  • Tray UI: Updated background color
  • Third-Party Dependencies: Upgraded several libraries, including Leptos from 0.6 to 0.7.1

v0.2.1

  • Add IAP items in App Store Connect
  • Updated multiple third-party dependencies

v0.2.0

  • Supports in-app purchases to fund ongoing maintenance and new feature development
  • Supports i18n, with Simplified Chinese (the author's native language) added first
  • Optimized UI layout by dividing it into two configuration tabs: General Settings and Hosts File Editing
  • Updated multiple third-party dependencies

Popular repositories Loading

  1. tree-sitter-shosts tree-sitter-shosts Public

    A tree-sitter parser for Smart Hosts file

    JavaScript 1

  2. .github .github Public

Repositories

Showing 2 of 2 repositories
  • .github Public
    Smart-Hosts/.github’s past year of commit activity
    0 0 0 0 Updated Jan 9, 2025
  • tree-sitter-shosts Public

    A tree-sitter parser for Smart Hosts file

    Smart-Hosts/tree-sitter-shosts’s past year of commit activity
    JavaScript 1 0 0 0 Updated Jan 5, 2025

Top languages

Loading…

Most used topics

Loading…