How Not to Build a Music Player alichraghi.github.io · 22 points · 4 comments · ...
HN Best 200 @best
How Not to Build a Music Player alichraghi.github.io · 22 points · 4 comments · HN thread
TL;DR A developer in Iran builds AMP, a minimal offline music player written in Zig with its own UI and shaders, after a national internet blackout made online players unusable and Strawberry's timestamped lyrics annoyed them. They used a gifted Claude Max subscription to vibecode a large part of it, then, after their account was banned and Codeberg announced a no-AI policy, rewrote nearly half the codebase by hand.
- The author lived through the Twelve-Day War and a later blackout lasting over four months, which pushed them away from online music players toward offline ones.
- Strawberry was the first alternative tried, but its lyrics were often not line-synced and displayed timestamps next to the text, which the author disliked.
- AMP's goals are a minimal feature set, no C++ dependencies, native system integration, and everything in Zig, including shaders.
- During the blackout, internet access was sold on Telegram at about $5 or more per GB, and the author spent hundreds of dollars on it.
- A Claude Max subscription was used to generate a large part of AMP; the author was then banned by Anthropic, reviewed the code line by line, and cut nearly half of it while keeping the features.
- The author now says they regret relying on LLMs, though they see them as a possible IDE feature, and the roadmap includes a music server, Android and Windows support, and Linux packaging.
Discussion The thread is very small, with only two comments. One notes that the name AMP is close to AIMP, an existing Windows music player. The other responds to the author losing their pre-rewrite history by arguing for version control with git. The mood is mild and sympathetic, with the second commenter mainly relating to the described conditions in the country.
- Use version control so history is never lost (some): A commenter says the author should have used git, which would have preserved the pre-rewrite history they say they lack. They also say they like reading about a different internet from their own.
- The name AMP clashes with an existing player (a few): One commenter points out that AMP is close to AIMP, another music player, and links its site. This suggests a naming conflict that could confuse users.
Links from the comments
#musicPlayer #Zig #vibecoding #internetBlackout #offlineMusic