{"repo":"svenstaro/miniserve","free":true,"listed":false,"github":"https://github.com/svenstaro/miniserve","clone":"git clone https://github.com/svenstaro/miniserve.git","description":"🌟 For when you really just want to serve some files over HTTP right now!","language":"Rust","stars":7794,"topics":["serve","http-server","server","static-files","cli","command-line","command-line-tool"],"license":"MIT","category":"cli-tools","readme_excerpt":"miniserve - a CLI tool to serve files and dirs over HTTP For when you really just want to serve some files over HTTP right now! miniserve is a small, self-contained cross-platform CLI tool that allows you to just grab the binary and serve some file(s) via HTTP. Sometimes this is just a more practical and quick way than doing things properly. Screenshot How to use Serve a directory: miniserve linux-distro-collection/ Serve a single file: miniserve linux-distro.iso Set a custom index file to serve instead of a file listing: miniserve --index test.html Serve an SPA (Single Page Application) so that non-existent paths are forwarded to the SPA's router instead miniserve --spa --index index.html Require username/password: miniserve --auth joe:123 unreleased-linux-distros/ Require username/password as hash: pw=$(echo -n \"123\" sha256sum cut -f 1 -d ' ') miniserve --auth joe:sha256:$pw unreleased-linux-distros/ Require username/password from file (separate logins with new lines): miniserve --auth-file auth.txt unreleased-linux-distros/ Generate random 6-hexdigit URL: miniserve -i 192.168.0.1 --random-route /tmp # Serving path /private/tmp at http://192.168.0.1/c789b6 Bind to multiple interfaces: miniserve -i 192.168.0.1 -i 10.13.37.10 -i ::1 /tmp/myshare Insert custom headers miniserve --header \"Cache-Control:no-cache\" --header \"X-Custom-Header:custom-value\" -p 8080 /tmp/myshare # Check headers in another terminal curl -I http://localhost:8080 If a header is already set or previously ","default_branch":null,"files":null,"tree":[],"storefront":"/r/svenstaro","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/svenstaro/miniserve/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}