I am working on a similar project that exposes a terminal to your browser.
I found this package that ttyd was really helpful to me.
Yup. That was also the one I looked at when I was browsing xterm landing page.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.