Download and Install
Latest v3.0.0-beta.1 release 2026-07-21 (changelog, sha256sum)
See also the release history on GitHub.
Docker
If you are working with Docker containers then check out the Docker feature page.
Installation methods
Binary installer (Linux/BSDs)
Use the binary installer if your package manager is not supported.
With curl.
curl --proto '=https' --tlsv1.2 -sSfL https://get.static-web-server.net | shOr with GNU wget (Busybox wget is not supported).
wget --https-only --secure-protocol=TLSv1_2 -qO- https://get.static-web-server.net | shstatic-web-server will be installed by default under the /usr/local/bin directory.
Alternatively, you can install a specific version of SWS to a custom location by setting environment variables.
export SWS_INSTALL_VERSION="3.0.0-beta.1" # full list at https://github.com/static-web-server/static-web-server/tags
export SWS_INSTALL_DIR="~/.local/bin"
curl --proto '=https' --tlsv1.2 -sSfL https://get.static-web-server.net | shMake sure you set the environment variables for the piped process (sh in our case), not the piping process (curl).
If you don't want to export environment variables then use:
curl --proto '=https' --tlsv1.2 -sSfL https://get.static-web-server.net | SWS_INSTALL_DIR="~/.local/bin" shArch Linux
Via Yay or your favorite AUR Helper.
yay -S static-web-server-binExherbo Linux
Add the rust repository and install the package through cave:
cave sync
cave resolve -x repository/rust
cave resolve -x static-web-serverNixOS
Via Nix (Linux/MacOS)
nix-shell -p static-web-server
# or
nix-env -iA nixpkgs.static-web-server- SWS Nix package maintained by @figsoda
- SWS Nix module maintained by @mac-chaffee
MacOS
Using Homebrew Formulae (also Linux)
# Build from source
brew install static-web-serverOr using the SWS Homebrew Tap (also Linux)
brew tap static-web-server/static-web-server
# Just the binary
brew install static-web-server-bin
# Or build from source
brew install static-web-serverWindows
Via Scoop
scoop install static-web-serverWebAssembly
Via Wasmer
wasmer run wasmer/static-web-server --net --enable-threads --mapdir /public:/my/host/dir -- --port 8787Binaries
Pre-compiled binaries are grouped by CPU architectures or features, depending on the case.
x86_64
- static-web-server-v3.0.0-beta.1-x86_64-apple-darwin.tar.gz
SHA256SUM:5931b8885f80d25280456929965794f10978f076a97070a23a04b28b397e143c - static-web-server-v3.0.0-beta.1-x86_64-pc-windows-gnu.zip
SHA256SUM:ee7193798a0a74a777961cca07b65269dfe532e2393deea420488a5f27d0fa6d - static-web-server-v3.0.0-beta.1-x86_64-pc-windows-msvc.zip
SHA256SUM:9d80f2eb584e0c10c4f57b47f11b14a7005ae0473f663b92f6e30e4f8c507400 - static-web-server-v3.0.0-beta.1-x86_64-unknown-freebsd.tar.gz
SHA256SUM:657b15b989125281e2867cb1627b237bf8a614af7fec00dae58494a77b1febbc - static-web-server-v3.0.0-beta.1-x86_64-unknown-linux-gnu.tar.gz
SHA256SUM:8fb291c8e43956d9e102a58da04724c61a01a4440d34c785816a84538c86f839 - static-web-server-v3.0.0-beta.1-x86_64-unknown-linux-musl.tar.gz
SHA256SUM:c4b043f61eb63ea0fb6b13d42cc29d5732e893ab17fcee320982dcf57574378b - static-web-server-v3.0.0-beta.1-x86_64-unknown-netbsd.tar.gz
SHA256SUM:4c8be50f1c996b5434c971d2b88cbe4e5c205e13ded0e79a60932c63026ad1e3 - static-web-server-v3.0.0-beta.1-x86_64-unknown-illumos.tar.gz
SHA256SUM:7b07b34f109e3bbab17b08cae347f8728563f0efb8e8c8682f6e5c69f1d0d143
FIPS
- static-web-server-v3.0.0-beta.1-x86_64-unknown-linux-gnu-fips.tar.gz
SHA256SUM:dbbed3e4f92234e44e534a55cb02cecdb1c28e1a8abce9095d11a857f0f966e1 - static-web-server-v3.0.0-beta.1-x86_64-unknown-linux-musl-fips.tar.gz
SHA256SUM:d1b2cf3f9022629e97e97f6167804f8a378776a7c4373b1b74b8eb40331aa1e1
ARM64
- static-web-server-v3.0.0-beta.1-aarch64-unknown-linux-gnu.tar.gz
SHA256SUM:0ad80f0997e9795a49f6ba7fca9e14b6d7ef4ec04bce98e760278a43f6da7a71 - static-web-server-v3.0.0-beta.1-aarch64-unknown-linux-musl.tar.gz
SHA256SUM:e82c7455e192825bb9f04da0c465c50b2f1020b41a9d4de59126e019c70f20af - static-web-server-v3.0.0-beta.1-aarch64-apple-darwin.tar.gz
SHA256SUM:148f9791748f659c2bdf4e7bd051923611113ea9086e41c741b3ca549662015c - static-web-server-v3.0.0-beta.1-aarch64-linux-android.tar.gz
SHA256SUM:957da2d6cf6cf3c9a0b72bd871cc7205c26045415193ab933ada288dd26d2c12 - static-web-server-v3.0.0-beta.1-aarch64-pc-windows-msvc.zip
SHA256SUM:ec884ed235944862c10a7fa8677290cae5e330ae4854ab1f86e280c096c32d18
FIPS
- static-web-server-v3.0.0-beta.1-aarch64-unknown-linux-gnu-fips.tar.gz
SHA256SUM:691740ddb0766fb0def0444096469764a81f2c64f81cb5a4c8c6b19102568aeb - static-web-server-v3.0.0-beta.1-aarch64-unknown-linux-musl-fips.tar.gz
SHA256SUM:24007be0dd7a3ea0d6fcb6488b843a19467a55d26d8631016e40405218165623
x86
- static-web-server-v3.0.0-beta.1-i686-pc-windows-msvc.zip
SHA256SUM:624b3489f8605484224e71016aec9aa4881d61b41f859880494252588176df4f - static-web-server-v3.0.0-beta.1-i686-unknown-freebsd.tar.gz
SHA256SUM:2a085f45606717c24900217176b0149ad3f680c112502d365461a65a8857d9e4 - static-web-server-v3.0.0-beta.1-i686-unknown-linux-gnu.tar.gz
SHA256SUM:9dc2980923b6ad621568547b65d645cc7464d97836e4305cbf3a8174f5ff06a2 - static-web-server-v3.0.0-beta.1-i686-unknown-linux-musl.tar.gz
SHA256SUM:feb577da4ee663bb35e8eae0aa7bf4fd2e8ece3095c02c5ed67360ce9e19ff5b
ARM
- static-web-server-v3.0.0-beta.1-arm-unknown-linux-gnueabihf.tar.gz
SHA256SUM:7a3282f8d07867dbfd0aceadd0099140a120e1868e362a98a333854388c1c9c4 - static-web-server-v3.0.0-beta.1-arm-unknown-linux-musleabihf.tar.gz
SHA256SUM:cac8e87e89837c5e749fe95a3492fd6a885183a7108402e885c42f8a74ce02be - static-web-server-v3.0.0-beta.1-armv7-unknown-linux-musleabihf.tar.gz
SHA256SUM:b51ed60143289e5faef5da1c63cea49f1271eedc09a2bcc2775b79171c04e868 - static-web-server-v3.0.0-beta.1-armv7-unknown-linux-gnueabihf.tar.gz
SHA256SUM:bacb72bbc9ccf8f5cc043a043373f912e4b6b731ad734f790b58adf2617fa98a
PowerPC
- static-web-server-v3.0.0-beta.1-powerpc64le-unknown-linux-gnu.tar.gz
SHA256SUM:fb73a72f996e80cbedd89ee3274e23e1ba7f70c966d79074db906af8073ae489
S390X
- static-web-server-v3.0.0-beta.1-s390x-unknown-linux-gnu.tar.gz
SHA256SUM:465635c59c318c5b4534d28aad49adbeec544368646fd249703438fdb1b13d3e
Source files
- static-web-server-3.0.0-beta.1.tar.gz
SHA256SUM:ef41607163a7f4e5ff0d7078e3fa23e10cba0c46e785b50c4816826bbca59b0c - static-web-server-3.0.0-beta.1.zip
SHA256SUM:dab5b694c8787c0cd9e6b3095ca601f8f82070c875182d52aa1672dd4db597ab