Skip to content

Releases

YhHTTPServer v1.0.0

Choose a tag to compare

@YutaForSayu YutaForSayu released this 24 Nov 09:00

YhHTTPServer v1.0.0

yhtps is a zero-config HTTP file server for static sites and built framework
output — the job the npm packages http-server and serve do, in a single native
binary with no runtime to install.

yhtps s  /var/www/html/index.html     # serve a static HTML file
yhtps sf /var/www/html/blog/dist/     # serve a Vite/Next build (SPA + clean URLs)

Default port is 5050 (-p/--port to change it). Requests are logged in full
by default — client IP, method, status, size, duration, path, User-Agent — and
--clean switches that off.

Download

Grab the bare binary for your platform, make it executable, and put it on PATH:

curl -L -O https://github.com/YutaForSayu/yhttps/releases/download/v1.0.0/yhtps-linux-x86_64
chmod +x yhtps-linux-x86_64
sudo install -m 0755 yhtps-linux-x86_64 /usr/local/bin/yhtps

…or skip the install and call it by relative path:

./yhtps sf ./dist

macOS binaries are unsigned, so the first run needs either
xattr -d com.apple.quarantine yhtps-macos-aarch64 or a right-click → Open.

What's in the box

Serve file or directory, directory listings (sortable), index files, 301 to slashed URLs, single-file mode
Framework builds SPA fallback, clean URLs (/about → about.html), /blog/ → /blog/index.html
HTTP correctness weak ETag + Last-Modified → 304, byte ranges → 206/416, Cache-Control, correct Content-Type for 50+ extensions
Compression gzip + brotli negotiated from Accept-Encoding (q-values, Vary), skipping already-compressed formats
Logging --log-format pretty|short|combined|json, colourised status codes
Extras CORS, custom headers, -P/--proxy + --proxy-prefix, HTTP Basic auth, --trust-proxy
HTTPS -S/--ssl with a generated self-signed certificate, or -C/-K for your own PEM pair; HTTP/2 over TLS via ALPN
Ops graceful SIGINT/SIGTERM shutdown, coloured banner listing every reachable URL, -o/--open

Assets

Binary Platform Notes
yhtps-linux-x86_64 Linux x86_64 dynamic glibc, TLS included
yhtps-linux-x86_64-static Linux x86_64 statically linked — any distro, no glibc
yhtps-linux-aarch64-static Linux ARM64 static — Raspberry Pi 4/5, ARM servers
yhtps-windows-x86_64.exe Windows x86_64 run directly, no installer
yhtps-macos-x86_64 macOS Intel
yhtps-macos-aarch64 macOS Apple Silicon
SHA256SUMS.txt verify with sha256sum -c SHA256SUMS.txt

Any other target: cargo build --release (see BUILDING.md).

Verify

Every release is exercised by scripts/smoke.sh (49 end-to-end HTTP checks)
and scripts/verify-extras.sh (HTTPS/HTTP2, proxy, log formats, silent mode),
plus 11 unit tests. Build with --no-default-features for a pure-Rust binary
without the TLS C dependencies.

Full changelog: CHANGELOG.md