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.That’s a good point. At the beginning I was using a CGI script in Python with Apache, but I wanted to learn how HTTP works and how to use sockets and list directory contents in C. I experimented and eventually got something that I liked, so that’s why I continued working on it
^.^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).
Fix typo
(Sorry, it’s the first time I post on Lemmy. I thought I was writing an edit summary after fixing a typo in my post. And deleting my comment leaves a “Deleted by creator”, so better leave it there I guess)




