nex and nps

The other day I did a little searching around for other smolweb services and stubmled upon what could be the most simple solutions to send output and get input.

nex server

nex or Nightfall Express is a simple service for transmitting content. Using a simple socket and a one line request containing the content's path, the server can be implemented in a few dozen lines of shell code. I wrote down those lines and published it here.

nex-sh Git repo

The client is even more simple. It can be done in a single line of shell code.

You can try out my site with the following command:

Or if you have a browser that supports it

Nex page

nps server

nps or Nightfall Postal Service is a simple service for sending messages. It has basically one rule: All messages end with a line containing just a single `.` character. Just like `ed`. My script allows for two modes: File Upload and Script Mode

If you set the environment variable `OUT_DIR` all files are written to the directory specified. It just needs to end in a line with just a `.` character.

If the environment variable `OUT_SCRIPT` is set, the shell script it points to will be piped the lines via `stdin` and the output is sent back to the client via `stdout`.

SERVER

CLIENT

Example Script:

Back

Proxied content from gemini://gemini.sh0.xyz/development/nex-and-nps.gmi

Gemini request details:

Original URL
gemini://gemini.sh0.xyz/development/nex-and-nps.gmi
Status code
Success
Meta
text/gemini
Proxied by
kineto

Be advised that no attempt was made to verify the remote SSL certificate.