1 min readJan 30, 2019
As you point out partitioning everything into a module can easily run into the issues you mentioned.
Yes I ran into those situations in the past, not very often though.
I find the modules made by https://github.com/segmentio/stack to have a fairly good level of abstraction while avoiding the mentioned problem.