Skip to content

storopoli/stoic-quotes

Repository files navigation

Stoic Quotes

CC0 MIT

The whole app runs with Rust using htmx1 and plain HTML for "reactivity"2.

Description

Performance

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!

Terminal-ready

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

Docker

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).

License

This content is licensed under a Creative Commons Public Domain CC0 1.0 License.

The source code is licensed under a MIT License.

CC0 MIT

Footnotes

  1. Look Mum! No YAVASCRIPT!

  2. Hypermedia-Driven Applications