@termysh/web · WebAssembly

Termy in your browser

The same Rust terminal engine as the desktop app, compiled to WebAssembly and drawn on a canvas. This shell runs entirely in your browser. Type help, or try a command below.

14px
Loading WebAssembly engine…

Use it in your app

npm install @termysh/web

import { Terminal } from '@termysh/web'

const term = new Terminal({ theme: 'tokyo-night' })
term.open(element)
term.onData((data) => socket.send(data))
socket.onmessage = (e) => term.write(e.data)

What you are looking at

  • Parsing, scrollback and key encoding from Termy's Rust engine
  • Kitty keyboard and graphics protocols, OSC 8 links, truecolor
  • Pixel-exact box drawing, blocks and Braille
  • 14 bundled themes and live options
  • An xterm.js-compatible API in @termysh/xterm

Read the web terminal docs