Hello,
As I understand your project, it mainly consists in having some script to control ffmpeg processing. I have already used ffmpeg to do such kind of processing with complex filters: adding overlay text, cut / join video, ... and I could provide you a script in Python.
If you have a strong preference for NodeJS, even if I have less experience with it, I could instead use this language to control ffmpeg.
Kind regards,
Stephane