vue-tui

The Vue framework for terminal UIs. SFC & JSX, Yoga flexbox, HMR, and testing out of the box.

Automatically checked · GitHub checked 2026-11-29

vue-tui

Good fit for

Suits developers building interactive terminal interfaces with Vue components, TypeScript or JSX, terminal-specific input handling, and frame-based component testing.

Before you switch

The project uses the MIT license and TypeScript, but the repository was created recently and its shown activity and issue counts are limited. It also has specific root and layout constraints: fragment and text roots trigger a warning and do not work with v-show, while Static cannot be used with Fullscreen.

Overview

vue-tui

Public beta — the @vue-tui/runtime API is stabilizing toward 1.0; dev-mode HMR is still experimental. Bug reports welcome.

vue-tui is a Vue-native application framework for interactive terminal UIs. Build with components, develop with HMR, test with confidence.

@vue-tui/runtime npm version @vue-tui/use npm version @vue-tui/components npm version @vue-tui/vite npm version @vue-tui/testing npm version

  • Vue SFC and JSX: Write terminal interfaces with <template>, TSX, or both.
  • Flexbox layout: Yoga provides the same layout engine that React Native uses.
  • Development tools: @vue-tui/vite provides hot module replacement (HMR) in the terminal.
  • Input and focus: Vue composables handle text, paste, and key events, plus focus state.
  • Testing: Use @vue-tui/testing to render components, send terminal input, and inspect frames.

Flappy Bird — one of the examples included in the repo

Flappy Bird built with vue-tui

Quick Start

Choose the method that matches your application.

Packages

PackageDescription
@vue-tui/runtime@vue-tui/runtime is a Vue 3 renderer for terminal applications. It provides core components, layout, input, focus, and lifecycle APIs. Its API is stabilizing.
@vue-tui/use@vue-tui/use provides composables and components that use only public Runtime APIs.
@vue-tui/vitevueTui() provides terminal HMR and default Vite settings for a standalone Node bundle. Embedded applications use their existing build without this plugin. This package is experimental.
@vue-tui/testing@vue-tui/testing provides a deterministic host for component tests. Tests can inspect renderer frames or the emulated terminal screen.
@vue-tui/components@vue-tui/components provides <ScrollBox>, <Spinner>, <Table>, <Newline>, and <Spacer>.

Examples

ExampleDescription
basic-templateVue SFC with <template> syntax
basic-jsxSame app in TSX
coding-agentAI coding agent with LLM streaming and interactive UI
flappy-birdPhysics-based terminal game with reactive state and borders
scroll-boxBounded viewport with app-controlled scrolling

@vue-tui/runtime

The core renderer: the terminal primitives and the composables that read renderer-owned facts. Package guide.

Composables

Each one must be called inside a mounted render tree.

Read the full README ↗