Is your feature request related to a problem? Please describe.
We already manage our R implementation with such a bridge. Having the same for nodejs will avoid having to reimplement the generator in JS.
Additional context
check the following resources as starting point and others