A very small web coding terminal you can run locally and deploy quickly.
- Node.js + Express: serve one HTML page.
- WebSocket (
ws): real-time terminal I/O. node-pty: spawn a real shell process (bash/powershell).- xterm.js (CDN): browser terminal UI.
npm install
npm startOpen http://localhost:3000.
- Push this project to GitHub.
- Go to render.com and create a New Web Service.
- Connect your repository.
- Set:
- Build Command:
npm install - Start Command:
npm start - Environment: Node
- Build Command:
- Deploy.
Render will expose your app publicly over HTTPS, and the app automatically uses wss:// when needed.
.
├── public/
│ ├── app.js
│ ├── index.html
│ └── styles.css
├── server.js
├── package.json
├── Procfile
└── README.md- This is a minimal demo and runs a shell process per browser session.
- Do not use as-is for untrusted public users without sandboxing/auth/rate limits.