finds.dev

ErickWendel/semana-javascript-expert06

JS Expert Week 6.0 Classes - Spotify Radio

View on GitHub

★ 1,264JavaScriptupdated May 2022

// the take

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.

We read the README, the directory tree and a key source file in July 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
1,264
Forks
196
Language
JavaScript
Last commit
24 May 2022

// nearby

If semana-javascript-expert06 isn't quite it.

All repos →