ink-web-ui

Introduction

Introduction to ink-web-ui

ink-web-ui is a component library built on top of ink-web.

Ink is a widely adopted React framework for building interactive command-line interfaces. ink-web extends Ink so your components run in both the terminal and the browser. In the browser, it renders inside a real xterm.js terminal emulator. Your existing Ink code works without modification: the same React components, the same keyboard handling, the same layout engine (Yoga, compiled to WebAssembly). Write once, run in both environments. No containerized Node.js runtime required, just a lightweight drop-in with full ANSI color support, responsive resizing, and proper terminal behavior.

ink-web-ui provides a growing set of pre-built components on top of this foundation, so you can assemble interactive terminal experiences for the web without writing everything from scratch.