# static-web-server/static-web-server

A cross-platform, high-performance and asynchronous web server for static files-serving. ⚡

Repository: https://github.com/static-web-server/static-web-server
Canonical: https://ross.abutalabs.com/products/static-web-server
Homepage: https://static-web-server.net
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: rust-lang, http-server, docker-image, static-web-server, file-server, linux, darwin, musl-libc, amd64, tls, http2, arm64, windows, macos, x86, freebsd, alpine-linux, arm, android, debian-linux
Last push: 2026-08-20T14:26:49+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 83, longevity 100
- inputs: {"age_days": 2557, "days_push": 13, "days_rel": 33, "gap_med": 47, "n_releases_24m": 16}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2337, forks 131 (observed 2026-08-28T04:06:38.066125+00:00)

## What it is
Static Web Server (SWS) is a cross-platform, high-performance asynchronous web server for serving static files, built in Rust on Hyper and Tokio. It ships as a single ~4MB dependency-free binary with HTTP/1-2, TLS, compression, caching, and security features configurable via CLI flags, environment variables, or TOML.

## Use cases
- serve a static website from a folder with zero configuration
- host a single-page app with URL rewrites for SPA routing
- run a lightweight file server in a Docker container
- serve static assets over HTTPS with HTTP/2 and TLS
- password-protect a directory with basic authentication
- serve pre-compressed gzip, brotli, or zstd files
- local development server for static site builds

## When to choose
- you need a fast, memory-safe static file server with a tiny footprint and no runtime dependencies
- you want modern static hosting features like HTTP/2, TLS, compression, caching headers, and security headers out of the box
- you deploy to containers or minimal distros and want a single portable binary
- you prefer configuration via CLI flags, env vars, or a simple TOML file

## When to avoid
- you need dynamic server-side processing, proxies, or application logic (use nginx, Caddy, or a full web framework)
- you need a large plugin/module ecosystem or advanced reverse-proxy and load-balancing features
- you want a GUI-managed server or automatic certificate provisioning like Caddy's ACME defaults

## Facets
- artifact type: application
- maturity: active
- function: http-server, cli, caching, compression, security
- domain: web-development, backend, self-hosted, developer-tools
- platform: windows, bsd, rust, cross-platform, cli
- tags: static-file-server, http2, tls, single-binary, spa-routing, directory-listing, basic-auth, brotli, zstd, linux, macos, docker

## Member repositories
- static-web-server/static-web-server (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:38.066125+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:37:35.560330+00:00, confidence not recorded.
  - readme: https://github.com/static-web-server/static-web-server (fetched 2026-08-28T04:06:38.066125+00:00, sha 124c28c5ca1d)
  - homepage: https://static-web-server.net (fetched 2026-08-29T10:18:08.840572+00:00, sha 50bff6a626e0)
  - site_page: https://static-web-server.net/v3/features/http1 (fetched 2026-08-29T10:18:08.849654+00:00, sha 3faa9bca2cd3)
  - site_page: https://static-web-server.net/v3/download-install (fetched 2026-08-29T10:18:08.851577+00:00, sha 65af950c00d9)
  - registry_crates: https://crates.io/api/v1/crates/static-web-server (fetched 2026-08-29T10:18:08.855110+00:00, sha e795422516be)
  - site_page: https://static-web-server.net/v3 (fetched 2026-08-29T10:18:08.853419+00:00, sha 7d2db54c2117)
- Data as of 2026-08-30T08:39:29.467469+00:00.
