Settings

Theme

Show HN: A static file server in 1.5MB – no Node, no Python, no install

github.com

6 points by trikko 10 months ago · 3 comments · 1 min read

Reader

I built websitino, a small static file server intended for quick local development or testing. It’s a single binary (~1.5MB), with no external dependencies or runtime requirements — just run it in any folder and it starts serving files over HTTP.

It’s written in D and designed to be fast, minimal, and secure by default. Hidden files and directories (like .git) aren’t served unless explicitly enabled. You can customize behavior through simple command-line flags — e.g., enable directory listing or auto-serve index.html.

Example:

websitino --list-dirs --index

I created it because I was tired of using Python's http.server or Node-based tools for simple use cases where I just want to serve a directory locally with minimal fuss and overhead.

rvz 10 months ago

This looks really cool! Thank you for building this and it just works.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection