- cross-posted to:
- opensource@programming.dev
- cross-posted to:
- opensource@programming.dev
I started writing a small piece of software some time ago to easily host files on a local server and share them with any device equipped with a web browser or an HTTP client (curl, wget, etc.). I’ve been using it myself at home and I keep slowly working on it in my free time to add features and fix the problems that I find.
It’s very lightweight and fast, and it doesn’t require anything special to compile, just a Unix-like system, a C compiler, and a few standard utilities (sorry Windows users). It’s compiled into a single binary and that can be configured at compile time or with a config file.
For now it can only be used to download files from the hosting server, but I’m working on uploading, renaming, and deleting files.
Hopefully it can be useful to other people. Any (constructive) feedback is welcome!
Link with source code and instructions: https://codeberg.org/alpin/lanstash


I’m not trying to discourage you, I think projects like this should exist.
That said, there’s a lot of other things that do this as well. Off the top of my head there’s
python -m http.serverthat i’ve used to quickly make a directory available to other machines on the lan.Copyparty is what I’ve been using. Seems very similar in philosophy.
+1 though for anti-discouragement. Competition breeds competence!
Also ghfs (go http file server).
https://github.com/mjpclab/go-http-file-server