flavor

Crates.ioflavor
lib.rsflavor
version2.3.1
created_at2025-11-20 03:45:09.943132+00
updated_at2025-11-21 21:21:28.951448+00
descriptionA simple app that returns a card title and any flavor text from a random card from Magic: The Gathering, Arkham Horror TCG or Netrunner
homepage
repositoryhttps://gitlab.com/personal4954625/flavor
max_upload_size
id1941113
size127,007
Jeremy Doan (DJrizzley)

documentation

README

Flavor

Simple app that returns a card title and any flavor text from a random card from either Magic: The Gathering, Arkham Horror TCG or Netrunner.

This project was created with much assistance from Gitlab Duo and further enhanced with help from Qwen.

Features

  • Fetches random card information from three different card game APIs:
    • Magic: The Gathering (via Scryfall API)
    • Arkham Horror TCG (via ArkhamDB API)
    • Netrunner (via NetrunnerDB API)
  • Progress spinner during API requests for better UX
  • Formatted text output with proper text wrapping
  • Machine-readable JSON output option
  • Random selection from all three APIs with balanced probability

Installation and Running

Prerequisites

  • Rust and Cargo installed (latest stable version)

Building from Source

git clone https://gitlab.com/dump-stuff/flavor.git
cd flavor
cargo build --release
./target/release/flavor

Using Cargo Directly

cargo run --release

Command Line Options

  • --machine or -m: Output in machine-readable JSON format instead of formatted text

Example:

./target/release/flavor --machine

Publishing

This crate has been prepared for publication on crates.io. To use it as a library in your project, add the following to your Cargo.toml:

[dependencies]
flavor = "2.2.0"

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Commit count: 0

cargo fmt