Moving from CLI to Full-Stack JS Framework

I’m trying to create an application that relies on a few functions that wrap APIs. They call those APIs, pass them data, process that data, then call other APIs based on the return. These are all async, sometimes fail and have to run again, and I want to update the UI based on these calls.

Right now I do this through a bunch of js files run with a node CLI and way too much time. Is there an obvious place for those functions within a full-stack js framework? Is this a pretty common use case?

What about functions that are run once to populate a database, or very infrequently?