Gaming toolkit for tracking scores, rankings, challenges, leaderboards, and rewards from the command line. Log entries, review history, export data, and search across all records.
Score is a versatile CLI tool for game and competition tracking. Each command logs or retrieves entries with timestamps. Pass arguments to record new data, or run a command with no arguments to view recent entries. Built-in utilities provide statistics, data export, search, and health checks.
CommandDescriptionscore roll [input]Log a roll entry, or view recent rollsscore score [input]Log a score entry, or view recent scoresscore rank [input]Log a rank entry, or view recent rankingsscore history [input]Log a history note, or view recent historyscore stats [input]Log a stats note, or view recent stats entriesscore challenge [input]Log a challenge, or view recent challengesscore create [input]Log a creation event, or view recent createsscore join [input]Log a join event, or view recent joinsscore track [input]Log a tracking entry, or view recent tracksscore leaderboard [input]Log a leaderboard entry, or view recent standingsscore reward [input]Log a reward, or view recent rewardsscore reset [input]Log a reset event, or view recent resetsscore statsShow summary statistics across all log filesscore export <fmt>Export all data (json, csv, or txt)score search <term>Search all entries for a termscore recentShow last 20 lines of activity historyscore statusHealth check (version, entries, disk usage, last activity)score helpShow usage helpscore versionShow version (v2.0.0)
~/.local/share/score/<command>.log filehistory.log — timestamped action log recording every operationexport.<fmt> — generated export files (json, csv, txt)YYYY-MM-DD HH:MM|value per line in each log fileset -euo pipefail)date, wc, du, tail, grep, cat, head)score score "Player1 25pts" to log scores during a game night or tournamentscore leaderboard "Player1 #1" to maintain standings, then score export csv for spreadsheetsscore roll "d20: 17" for tabletop RPG sessionsscore challenge "speed run level 3"score stats for summary counts, score search to find specific entries, and score export json for programmatic analysisbash
# Log a dice roll
score roll "d20: natural 17"
# Output: [Score] roll: d20: natural 17
# Saved. Total roll entries: 1
# Record a game score
score score "Alice 2500pts round-3"
# Output: [Score] score: Alice 2500pts round-3
# Saved. Total score entries: 1
# Update the leaderboard
score leaderboard "Alice #1, Bob #2, Charlie #3"
bash
# View recent rolls (no argument = read mode)
score roll
# Check overall statistics
score stats
# Output: history: 5 entries
# roll: 3 entries
# Total: 8 entries
# Data size: 4.0K
# Search across all entries
score search "Alice"
bash
# Export everything as JSON
score export json
# Output: Exported to ~/.local/share/score/export.json (245 bytes)
# Export as CSV for spreadsheets
score export csv
# Check system health
score status
# Output: Version: v2.0.0, Data dir, Entries count, Disk usage, Last activity
# View recent activity
score recent
Each domain command (roll, score, rank, challenge, etc.) has dual behavior:
<command>.log and logs the action to history.logThe stats utility aggregates entry counts across all log files. The export command converts all logs into JSON, CSV, or plain text format. The search command performs case-insensitive grep across every log file.
recent for a quick dashboard of the last 20 actionsexport json output to jq for advanced analysisexport SCORE_DIR=... (set in your environment before sourcing)Powered by BytesAgain | bytesagain.com | hello@bytesagain.com