microsoft/node-pty
Fork pseudoterminals in Node.JS observed · 2026-08-28
Health v2 · maintenance only
75/100
- Activity 99
- Release rhythm 30
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3757
- days_rel: 254
- days_push: 8
- n_releases_24m: 1
Adoption not part of the score
2017 stars · 333 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
node-pty provides forkpty(3) bindings for Node.js, allowing you to spawn processes with pseudoterminal file descriptors and interact with them via reads and writes. It supports Linux, macOS, and Windows (via the conpty API), and powers terminal emulators like VS Code and Hyper.
Use cases
- build a terminal emulator in Node.js with xterm.js
- make CLI programs think they are running in a real terminal
- capture control sequences from interactive programs
- embed an interactive shell inside an Electron app
- run and resize pseudo-terminal processes programmatically
- build a browser-based terminal over HTTP
When to choose
- you need real PTY behavior (control sequences, TTY detection) in a Node.js app
- you are building a terminal emulator, IDE terminal panel, or SSH-in-browser tool
- you need cross-platform PTY support including Windows conpty
When to avoid
- you only need to run child processes without TTY semantics (use child_process)
- your app is not Node.js/JavaScript based
- you need to support Windows versions older than 10 1809
Facets
library · maturity stable
cli developer-tools developer-tools windows cross-platform pty pseudoterminal forkpty conpty terminal-emulator process-spawning command-line terminal-emulation nodejs linux macos
1 source
- readme: https://github.com/microsoft/node-pty · fetched 2026-08-28 · 1dd89b5cbb54
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| microsoft/node-pty | main | 75 |
For agents
markdown · JSON · MCP: product_card(name="microsoft/node-pty")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem