Any API or web service to interact with linux terminal [closed]

I have tried googling to get a way to use reactjs which interact with linux commands and that can be used with Gatsby pages but fed up with searching, so kindly suggest a way/web service/web API to execute command at background and show output in a page.