#cli #music #freecodecamp #code-radio

app code-radio-cli

A command line music radio client for https://coderadio.freecodecamp.org

17 releases (6 stable)

1.0.5 Jan 29, 2024
1.0.4 Aug 18, 2023
1.0.3 Apr 29, 2023
1.0.2 Jan 3, 2023
0.1.4 May 31, 2022

#298 in Command line utilities

Download history 2/week @ 2023-11-05 42/week @ 2023-11-12 7/week @ 2023-11-19 81/week @ 2023-11-26 49/week @ 2023-12-03 1/week @ 2023-12-10 20/week @ 2023-12-17 32/week @ 2023-12-24 1/week @ 2023-12-31 17/week @ 2024-01-07 3/week @ 2024-01-14 10/week @ 2024-01-21 120/week @ 2024-01-28 7/week @ 2024-02-04 79/week @ 2024-02-11 346/week @ 2024-02-18

552 downloads per month

MIT license

265KB
728 lines

Code Radio CLI

Crate GitHub release (latest by date)

🎵 24/7 music designed for coding, now in your terminal!

A command line music radio client for https://coderadio.freecodecamp.org (about), written in Rust.

Screenshot

Install

  • Download prebuilt binary from GitHub release page.

  • 🪟 On Windows, install with WinGet:

    winget install code-radio-cli
    
  • 🦀 Install with Cargo:

    cargo install code-radio-cli
    

    After installation, run code-radio in command line to start. You may need to restart your shell first.

⚠ About building and running on Linux 🐧

This program uses rustaudio/cpal lib to play audio, which requires ALSA development files on Linux.

In order to build and run this program on Linux, you need to install:

  • libasound2-dev on Debian / Ubuntu
  • alsa-lib-devel on Fedora

Usage

code-radio [OPTIONS]

OPTIONS:
    -h, --help                 Print help information
    -n, --no-logo              Do not display logo
    -s, --select-station       Manually select a station
    -v, --volume <VOLUME>      Volume, between 0 and 9 [default: 9]
    -V, --version              Print version information

Dependencies

~13–50MB
~795K SLoC