Antra: Turn Your Streaming Links into a Tagged Local FLAC Library
If you've ever tried to build a local music library from streaming services, you know the pain. Spotify links don't download, Apple Music lossless is locked behind DRM, and even when you find a FLAC file somewhere, the metadata is usually a mess. That's where Antra comes in.
It's a small tool that takes any music link from Spotify, Apple Music, and similar platforms, then fetches the actual tracks and stores them as properly tagged FLAC files on your machine. No hacky ripping scripts, no manual tag editing. Just paste a link, get a file.
What It Does
Antra is a command-line utility that:
- Accepts a URL from services like Spotify or Apple Music (album, playlist, or track).
- Resolves that link to identify the actual songs.
- Downloads or sources the audio in FLAC format.
- Writes proper ID3 tags (artist, album, cover art, track numbers, etc.) automatically.
The result is a clean local library that matches the metadata from the streaming service you linked from. It's aimed at people who want lossless audio without the subscription lock-in.
Why It's Cool
A few things stand out here:
1. Metadata is handled for you.
If you've ever used ffmpeg or manual tag editors, you know how tedious this gets. Antra pulls the canonical metadata from the streaming service and applies it consistently. That's a huge time saver.
2. It's not just Spotify.
The tool supports multiple services, which is nice if you jump between platforms or have playlists scattered across different apps.
3. FLAC by default.
No MP3 fallback, no "good enough" quality. If you care about audio fidelity, this is a thoughtful default.
4. Simple mental model.
You give it a link. You get a file. No config file, no daemon, no web UI. For a developer tool, that's refreshing.
How to Try It
Head over to the repo at github.com/anandprtp/Antra. You'll want to read the README for current install steps, but the core flow is:
# Clone and build (or follow the latest instructions)
git clone https://github.com/anandprtp/Antra
cd Antra
# ... build steps per README
# Then run it with a link
antra "https://open.spotify.com/album/..."
Since this is an active project, check the repo for any authentication requirements or rate-limit notes. Some APIs need a token or environment variable, but the README should cover that.
Final Thoughts
Antra fills a weird but real gap. If you're someone who likes owning your music files, but you've been too lazy to manually curate a FLAC library, this tool does the grunt work. It's not a piracy tool, it's a convenience layer for people who already pay for streaming but want local backups in better quality.
For devs, it's also a neat reference for how to hit streaming APIs and normalize metadata. Even if you don't use it daily, the code is worth a look if you're building anything that touches music info.
Give it a spin, and let me know if your playlists survive the migration.
This post was featured on @githubprojects.