js_httpd - really small HTTP server in JavaScript

Fetch the software.

js_httpd is a very small Unix-based HTTP server, written in JavaScript. It runs from inetd, which means its performance is poor. But for low-traffic sites, it's quite adequate. It implements all the basic features of an HTTP server, including:

js_httpd can also be used to serve HTTPS by wrapping it with stunnel. Instructions are included.

Why JavaScript? People tend to think of it as a crippled Java, but it's really more like awk on steroids, and not in the bad way that perl went. Internally it's actually kind of like LISP. The version of the language I'm using here has some non-standard extra objects added for file I/O and system access. With these additions, I think it makes a fairly good general-purpose scripting language. Perhaps someday if the I/O extensions become standardized, general use of JavaScript will catch on.

Other tiny and/or weird web servers (all run from inetd):


See also: micro_httpd, mini_httpd, thttpd, Acme.Serve.
ACME Labs / Software / js_httpd
email