#static #serve-static

app hyperfs

A simple HTTP server for static files

7 stable releases

3.0.1 Mar 5, 2024
3.0.0 Dec 6, 2023
2.2.2 Nov 22, 2022
2.2.1 Jun 7, 2022
2.0.0 Sep 10, 2018

#101 in HTTP server

Download history 7/week @ 2024-02-23 132/week @ 2024-03-01 47/week @ 2024-03-08 10/week @ 2024-03-15 34/week @ 2024-03-29 8/week @ 2024-04-05

66 downloads per month

MIT license

8KB
60 lines

HyperFS

A simple HTTP server for static files.

HyperFS is a very simple http server that simply serves the files in the directory it is run from. It is primarily intended as a development tool similar to using python -m SimpleHTTPServer. But it is a single lightweight executable written in rust.

To be honest, part of the motivation was to just so I could try out rust.

Usage

To use simple cd into the directory with the files you want to server and run

$ hyperfs >port<

where >port< is the port you want to listen on. If not supplied it will listen on port 3000.

Installation

You can either download the binary from the latest release (currently only 64-bit linux version is available). Or you can build from source using

$ cargo build --release

and the resulting binary will be at 'target/release/hyperfs'.

Dependencies

~7–19MB
~216K SLoC