Hacker News new | ask | show | jobs
Show HN: A static file server in 1.5MB – no Node, no Python, no install (github.com)
6 points by trikko 431 days ago
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.

1 comments

This looks really cool! Thank you for building this and it just works.
Thanks man. Which os are you using?
Mostly using a macOS machine, and on some occasions Ubuntu Linux.