ok365/hfs-mini
About
HFS Mini: HTTP file server for sharing files, LAN transfer, and local web development.
Web & App DevelopmentWhat you can do
- Single Binary, Zero Dependencies: Built with Go and embedded web assets (no Node.js, no external CDN, runs 100% offline).
- Runs silently in the system tray (--silent supported) with launch-at-startup toggle.
- Hover over the tray icon to see the active working port (supports running multiple independent instances simultaneously).
- Left-click to open the Admin Panel; right-click for quick link copy, startup toggle, and 20-language live switching.
Measured star growth
- in 24h
- Collecting history
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalHFS Mini: HTTP File Server
Ultra-lightweight HTTP file server supporting Windows/Mac/Linux (<10 MB binary, ~10 MB memory) for file sharing, LAN file transfer, and web debugging, similar to HFS.
超轻量的 Http 文件服务器,支持 Windows/Mac/Linux,程序 < 10 MB,内存约 10 MB,用于文件分享、局域网文件传输、Web 调试,类似 HFS。
Releases / Download 下载 · Homepage
Languages: English | 简体中文 | 繁體中文 | 日本語 | 한국어 | Español | Français | Deutsch | Português | Русский | Italiano | Nederlands | Polski | Türkçe | Tiếng Việt | ไทย | Bahasa Indonesia | العربية | हिन्दी | Українська
Best Alternative to python -m http.server
Tired of setting up a runtime and typing commands just to serve a folder? HFS Mini replaces python -m http.server (and npx http-server) with a one-click workflow:
python -m http.server |
HFS Mini | |
|---|---|---|
| Environment Setup | Requires installing Python (and watching out for Python 2/3 differences) | Zero dependencies — single <10 MB executable |
| Startup Workflow | Open terminal, cd into folder, type tedious CLI flags every time |
One-click launch — double-click to auto-share current folder (or paste any path) |
| Browser Access | Manually copy/type http://localhost:8000 in your browser |
Auto-opens browser with both Admin UI and file list, plus instant LAN QR codes |
| Background Running | Stops as soon as you close the terminal window | System tray & autostart — ~10 MB RAM, restores previous folders on reboot |
| Transfer & Dev Features | No search, no ZIP, no upload, no Range seek, no Gzip, no HTTPS/CORS |
Search, streaming ZIP, chunked upload, Range, Gzip, CORS, COOP/COEP, HTTPS |
Features
- Single Binary, Zero Dependencies: Built with Go and embedded web assets (no Node.js, no external CDN, runs 100% offline).
- System Tray & Autostart:
- Runs silently in the system tray (
--silentsupported) with launch-at-startup toggle. - Hover over the tray icon to see the active working port (supports running multiple independent instances simultaneously).
- Left-click to open the Admin Panel; right-click for quick link copy, startup toggle, and 20-language live switching.
- Runs silently in the system tray (
- Effortless Path Mounting:
- Native folder picker button (Windows / macOS / Linux) or paste paths directly (supports quotes,
file:///,~/, WSL/mnt/c/, and file paths resolved to parent folder). - Mount multiple directories under one shared port (
/dist/,/dist-2/) or assign dedicated ports with automatic+1conflict resolution.
- Native folder picker button (Windows / macOS / Linux) or paste paths directly (supports quotes,
- Fast Directory Listing & LAN Transfer:
- Instant search with space-separated multi-keywords (e.g.
abc 123) and URL query search (?name=xx, pre-filling the search box on load), client-side sorting (name, size, modified time), and breadcrumbs starting from root. - Smooth pure-JS pagination for large directories (> 5,000 files) without extra API requests.
- Multi-select streaming ZIP download (zero temp files) and force-download (
?download=1) for.txt/ images / media. - Built-in image lightbox viewer (prev/next across all pages, wheel/button zoom,
1:1 / Fit, drag pan, and 90° rotation). - Built-in client-side QR Code generator with LAN IP switching and arbitrary text-to-QR support.
- Instant search with space-separated multi-keywords (e.g.
- Media & Developer Ready:
- HTTP
Range(206 Partial Content) for video seeking and resumable downloads. - Nginx-style
gzipcompression whitelist withsync.Poolmemory reuse. - 3 HTTP cache modes (
no-store,negotiate / 304,strong), CORS enabled by default, optionalSharedArrayBuffer(COOP/COEP), built-in 60+ MIME types + UTF-8 detection, and custom MIME / Response Header rules. - Optional access log (
it365.janqi.com--hfs-mini.log) and bandwidth rate limiting (KB/s).
- HTTP
- Built-in HTTPS (Dual HTTP/HTTPS):
- Encrypted Transfer & Secure Context: Protects LAN/public file transfers and unlocks browser Secure Context APIs when debugging via LAN IP — including
SharedArrayBuffer(multi-threaded Wasm), WebRTC (Camera / Microphone), and Service Worker / PWA. - Self-Signed: Auto-generated certificate covering
127.0.0.1,localhost, and all local LAN IPs (192.168.x.x), with one-click.crtdownload. - Custom Certificate: Load your own
.crt/.pemand.keyfiles. - Let's Encrypt (ACME): Automatic certificate issuance and renewal for public domains.
- Encrypted Transfer & Secure Context: Protects LAN/public file transfers and unlocks browser Secure Context APIs when debugging via LAN IP — including
- 20 Languages & Dark/Light Theme: Auto-detected from browser/OS with local persistence.
Download
Get the latest binaries for Windows (x64 / x86 / ARM64), macOS (Apple Silicon / Intel), and Linux (x64 / ARM64) from the Releases page.
Quick Start
- Download and extract the archive for your OS.
- Run
hfs-mini(orHFS Mini.appon macOS). - Click the system tray icon (or it opens automatically on first run) to enter the Admin Panel (
/admin*/, restricted to localhost by default). - Click Browse... or paste a folder/file path to start sharing immediately.
CLI Usage
# Share one or more folders (append & auto-deduplicate; shared port by default)
hfs-mini /path/to/docs /path/to/media::8081
# Custom port (auto-increments if busy), silent tray start, LAN mode, rate limit & access log
hfs-mini -p 8080 -s --lan --rate-limit 2048 --log /path/to/share
# Use a custom config file & gracefully stop a running instance
hfs-mini -c work.json --port 9000 /path/to/work
hfs-mini stop -c work.json
# Help & version
hfs-mini --help
hfs-mini --version
License
Licensed under the GPL-3.0 License. You are free to use, modify, and distribute this software (including for commercial purposes), provided that the original copyright notice and attribution (https://it365.janqi.com/hfs-mini/) are retained in all copies or substantial portions of the Software.
Explore related projects
Loading…