Hacker News new | ask | show | jobs
by tetsuhamu 971 days ago
It's not actually a single binary.

It's a single binary working with the filesystem.

All content is on the filesystem.

The "single binary" is a lightweight golang webserver that serves content from the filesystem.

2 comments

The code uses `//go:embed` which actually embeds a fake filesystem into the binary. It’s really easy to miss that part, but it truly is one single binary, despite seeming to reference files by paths.
Oh dang, that's neat! Thank you!
No it isn't. You can try compiling from source and running it yourself: https://git.j3s.sh/j3s.sh/tree/c4517e8484a68c734d2f17c17c546...