Skip to content
colorlesspilgrimagePublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

29 Commits

Folders and files

Repository files navigation

gamelog

A terminal UI for logging and tracking the video games you play, written in Rust with ratatui.

Track title, system, status, hours played, a 5-star rating, cover art, and freeform notes for every game — all from a fast, keyboard-driven split-pane interface, with your data stored as plain JSON in a single hidden directory in your home folder.

Screenshots

Browsing your library, with cover art rendered inline (real graphics on Kitty/iTerm2/Sixel-capable terminals, a Unicode half-block fallback elsewhere):

Browsing a library entry with cover art, info, and notes

Adding a new entry, via a small modal popup — the same pattern used for editing any field, confirming deletes, and setting a rating:

Add entry popup over the main view

First-run setup, where you choose a default source for automatic cover art:

First-run wizard for choosing a cover art source

Features

  • Split-pane browsing — a scrollable list on the left (toggle between all entries and a single system with Tab/Shift+Tab), and a detail pane on the right showing cover art, info, and notes for the selected entry.

  • Search and sort — press / to filter the list by title as you type (case-insensitive), and o to sort by title, hours played, rating, release date, last played, or status (O reverses the order). Your chosen sort is remembered between runs; entries without a rating, release date, or play session always sink to the bottom.

  • CSV import/export — E saves your whole library as a CSV file (title, system, status, hours, rating, release date, last played, notes), and I adds entries from one. Import is forgiving so spreadsheets and other trackers' exports work: only title and system columns are required (name/platform also work), column order and header case don't matter, extra columns are ignored, and statuses like "Completed" or "In Progress" are understood. Rows already in your library (same title and system, ignoring case) are skipped, so re-importing a file never creates duplicates, and bad rows are skipped without stopping the rest; the status bar reports how many there were and the line number of the first. Cover art isn't included.

  • Full entry model — title, system/platform, release date, status (Want to Play / Playing / Played), hours played, last played date, a 0–5 star rating, cover art, and freeform persistent notes.

  • Play sessions — press t to start a live timer when you sit down to play, and press it again when you stop; the elapsed time is added to that entry's hours automatically, and its last played date is updated. A running session is always visible in the footer, even while you browse other entries, and is safely finalized if you quit mid-session. Played without the timer? Set the last played date directly with L.

  • Automatic cover art, from either of two free APIs, or your own image files:

    • SteamGridDB — purpose-built box/grid art, best visual quality.
    • RAWG.io — broader metadata coverage, banner-style images.
    • Manual — point at a local image file yourself with c.

    A first-run wizard asks which source you'd like as your default (prompting for its free API key if you pick an online one). New entries automatically try to fetch cover art from that default; if it fails or finds nothing, a popup lets you try the other source, import a file, or skip entirely.

  • Fetch All Covers — backfill cover art for every entry that's missing one, all in the background. Fetches run through a small worker pool (never more than a handful of requests in flight at once, regardless of library size) and automatically retry with backoff if an API rate-limits you.

  • Fully asynchronous fetching — cover art downloads never block the UI; you can keep browsing and editing while they run.

  • Configurable keybindings — every action's key is read from a plain TOML file (~/.gamelog/keybindings.toml), generated with comments on first run. A live help bar along the bottom always reflects whatever you've actually bound.

  • Everything in one hidden folder — your library (entries.json), imported/downloaded cover art (covers/), keybindings, and settings all live under ~/.gamelog, not scattered across platform-specific config directories.

  • Safe writes — saves are atomic (written to a temp file, then renamed into place), so an interrupted write can't corrupt your library.

Installing

Prebuilt binaries

Each tagged release on the GitHub Releases page includes prebuilt binaries for Linux (x86_64-unknown-linux-gnu) and macOS (aarch64-apple-darwin for Apple Silicon, x86_64-apple-darwin for Intel). Download the gamelog-<version>-<target>.tar.gz archive for your platform, optionally check it against its .sha256 file, then extract it and put the binary on your PATH:

sha256sum -c gamelog-v0.1.0-x86_64-unknown-linux-gnu.tar.gz.sha256   # macOS: shasum -a 256 -c …
tar -xzf gamelog-v0.1.0-x86_64-unknown-linux-gnu.tar.gz
cp gamelog-v0.1.0-x86_64-unknown-linux-gnu/gamelog ~/.local/bin/

The macOS binaries aren't signed or notarized, so Gatekeeper may block the first launch; clear the quarantine flag with xattr -d com.apple.quarantine gamelog if it does.

Debian/Ubuntu (.deb) and Fedora/openSUSE (.rpm)

Each release also includes x86_64 Linux packages that install /usr/bin/gamelog (built on Ubuntu 22.04, so they need glibc 2.35 or newer). Download gamelog_<version>-1_amd64.deb or gamelog-<version>-1.x86_64.rpm from the GitHub Releases page, optionally check it against its .sha256 file, and install it with your package manager:

sudo apt install ./gamelog_0.1.0-1_amd64.deb      # Debian, Ubuntu
sudo dnf install ./gamelog-0.1.0-1.x86_64.rpm     # Fedora (openSUSE: sudo zypper install …)

These aren't in any distribution's repositories, so updates mean downloading the new release's package.

Arch Linux (AUR)

A PKGBUILD lives in packaging/aur/. It isn't published to the AUR yet, so build and install it locally with makepkg (this builds the tagged release from source, runs the tests, and installs /usr/bin/gamelog):

git clone https://github.com/colorlesspilgrimage/gamelog.git
cd gamelog/packaging/aur
makepkg -si

Build from source

Prerequisites

  • A Rust toolchain, 1.85 or newer (install via rustup if you don't have one).

Building

git clone https://github.com/colorlesspilgrimage/gamelog.git
cd gamelog
cargo build --release

The compiled binary will be at target/release/gamelog.

Install it somewhere on your PATH

Either let Cargo install it for you:

cargo install --path .

(this places it at ~/.cargo/bin/gamelog, which rustup puts on your PATH by default), or copy the release binary manually:

cp target/release/gamelog ~/.local/bin/

Then just run:

gamelog

Terminal requirements

Any ANSI terminal works. For inline cover art images, use one that supports the Kitty, iTerm2, or Sixel graphics protocol (e.g. kitty, foot, WezTerm) — other terminals still work, falling back to a Unicode block-art rendering of the cover.

Configuration

Everything gamelog stores lives under ~/.gamelog/:

File Purpose
entries.json Your game library.
covers/ Cover art images, imported or downloaded.
keybindings.toml Key-to-action bindings, written with comments on first run.
settings.toml Your default cover art source and API keys.

Edit keybindings.toml or settings.toml in any text editor and restart gamelog to pick up changes.

Default keybindings

Shown contextually along the bottom of the screen at all times; the primary browsing keys are below and fully customizable via keybindings.toml.

Key Action
j / k (or ↓ / ↑) Navigate the list
Tab / Shift+Tab Cycle the system filter
Enter Edit notes
a Add an entry
d Delete the selected entry
T Edit title
p Edit system/platform
R Edit release date
L Edit last played date
s Cycle status
h Edit hours played
t Start/stop a play session (adds elapsed time to hours played)
r Set rating
c Import cover art from a local file
F Fetch cover art for every entry that's missing one
/ Search by title (Enter to keep the search, Esc to clear it)
o / O Cycle the sort order / reverse it
I / E Import entries from / export the library to a CSV file
q (or Esc) Quit (Esc clears an active search first)

License

MIT — see LICENSE.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages