- Elixir 98%
- CSS 1%
- JavaScript <1%
- Shell <1%
Храналёгія (Hranalohija) #
A timeline card game, Belarusian-first (Taraškievica orthography, be-tarask). You are
dealt a card — a person, invention, battle, or film with a hidden year — and must drop it into
the correct chronological slot on a growing timeline. Three lives, then a shareable score.
The deck is deliberately weighted toward Belarusian and Central/Eastern European history alongside world history.
Status: Phases 0–5 done, Phase 6 (deploy + perf + attribution) in progress. The game is playable at
/(free play) and/daily(seeded daily challenge). SeePLAN.mdfor the roadmap andPROMPT.mdfor the full brief.
Toolchain #
Versions are pinned in mise.toml (Elixir 1.20.4 / OTP 29 / Node 26):
mise install # installs the pinned Erlang, Elixir and Node
mise run setup # starts the Postgres container, then deps + database + assets
mix phx.server # http://localhost:4000
Since Phase 5, persistence (score history, the daily challenge leaderboard) uses
PostgreSQL via Ecto, reachable at localhost:5432 with user/password postgres
(the stock defaults). mise run db starts (or creates) a throwaway postgres:18
container with those defaults; mise run setup depends on it and then runs
mix setup (deps + ecto.create/migrate + assets). Override the connection with
the PGHOST / PGPORT / PGUSER / PGPASSWORD env vars if you're pointing at a
different server — e.g. a container on another port:
docker run -d --name hranalohija-postgres -e POSTGRES_PASSWORD=postgres -p 5433:5432 postgres:18
PGPORT=5433 mix setup && PGPORT=5433 mix phx.server
No accounts and no personal data: scores are keyed to an opaque, anonymous session token (brief §6).
Checks #
mise run precommit # format --check-formatted, credo --strict, deck verify, test
or individually:
mix format --check-formatted
mix credo --strict
bash priv/scripts/check_po_orthography.sh # no и/щ/ъ in be-tarask .po files
mix test
All of the above (plus mix content.decks.verify, the ≥500-card gate) run in CI on Tangled
Pipelines (.tangled/workflows/ci.yml).
Credits & licence #
- Our code is licensed MIT.
- Inspired by the original Wikitrivia by Tom James Watson (MIT). This is a from-scratch reimplementation, not a port.
- Data from Wikidata (CC0) and Wikipedia (text CC BY-SA 4.0).
Commons images carry per-file licences; each card shows its image's author and licence in-game.
A "Крыніцы / Sources" page at
/krynicylists the aggregate data provenance.