What problem does it solve?
xterm-js helps you add a real interactive terminal to browser or Electron apps instead of trying to fake shell behavior in the UI. It is useful when you need persistent agent sessions, remote shell access, or an embedded console that behaves like a desktop terminal.
Core Features & Use Cases
- Terminal Integration: Create and configure xterm.js instances with the right options, themes, and addons.
- Backend Connectivity: Connect the terminal to node-pty, WebSocket, or other PTY backends for live command execution.
- User Experience: Handle resizing, keyboard shortcuts, search, links, clipboard, and WebGL fallback for polished terminal UX.
- Use Cases: Build in-browser shells, WebSSH dashboards, Electron command panes, AI coding tools, and project-specific terminals that stay alive across navigation.
Quick Start
Use the xterm-js skill to design an interactive terminal component for my app, connect it to a node-pty backend over WebSocket, and include the resize, theming, and disposal practices needed for a stable production experience.