the pull-stream module and its ecosystem is relevant here
the idea is basically just use functions. no classes and very little statefulness
https://www.npmjs.com/package/pull-stream