miniserve is a small standalone CLI that serves files or folders over HTTP with optional auth, uploads, TLS, and a browser file listing.
Overview
miniserve is a compact command-line program for sharing files or an entire directory over HTTP when you need something running quickly. You invoke it with a path to a file or folder and it exposes that content on the network with correct MIME types.
Options include basic username and password protection, hashed credentials, SPA mode that routes missing paths to an index file, custom index pages, binding to specific interfaces, injecting response headers, and TLS with certificate files. Uploads and mkdir operations are available via HTTP, and visitors can download folders as tar.gz or zip on the fly. The interface supports search filtering, README rendering, range requests, WebDAV, QR codes for quick access, and optional wget footer hints.
Distributables cover Linux, macOS, and Windows, with install paths through package managers such as pacman, Homebrew, Scoop, Cargo, Docker, and Podman. A systemd unit template supports running it as a daemon on Linux.
Key features
- Serve files or directories over HTTP
- Optional authentication and TLS
- File upload and directory creation
- Folder download as tar.gz or zip
- SPA and custom index support
- WebDAV and range requests
- Name filter via query parameter
- Single binary with shell completions
Use cases
- Quick local file sharing
- Temporary static file hosting
- Sharing ISOs or archives on a LAN
- Simple authenticated file drops
- Ad hoc HTTP serving for development