4 ms·
Caddy [1] is a single binary. It is not minimal, but the size difference is barely noticeable. serve also comes to mind. If you have node installed, `npx serve
by ricardobeat 3y ago
Caddy [1] is a single binary. It is not minimal, but the size difference is barely noticeable.
serve also comes to mind. If you have node installed, `npx serve .` does exactly that.
There are a few go projects that fit your description, none of them very popular, probably because they end up being a 100-line wrapper around http frameworks.
[1] https://caddyserver.com/ https://caddyserver.com/
- busfahrer 3y agoDepending on the environment I'm in I either use `npx serve` or `python3 -m http.server` (aka `python2 -m SimpleHTTPServer`)
- rmbyrro 3y agoPython http server is not intended for public exposure. It's meant for local usage in testing / debugging contexts.
- egeozcan 3y agoCaddy is amazing for simple static hosting AND more, if one needs it. With sqlite, postgres, D3.js and FFmpeg, it's up there in my software love list.
- qwerty456127 3y ago> It is not minimal, but the size difference is barely noticeable. Minimality is not about size, it's about reducing the attack surface. > There are a few go projects that fit your description, none of them very popular, probably because they end up being a 100-line wrapper around http frameworks. Indeed. Everyone can write their own but dependencies will make its attack surface enormous and performance will probably be mediocre at best.