finds.dev← search

// the find

ErickWendel/semana-javascript-expert06

★ 1,264 · JavaScript · updated May 2022

JS Expert Week 6.0 Classes - Spotify Radio

A workshop repo from a Brazilian JS educator's "JS Expert Week" series, walking through building a Spotify-like radio server with Node.js streams. The main content is three lesson snapshots (aula01–aula03) plus their solved versions, focused on teaching streams, unit testing at 100% coverage, and e2e testing with Jest. This is educational material, not a production library — it exists to teach, not to ship.

The stream architecture is the real point: audio files and static assets both delivered as readable streams, which is a legitimate pattern worth seeing in practice. Test coverage discipline is unusually rigorous for a tutorial — the checklist demands 100% coverage and the repo ships LCOV reports to prove it. The e2e tests spin up the actual server rather than mocking it, which catches integration problems unit tests miss. SOX integration for audio effects via child_process is a clean practical example of wrapping native binaries in Node streams.

The repo hasn't been touched since May 2022 and targets Node 17, which is long EOL — you'd need to update the experimental VM modules flag workaround and re-check Jest compatibility before running it today. Everything is duplicated six times (three lesson states × start/solved) so the tree is enormous but ~90% is the same code at different stages; navigating it is confusing without reading the README carefully. There's no explanation of *why* certain stream patterns are chosen over simpler alternatives, which means learners cargo-cult the approach without understanding backpressure or the trade-offs. Heroku deployment references throughout are dead — that platform changed its free tier.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →