The whole app runs with Rust using htmx1 and plain HTML for "reactivity"2.
This motherfucker is fast AF!
It only consumes 2.2mb of memory and the cheapest CPU VPS available will handle it. The JSON data is loaded into memory (so that takes ≈0.2mb). Leaving the whole app to consume 2mb of memory.
❤️ Rust!
Yes, if you despise the bloated browsers and you prefer the warm embrace of the terminal you can get your stoic quotes without leaving the terminal:
$ wget -qO- stoicquotes.io
"It is better to be despised for simplicity than to suffer agonies from everlasting pretense."
- Seneca
$ curl stoicquotes.io
"It is better to be despised for simplicity than to suffer agonies from everlasting pretense."
- Seneca
You can also deploy it using Docker from the GitHub Container Registry:
docker pull ghcr.io/storopoli/stoic_quotes:latest
docker run -d --name stoic_quotes -p 443:3000 stoic_quotes
By default it exposes port 3000 on the axum
server.
You can safely map to HTTP (port 80) or HTTPS (port 443).
This content is licensed under a Creative Commons Public Domain CC0 1.0 License.
The source code is licensed under a MIT License.
Footnotes
-
Look Mum! No YAVASCRIPT! ↩