submitted 19 hours ago* (last edited 19 hours ago) by to c/opensource@lemmy.ml
 

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

you are viewing a single comment's thread
view the rest of the comments
[–] 10 points 18 hours ago (2 children)

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.server that i've used to quickly make a directory available to other machines on the lan.

  • source
  • hideshow 4 child comments
  • [–] [S] 2 points 8 hours ago*

    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 ^.^

  • source
  • parent