Office app online

Is there some way to make some office software run but using an official server from nextcloud or onlyoffice as office app? I tried to use nextcloud office but my server cannot run it for any cause and it becomes so slow that cannot do anything. I uninstalled it using occ script becouse it was impossible use the web interface. Please if there is another way to do it I would be grateful if you tell me.