A little Rust, a terminal, and an unreasonable dislike for resource-hungry browsers.

It started with a problem

I have a habit of listening to music while working. Whether I’m debugging something, messing around with Linux, or spending questionable amounts of time in a terminal, there’s almost always some music playing in the background.

The problem? My old ThinkPad T420 isn’t exactly a powerhouse. Opening a browser with a bunch of tabs just to listen to an internet radio station was enough to make the poor thing reconsider its life choices.

So I started thinking: why do I need an entire browser, JavaScript engines, dozens of background processes, and gigabytes of RAM just to stream some music?

I didn’t.

That’s how HAKFM started.

Meet HAKFM

HAKFM is a lightweight internet radio player built in Rust, designed to live entirely inside your terminal.

The idea is simple: open your terminal, launch HAKFM, pick a station, and get back to whatever you were doing. No browser, no unnecessary overhead, no distractions.

It’s not trying to reinvent music streaming. It’s just trying to make listening to music as simple as it should be.

The current version comes with a cyberpunk-inspired interface, animated audio visualizers, multiple color themes, and a collection of radio stations for different moods.

What’s under the hood?

HAKFM is written in Rust and uses a terminal user interface built around Ratatui. Instead of implementing its own audio decoding pipeline, it delegates playback to mpv.

This keeps things relatively simple while taking advantage of an already mature audio playback engine.

Some of the features include:

  • Radio presets: A collection of stations including DEF CON Radio, SomaFM channels, ambient music, synthwave, and more.
  • Station discovery: Search thousands of internet radio stations without leaving the terminal.
  • Audio visualizers: Spectrum, waveform, stereo VU meter, and Matrix-style visualizations.
  • Custom stations: Add your own Icecast, Shoutcast, PLS, or MP3 streams.
  • Five visual themes: Cyberpunk, Matrix, Nord, Dracula, and Stealth.
  • Favorites and filtering: Keep your preferred stations organized and accessible.

One of my favorite things about this project is how little it needs to run. Startup takes around 10 milliseconds, and memory usage sits around 12 MB in typical use. That’s a pretty nice trade-off compared to running a full browser just for background audio.

Why Rust?

I’ve been getting more interested in Rust, especially for projects where performance, resource efficiency, and reliability actually matter.

HAKFM was also a good excuse to get my hands dirty with terminal interfaces, process management, audio playback, and building something that feels native to the Unix environment.

I wanted something that could run comfortably on older hardware without sacrificing the experience. Rust turned out to be a pretty good fit.

Try it yourself

HAKFM is free and open source. If you’re a terminal enthusiast, a Linux user, or just someone who likes having fewer things running in the background, give it a try.

Installation is pretty straightforward:

curl -fsSL https://raw.githubusercontent.com/Deltafsociety/hakfm-TUI/main/install.sh | bash

Then just run:

hakfm

You’ll need mpv installed for audio playback.

Source code, screenshots, installation instructions, and the latest updates are available on GitHub:

github.com/Deltafsociety/hakfm-TUI

One last thing

I built this because I wanted to listen to music without making my laptop suffer. Somewhere along the way, it became a fun little Rust project that I’m genuinely happy with.

Sometimes the best software isn’t the one with the most features. It’s the one that does exactly what you need without getting in your way.

Stay curious. Stay lightweight.