Download and Install
Latest v3.0.0-beta.3 release 2026-11-11 (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.3" # 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 8080Binaries
Pre-compiled binaries are grouped by CPU architectures or features, depending on the case.
x86_64
- static-web-server-v3.0.0-beta.3-x86_64-apple-darwin.tar.gz
SHA256SUM:79c07ed8925a9ed2024be20771ea8cedb6d418be389191f826aeddd60456865f - static-web-server-v3.0.0-beta.3-x86_64-pc-windows-gnu.zip
SHA256SUM:027558f9502978cb58b19969f1893ac9f8331ef7819df0e415cf1e5e28c3f948 - static-web-server-v3.0.0-beta.3-x86_64-pc-windows-msvc.zip
SHA256SUM:7273e13a0af30530938756b24c12326ca8f2b9a547e482a278f9d6c1b2695d59 - static-web-server-v3.0.0-beta.3-x86_64-unknown-freebsd.tar.gz
SHA256SUM:089369239c812c08aab839b65123d528eca9e5357d018587ed2f429f469bea6d - static-web-server-v3.0.0-beta.3-x86_64-unknown-linux-gnu.tar.gz
SHA256SUM:64192f1149de678ebfa2e922ffd23d668ebcc6dda52911024e9e9bb9c34fb61d - static-web-server-v3.0.0-beta.3-x86_64-unknown-linux-musl.tar.gz
SHA256SUM:358ab8fa2ad0fe8e2a3cf1fb2579b7a5cf03f1d9cfde02ac39631425b074bbeb - static-web-server-v3.0.0-beta.3-x86_64-unknown-netbsd.tar.gz
SHA256SUM:83b101bf712f7ca3fbc68a7d096cdb1c846c8fceb643db13d49fff70c999890d - static-web-server-v3.0.0-beta.3-x86_64-unknown-illumos.tar.gz
SHA256SUM:13ae473d08af687663e6f649ec50ce8cf365955ab413304011952c897c0a4d59
FIPS
- static-web-server-v3.0.0-beta.3-x86_64-unknown-linux-gnu-fips.tar.gz
SHA256SUM:e088bc2406bbcdadb874ac2b4e941faa95a50ca48f32f6b0ec9ef643d27eca8a - static-web-server-v3.0.0-beta.3-x86_64-unknown-linux-musl-fips.tar.gz
SHA256SUM:c2987881156573e9de09219c543277d53524e123d4bd85960952ccafb2569575
ARM64
- static-web-server-v3.0.0-beta.3-aarch64-unknown-linux-gnu.tar.gz
SHA256SUM:2f455015bb2bcfa0166d89c8e1369ca2110b4191746e293e5b9308921312820d - static-web-server-v3.0.0-beta.3-aarch64-unknown-linux-musl.tar.gz
SHA256SUM:2d2d80d43b95445f4c831b77eebbe088df009fce755d341d42340872f13959de - static-web-server-v3.0.0-beta.3-aarch64-apple-darwin.tar.gz
SHA256SUM:e4a34fc100f52906a8a7a4bfe1b6ced62e7143fa5b72f0d26b8e06ac7d72f37c - static-web-server-v3.0.0-beta.3-aarch64-linux-android.tar.gz
SHA256SUM:acf029969477f091663b3c4583cf18ec5de74f8ce49915d33d53f1124d6152b0 - static-web-server-v3.0.0-beta.3-aarch64-pc-windows-msvc.zip
SHA256SUM:21ec4280c40cfc491587544503289a7955805bec567f7107675f2bc54a8ee2d3
FIPS
- static-web-server-v3.0.0-beta.3-aarch64-unknown-linux-gnu-fips.tar.gz
SHA256SUM:bb06f3fffbce387796982783496f2e72c3d0c1650db660fb33f94f37cba4727e - static-web-server-v3.0.0-beta.3-aarch64-unknown-linux-musl-fips.tar.gz
SHA256SUM:e0749592559eaa1a585f3a17d5241676700824df2194a27a0fe71ceb12782f7f
x86
- static-web-server-v3.0.0-beta.3-i686-pc-windows-msvc.zip
SHA256SUM:e6d360f7cd513046c7e0133038c3dffaa6bd10227673e15b93b7c0d6e716b12b - static-web-server-v3.0.0-beta.3-i686-unknown-freebsd.tar.gz
SHA256SUM:61491269521f58078e5f7f89d3e3ab897b6c9d446f4b9921d0a8bd7efae2d006 - static-web-server-v3.0.0-beta.3-i686-unknown-linux-gnu.tar.gz
SHA256SUM:d8952894e6439afd08f7f2362e353bb82891f86e55a49755869c8668ba79ae1f - static-web-server-v3.0.0-beta.3-i686-unknown-linux-musl.tar.gz
SHA256SUM:35b92493e61baeca64ef2289442c96cde6102937e699bf4d48f1e34c1b381175
ARM
- static-web-server-v3.0.0-beta.3-arm-unknown-linux-gnueabihf.tar.gz
SHA256SUM:d600dfe52bbd02a5f5f083d53ab6785a4435b6784929d686a8515f25a4c14043 - static-web-server-v3.0.0-beta.3-arm-unknown-linux-musleabihf.tar.gz
SHA256SUM:bc6b8d949825bf628465f3ec88024f57a933236064fa9e24da32de4a525857dd - static-web-server-v3.0.0-beta.3-armv7-unknown-linux-musleabihf.tar.gz
SHA256SUM:15eea0f64280424e4115b10ad9b5078cfa91340c099d87fbca7cf434fab95137 - static-web-server-v3.0.0-beta.3-armv7-unknown-linux-gnueabihf.tar.gz
SHA256SUM:d3ad2c5935dabca0416b78b0b56ebdb06398cbd53e370683e396a6745cb8d17e
PowerPC
- static-web-server-v3.0.0-beta.3-powerpc64le-unknown-linux-gnu.tar.gz
SHA256SUM:9db52897032caa84d1fe67cff0ff7de72044c9c23919b6d6bdb8ff50f6f8c0d4
S390X
- static-web-server-v3.0.0-beta.3-s390x-unknown-linux-gnu.tar.gz
SHA256SUM:38d89c999bce18690485c2f44512f01d37a0aeddb79848a0744e67a69bf9622f
Source files
- static-web-server-3.0.0-beta.3.tar.gz
SHA256SUM:09a69d622e853ff0992ec627c4a3c148698d009262f9fa0e883f5a2ca91983e3 - static-web-server-3.0.0-beta.3.zip
SHA256SUM:77fa7df9423032edf2b3d7797f70225ddfeb7e8c3c33e39953a6f062eb6d097b