VibeHunt
Back to browse

Static Web Server

Cross-platform, high-performance, and asynchronous web server for static file serving.

Static Web Server is a tiny, production‑ready web server designed to serve static files and assets. Implemented in Rust and built on the Hyper and Tokio runtimes, it offers asynchronous networking with support for HTTP/1 and HTTP/2. The binary is fully static, about 4 MB uncompressed, and runs on Linux, macOS, Windows, FreeBSD, NetBSD, Android, Docker, and Wasm via Wasmer, making it suitable for a wide range of environments.

The server emphasizes low resource usage and safety, providing optional on‑demand compression (gzip, deflate, brotli, zstd) based on the Accept‑Encoding header, partial content delivery for large files, and configurable cache‑control headers. It also supports markdown negotiation, directory listings, CORS, basic authentication, custom response headers, fallback pages for single‑page applications, and graceful shutdown on termination signals.

Configuration can be supplied through command‑line arguments, environment variables, or a TOML file. Additional features include HTTP‑to‑HTTPS redirects, health‑check and Prometheus‑compatible metrics endpoints, virtual hosting, URL rewrites, maintenance mode, and the ability to run as a Windows service. The project is open source under Apache‑2.0 and is available as a library crate with optional features.

Reviews

Sign in to leave a review.

Loading reviews…

Similar apps