I separated generators from brunch recently as a part of plan of modularising brunch. It’s available at my "scaffolt" repo (simple 150LOC of js).

You can look into it if you’re interested.