Lumen

Electron terminal vs native terminal

Some terminal apps are web pages in a bundled browser; others are native programs that draw text themselves. Here's what that changes for you, and which popular terminals are which.

Updated

The short answer

An Electron terminal is a terminal emulator built as a web app: the window is a copy of Chromium, the interface is HTML, CSS and JavaScript, and the text grid is usually drawn by the xterm.js library. A native terminal is a program written in a language like Rust, C, Swift or Zig that draws with the operating system's own toolkit or straight to the GPU.

Electron terminals are easy to extend with web technology and run the same on every OS. Native terminals generally start faster, use less memory and feel more immediate under heavy output. For most people who spend all day in a terminal, a native one is the better default; an Electron terminal makes sense when you want a specific feature it offers.

Which terminals use Electron

TerminalBuilt withNotes
HyperElectron, React, xterm.jsPlugins are npm packages; config in .hyper.js. Last stable release was v3.4.1 in early 2023
TabbyElectronSSH and serial client built in; its README says it isn't lightweight
Wave TerminalElectron with a Go backendAI features, widgets, file previews
VS Code's integrated terminalElectron, xterm.jsA terminal inside an editor rather than a standalone app

Which terminals are native

TerminalBuilt withPlatforms
GhosttyZig core; AppKit/SwiftUI on macOS, GTK on LinuxmacOS, Linux
kittyC and Python, OpenGLmacOS, Linux, BSD
AlacrittyRust, OpenGLmacOS, Linux, Windows, BSD
WezTermRust, GPUmacOS, Linux, Windows, BSD
iTerm2macOS nativemacOS
WarpRust with its own GPU UI frameworkmacOS, Linux, Windows
LumenRust, GPUImacOS, Linux

Warp is often assumed to be Electron because of its modern, app-like interface. It isn't: it's written in Rust and draws its own UI, and the UI framework is part of the source it opened in 2026.

What Electron gives a terminal

  • One codebase everywhere. The same JavaScript runs on macOS, Windows and Linux, which is why Electron terminals tend to support all three from the start.
  • Web-style extensibility. Hyper's plugins are npm modules that can restyle anything with CSS or add React components. Building rich panels, previews and widgets, as Wave does, is much easier in HTML than in a GPU renderer.
  • A well-tested emulator. xterm.js is used by VS Code and many web IDEs, so it handles real-world programs well.

What it costs

  • Memory and disk. Every Electron app ships its own copy of Chromium and Node.js. Even an idle window carries a browser engine's overhead, and that adds up if you also run an Electron editor, chat app and browser.
  • Startup. Loading a browser engine before showing a prompt takes longer than launching a native binary. You notice it most with a drop-down terminal or when opening many windows.
  • Heavy output and latency. A native GPU terminal draws glyphs directly; an Electron terminal passes text through JavaScript and the browser's rendering pipeline first. xterm.js has a WebGL renderer that helps a lot, but large bursts of output and typing latency still tend to favour native apps. Our terminal benchmark guide shows how to measure this on your own machine.
  • Platform feel. Electron apps draw their own controls, so tabs, menus and shortcuts can feel slightly off on each OS. Native apps can use the system's own.

Tabby's own README is candid about this: it says it isn't lightweight and suggests Alacritty if memory use matters.

What "native" does and doesn't guarantee

Native isn't a single thing. Some native terminals use the platform's text rendering (Terminal.app, GNOME Terminal through VTE). Others draw every glyph with the GPU, which is what people usually mean by a GPU-accelerated terminal. Ghostty mixes the two: native windows, tabs and menus around a GPU-drawn grid.

Native also doesn't automatically mean small. Warp is native but carries a lot of features; Alacritty is native and deliberately minimal. The useful question is how the text gets to the screen, and what the app does besides.

How to tell what your terminal is built with

On macOS, look inside the app bundle: ls /Applications/Hyper.app/Contents/Frameworks will show Electron Framework.framework for an Electron app. On Linux, an Electron app's install folder usually contains resources/app.asar and Chromium files like chrome_100_percent.pak. A native app is typically one binary and a few resources.

Building a terminal into an Electron app

Some people searching for "electron terminal" want to put a terminal inside their own Electron app. The common recipe, used by VS Code and Hyper, has two parts:

  1. A pseudoterminal in the main process. node-pty spawns the user's shell attached to a PTY and gives you its output as a stream. It's a native Node module, so you rebuild it for your Electron version (for example with @electron/rebuild).
  2. A terminal view in the renderer. xterm.js renders the grid and turns key presses into bytes. Add the fit addon to size it to its container, and the WebGL addon for faster drawing.

Connect them over IPC: PTY output goes to term.write(), term.onData() goes back to pty.write(), and window resizes call pty.resize(cols, rows). A minimal sketch:

// main process
const pty = require('node-pty');
const shell = process.env.SHELL || 'bash';
const p = pty.spawn(shell, [], { name: 'xterm-256color', cols: 80, rows: 24, cwd: process.env.HOME });
p.onData(data => win.webContents.send('pty-data', data));
ipcMain.on('pty-input', (_e, data) => p.write(data));

// renderer (through a preload bridge)
const term = new Terminal();
term.open(document.getElementById('term'));
window.pty.onData(data => term.write(data));
term.onData(data => window.pty.send(data));

Keep the PTY in the main process (or a utility process) and expose only a narrow API through a preload script, so a web page in your app can't run shell commands.

Which should you use

  • Choose a native terminal if the terminal is where you work all day, you run large builds or logs, or you care about memory and startup.
  • Choose an Electron terminal if a feature it has matters more to you: Tabby's saved SSH and serial connections, Wave's widgets and AI, or Hyper's CSS-level customisation.

For a ranked list across both kinds, see the best terminal emulators. If you're new to the terms, what is a terminal emulator covers the basics.

Where Lumen fits

Lumen is a native terminal for Linux and macOS, written in Rust. Its interface is drawn with GPUI, the GPU UI framework from the Zed editor, and its terminal emulation is the alacritty_terminal crate. There's no Electron and no webview: every glyph, tab and pane is drawn on the GPU. Even so, it has things Electron terminals are often chosen for, like a command palette and plugins in any language that add commands, pickers and panes of their own.

It doesn't run on Windows, and it doesn't offer the web-style styling of Hyper or the widgets of Wave. Themes are a fixed set of five rather than files you write.

Questions

Is Warp an Electron app?

No. Warp is written in Rust and draws its own interface with a GPU-based UI framework. It isn't built on Electron or a webview.

Is Hyper terminal Electron?

Yes. Hyper is built on Electron with React, and its terminal is drawn by xterm.js. Plugins are npm packages.

Are Electron terminals slower than native terminals?

Usually, for startup, memory use and heavy output, because they run a full browser engine. With the WebGL renderer the difference in everyday typing is smaller. Native GPU terminals such as Alacritty, kitty, Ghostty and WezTerm generally lead.

How do I add a terminal to an Electron app?

Use node-pty in the main process to run the shell and xterm.js in the renderer to display it, connected over IPC through a preload script.

Is VS Code's terminal Electron?

Yes. VS Code is an Electron app and its integrated terminal uses xterm.js with node-pty.

Try Lumen

Free and open source, for Linux and macOS. Copy the command for your system and paste it into a terminal.

curl -fsSL https://lumenshell.dev/install | sh
brew install --cask lumenshell/tap/lumen