pty.js + xterm.js = shell in your browser

david karapetyan on November 04, 2018

I have this plan of creating a distributed multi-cloud CI system by using constraint solvers, LXC, pulumi, and a few other things. That's a prett... [Read Full]
markdown guide

Getting JS error socket is undefined
Messed around with placing socket declaration earlier in document, but alas no go.


How to run this either inside static folder or outside static
inside static I get
npm WARN saveError ENOENT: no such file or directory, open 'F:\Shell\web-shell\static\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'F:\Shell\web-shell\static\package.json'
npm WARN static No description
npm WARN static No repository field.
npm WARN static No README data
npm WARN static No license field.


Thank you for great article, please use node-pty fork package for better support, failed to install pty.js on centos, it does not seem to be well supported right now.


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.

code of conduct - report abuse