sfz
Simple static file server for local development
TLDR
Serve the current directory on the default port
$ sfz
Serve a path on a port$ sfz -p [8080] [path]
Enable CORS / address bind (see help)$ sfz --help
SYNOPSIS
sfz [*options*] [*path*]
DESCRIPTION
sfz (Static File Zerver) is a small Rust CLI that serves a directory over HTTP—useful for quick local previews. Note: the original author has indicated limited maintenance; consider alternatives on crates.io for long-term projects.
PARAMETERS
*path*
Directory to serve (default: current directory).-p, --port *port*
Listen port.Additional flags control address, CORS, and cache headers—sfz --help.
INSTALL
nix profile install nixpkgs#sfz
CAVEATS
Not hardened for public Internet exposure. Project maintenance status is limited. Prefer caddy/nginx for production.
