External Publication
Visit Post

bash-server: A minimal HTTP server that maps URL endpoints to shell commands

People > Companies ❤️ - programming.dev [Unofficial] March 8, 2026
Source

submitted by danhab99 to show_and_tell 13 points | 7 comments https://github.com/danhab99/bash-server

I cannot ever be sure about this but this might have come to me in a dream. I just thought about why it’s so hard to implement a web-server in bash, basically all the functionality of the webserver must be implemented in bash but the http handling can be compiled.

This program lets you declare endpoints and map them to shell commands, query args get passed as ENV vars, methods are enforced, body is passed in stdin and the response is the stdout.

I also learned I really like declaring flake.nix files for all my personal projects, I hope it helps you install what I create!

Discussion in the ATmosphere

Loading comments...