make_webserver


make_webserver encodes the full contents of a directory into a single portable executable that serves the files over HTTP.

Running make_webserver [DIR] will generate a new executable ./webserver which has all of the contents of directory DIR embedded into a dedicated segment within the binary that is loaded when ./webserver is executed. This allows the webserver binary to statically serve the contents snapshotted from DIR without ever reading from the filesystem.

The generated binary has no external dependencies.

download for Windows (x86_64)
download for Windows (arm64)
download for MacOS (arm64)
download for MacOS (x86_64)
download for Linux (x86_64)
download for Linux (arm64)
download source code