xterm.js

A fast, self-contained TypeScript library for embedding fully-featured terminals in the browser.

Library
npm
v6.0.0
21,065stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
91/100Excellent
Development Activity100
Maintenance96
Community68
Maturity60
Momentum40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
91/100Excellent
Architecture92
Code Quality90
Innovation90
Learning Curve85

xterm.js is a frontend component that lets web applications deliver complete, interactive terminal experiences directly in the browser. It emulates a real terminal — handling curses-based apps, mouse events, rich Unicode, and VT sequences — while shipping with zero runtime dependencies in its core.

Battle-tested inside VS Code, Hyper, and Tabby, xterm.js pairs an ergonomic Terminal API with an optional GPU-accelerated WebGL renderer and a modular addon system, making it the de-facto standard for browser-based terminals, SSH clients, and cloud IDEs.

What You Get

  • A dependency-free core Terminal class that renders and emulates a VT100-compatible terminal in any modern browser
  • An optional GPU-accelerated WebGL renderer addon for high-performance drawing
  • A modular addon ecosystem (fit, search, web-links, attach, serialize, clipboard, unicode, ligatures, and more)
  • A headless build (@xterm/headless) that runs terminal state tracking in Node.js without a DOM
  • A fully typed public API via bundled TypeScript declarations, shipped as both CommonJS and ES modules

Common Use Cases

  • Building browser-based SSH and shell clients that stream a remote pty to the user
  • Embedding an integrated terminal inside a cloud IDE, code playground, or developer tool
  • Providing container and VM management consoles in web dashboards
  • Rendering live command output and interactive REPLs in web apps

Under The Hood

Architecture The codebase is layered into three cleanly separated units under src/: common/ holds the environment-agnostic terminal core (the VT parser in common/parser, InputHandler.ts, buffer management in common/buffer, and a service layer via CoreTerminal.ts), browser/ adds DOM-facing concerns (CoreBrowserTerminal.ts, renderers, selection, links, accessibility) and headless/ provides a DOM-free build. A service-oriented design with dependency injection wires these layers, and functionality is extended through a public addon interface (Terminal.loadAddon) with each addon isolated as its own npm workspace under addons/.

Tech Stack Written almost entirely in TypeScript (~96%), the core library ships with zero runtime dependencies. It builds with the TypeScript compiler plus esbuild and webpack for bundling, publishes dual CommonJS/ESM outputs, and is linted with oxlint and ESLint. Rendering uses the browser DOM with an optional WebGL2 canvas path provided by the webgl addon.

Code Quality Quality is high: unit tests (*.test.ts) sit alongside source across common/ and browser/, and a Playwright-driven integration suite runs against Chromium, Firefox, and WebKit. Type-aware linting is enforced with --max-warnings 0, naming conventions are checked by a dedicated ESLint config, and a benchmark harness guards performance regressions.

API Design The public API is deliberately small and ergonomic — new Terminal(), open(element), write(data), onData(), and loadAddon() cover most needs, letting developers get a working terminal in a handful of lines. The full surface is documented in a well-maintained TypeScript declaration file (typings/xterm.d.ts), with experimental APIs clearly flagged, and a demo app plus extensive README examples ease onboarding.

Used by 41 apps in this directory

Go
72%
GPL 3.0

1Panel

Devops · Hosting Control Panel · Monitoring

36,573

The only open-source VPS control panel with native AI agent runtime — deploy websites, Docker stacks, and local LLMs from one web interface.

View details
91
Repo Health
76
Technical
67
Dependency
Built with
Go72%
Vue28%
Updated today
TypeScript
99%
MIT

Cate

AI Code Assistants

2,087

A desktop IDE built on an infinite canvas — spread code editors, terminals, browsers, docs, and AI agents across freeform space instead of stacking windows and tabs, with layouts restored automatically.

View details
79
Repo Health
71
Technical
72
Dependency
Built with
TypeScript99%
Updated today
TypeScript
82%
MIT

clawless

AI Agents · Developer Tools

526

Run Claw AI agents entirely in the browser — no server required — with WebContainers WASM sandboxing, policy enforcement, and complete audit logging.

View details
40
Repo Health
71
Technical
83
Dependency
Built with
TypeScript82%
Updated 1 months ago
Swift
64%
GPL 3.0

cmux

Developer Tools · AI Development

26,221

A native, Ghostty-based macOS terminal with vertical tabs, agent-aware notifications, and a scriptable browser built for running many parallel AI coding agent sessions instead of juggling tmux panes.

View details
84
Repo Health
81
Technical
72
Dependency
Built with
Swift64%
Rust14%
Updated today
Go
76%
AGPL 3.0

Coder

Devops · Developer Tools · Code Editors

14,199

Self-hosted cloud development environments and AI coding agents — defined in Terraform, connected via WireGuard, automatically shut down when idle.

View details
93
Repo Health
90
Technical
71
Dependency
Built with
Go76%
TypeScript22%
Updated today
PHP
79%
Apache 2.0

Coolify

Devops · Hosting Control Panel

60,738

Open-source self-hosted PaaS — deploy apps, databases and 280+ services on your own servers with no vendor lock-in

View details
92
Repo Health
86
Technical
72
Dependency
Built with
PHP79%
Blade18%
Updated yesterday
JavaScript
53%
Other

Cosmos-Server

Security · Authentication

6,121

All-in-one self-hosted home server with SmartShield anti-DDoS, Nebula mesh VPN, automatic HTTPS, and a 250-app marketplace — all secured behind a unified auth layer.

View details
79
Repo Health
59
Technical
66
Dependency
Built with
JavaScript53%
Go43%
Updated yesterday
TypeScript
97%
MIT

DenchClaw

CRM · AI Agents

1,643

An AI-native CRM you self-host on your own machine, built on the OpenClaw agent framework, with a DuckDB backend and pre-built agent skills for managing contacts, deals, reports, and 500+ outreach integrations from natural-language chat.

View details
69
Repo Health
73
Technical
71
Dependency
Built with
TypeScript97%
Updated 2 months ago
TypeScript
99%
Other

Dokploy

Devops · Hosting Control Panel · Security

36,702

Self-hosted PaaS that deploys apps and databases on your own VPS using Docker, Traefik, and multi-build-system orchestration

View details
89
Repo Health
76
Technical
65
Dependency
Built with
TypeScript99%
Updated yesterday

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers

Search