miniserve

miniserve

Single-binary CLI HTTP server for quickly serving files

7.3kstars
358forks
Last commit: 7d ago
Repo age: 8y old

miniserve is a small, self-contained CLI tool that serves local files and directories over HTTP with minimal setup. It provides a web UI for browsing content and supports common sharing features like authentication, uploads, and on-the-fly downloads.

Key Features

  • Serve a directory or single file with automatic directory listings
  • Correct MIME type handling out of the box
  • Single static binary with no runtime dependencies
  • Optional basic authentication (including hashed passwords or auth file)
  • TLS support for HTTPS serving
  • File uploads, optional directory creation, and optional deletion controls
  • On-the-fly folder downloads as .tar.gz or .zip
  • WebDAV support and HTTP range requests
  • SPA mode, pretty URLs, and optional custom headers
  • QR code display for quick access from mobile devices

Use Cases

  • Quickly share files on a LAN for ad-hoc collaboration or device transfers
  • Serve a static site or SPA locally for testing and demos
  • Lightweight file drop or upload endpoint for small teams and temporary workflows

Limitations and Considerations

  • Intended for lightweight sharing and quick setups rather than complex web hosting scenarios
  • TLS support may vary by target architecture depending on build features

miniserve is a pragmatic choice when you need an easy, fast way to expose files over HTTP without deploying a full web server stack. Its single-binary approach and built-in sharing features make it especially useful for quick, temporary, or local file distribution.

Categories:

Tags:

Tech Stack:

Share:

Similar Services

Syncthing

Syncthing

Open-source, peer-to-peer file synchronization tool.

79.1k
4.9k
Last commit: 2d ago

Open-source peer-to-peer file synchronization with TLS encryption, no central server, and a browser-based UI.

Alternative to:
Resilio Sync
Resilio Sync
+6
LocalSend

LocalSend

Open-source cross-platform local network file sharing app

73.3k
3.9k
Last commit: 4d ago

LocalSend is a free, open-source app for fast, encrypted file and text sharing between nearby devices over a local network, available on desktop and mobile.

Alternative to:
Apple AirDrop
Apple AirDrop
+6
AList

AList

Multi-storage file listing server with WebDAV and previews

48.8k
8k
Last commit: 26d ago

AList is a multi-storage file listing and sharing server with WebDAV access, file previews, protected routes, uploads, and cross-storage file operations.

Alternative to:
Dropbox
Dropbox
+19
copyparty

copyparty

Portable file server with fast resumable uploads and many protocols

41k
1.7k
Last commit: 19h ago

Copyparty is a portable file server with a web UI, accelerated resumable uploads, deduplication, indexing, and support for WebDAV, SFTP, FTP and more.

Alternative to:
WeTransfer
WeTransfer
+19
qBittorrent

qBittorrent

Cross-platform BitTorrent client built with Qt and libtorrent

35k
4.5k
Last commit: 21h ago

qBittorrent is a fast, free, cross-platform BitTorrent client with a desktop UI and optional Web UI, built on libtorrent for efficient torrent downloading and seeding.

Alternative to:
BitTorrent
BitTorrent
+2
Nextcloud

Nextcloud

Open-source collaboration platform for file sync and groupware

33.8k
4.7k
Last commit: 16h ago

Nextcloud is an open-source content collaboration platform providing file sync & share, groupware (calendar, contacts, mail), real-time office editing, chat and video con...

Alternative to:
Google Drive
Google Drive
+19