Simple spartan client and server
spartclient and sparline are 2 simple spartan clients and spartserv is a simple spartan server written in C.
2023-02-23 Update: There is also spartasm, a spartan server written in x64 assembly, also available in spartserv git repo (link below).
About the spartan protocol: Spartan on the web Spartan on gemini Spartan on spartan
The source code is available at: spartserv git spartserv git (gemini link)
Each tool consists of a single C file less than 500 lines of code.
spartservPrivDrop.c is a secure spartan server, read README.md above for the setup.
spartservPrivDrop runs in a sandbox created with chroot and bpf filters to only allow the necessary syscalls.
Tor setup
These clients and server work with the tor network.
spartserv is setup as a regular onion service, see my article 'Using tor' to setup the onion service.
Using Tor
The hostname in spartserv.c has to be set to the onion address.
Then sparline client with torsocks:
torsocks sparline spartan://address.onion:3000
The pages load in about 1 second.
tags: #spartan #tor