Lightweight Static Server: Local Web, Wasm, Mock & HTTPS Debugging
Replace python -m http.server and complex Nginx configs: <10 MB binary with built-in self-signed/ACME HTTPS, COOP/COEP, CORS, Gzip, Range, and custom MIME/Headers.

One-Click Self-Signed HTTPS (WebRTC & Multi-Threaded Wasm)
Plain HTTP over LAN IP is blocked by browser Secure Context rules.
Auto LAN IP SAN Certs
Self-signed mode automatically includes 127.0.0.1, localhost, and all local LAN IPs, with one-click .crt download.
WebRTC / Camera / Microphone
Open https://192.168.x.x:3443 on your phone or another PC to test camera, mic, clipboard, and Service Worker / PWA APIs.
Multi-Threaded Wasm (SharedArrayBuffer)
Toggle COOP / COEP headers in one click to satisfy FFmpeg.wasm, Unity WebGL, and Godot multi-threaded WebAssembly.
Local Mock API & CORS Debugging
Serve static JSON and mock assets without spinning up a backend.
CORS Enabled by Default
Your dev server (e.g. localhost:5173) can fetch Mock JSON, configs, media, or 3D models from HFS Mini with zero CORS errors.
Custom MIME & Response Headers
Match *, *.wasm, *.unityweb, or /api/* to override Content-Type or inject custom response headers.
Range, Gzip Compression & 3 HTTP Cache Modes
Production-grade static serving behavior for realistic testing.
3 Cache Strategies
Switch instantly between No Cache (no-store), Negotiate (304), and Strong Cache.
Nginx-Style Gzip
Whitelist-based gzip compression with sync.Pool reuse for JS, CSS, HTML, JSON, SVG, and Wasm.
HTTP Range (206 Partial Content)
Native byte-range serving for resumable downloads, chunked assets, and video seeking.
Default HTTP Response Headers
Ships with sensible CORS, cache, and security headers out of the box, customizable in Server Settings.
| Feature | Header Name | Default Value | Notes |
|---|---|---|---|
| Security | X-Content-Type-Options | nosniff | Always enabled to prevent MIME sniffing |
| Default Cache (No Cache) | Cache-ControlPragma / Expires | no-store, no-cache, must-revalidateno-cache / 0 | Fresh reloads during dev (switchable to no-cache or public, max-age=86400) |
| CORS (Default On) | Access-Control-Allow-Origin | * | Allows cross-origin fetch from any local dev server |
| CORS Methods & Headers | Access-Control-Allow-MethodsAccess-Control-Allow-Headers | GET, HEAD, OPTIONS* | Handles OPTIONS preflight automatically |
| Private Network & Expose | Access-Control-Allow-Private-NetworkAccess-Control-Expose-Headers | trueContent-Length, Content-Range, Content-Disposition | Compatible with Chrome Private Network Access & range/filename headers |
| SharedArrayBuffer (Optional) | Cross-Origin-Opener-PolicyCross-Origin-Embedder-Policy | same-originrequire-corp | Injected when "Enable SharedArrayBuffer" is checked for multi-threaded Wasm |
CLI Multi-Folder Launch & Automation
Use the tray UI or drive it directly from terminals and scripts.
# Mount dist on shared port and mock on dedicated port 8081
hfs-mini -p 8080 ./dist ./mock::8081
# Silent tray launch + LAN mode + self-signed HTTPS + access log
hfs-mini -s --lan --https self --https-port 3443 --log ./dist
# Custom config file & graceful stop (Ctrl+C also supported)
hfs-mini -c dev.json ./dist
hfs-mini stop -c dev.json