hapësirë is a collection of famous sayings with a simple webpage and a JSON:API compliant quote fetching API. Written in Elixir & Slime using Ash.
It's available at https://hapesire.kira.computer/.
This project comes batteries included with ready to use sqlite database (as a mix dependency) that I compiled. I hope you can find something useful for yourself. Overall, it's a nice project to look into Ash Framework usage for APIs. You can also find a rather unhinged way of managing Slime templates in lib/hapesire_web/templates.ex
.
API docs can be found here - https://hapesire.kira.computer/docs.
Repository with the database file and corresponding CSVs can be found on Codeberg - https://codeberg.org/q60/hapesire-db.
Here's some basic CLI client that supports this API - gigagei. Give it a try.
- Elixir
1.18.3
ash ~> 3.0
ash_sqlite ~> 0.2
ash_json_api ~> 1.0
plug_cowboy ~> 2.0
slime
gettext
- IBM Plex® typeface - SIL Open Font License, Version 1.1. Used remotely in
priv/static/styles/main.css
- IBM Plex Mono
- IBM Plex Sans
- IBM Plex Serif
- Elixir logo. Used in
./priv/static/root.slime
- Ash Framework logo. Used in
./priv/static/root.slime
- Creative Commons public domain icon. Used in
./priv/static/root.slime
- Creative Commons CC0 1.0 Universal license icon. Used in
./priv/static/root.slime
hapësirë is licensed under CC0 OR The Unlicense.
Everything is straightforward:
MIX_ENV=prod mix deps.get
MIX_ENV=prod mix release
# path to release: _build/prod/rel/hapesire/bin/hapesire
Contributions are welcome. Before opening a PR, please make sure to run mix format
, mix credo --strict
and resolve any new issues.