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

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/runtimeAPI 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 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/viteprovides 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/testingto render components, send terminal input, and inspect frames.
Flappy Bird — one of the examples included in the repo
Quick Start
Choose the method that matches your application.
Packages
| Package | Description |
|---|---|
@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/vite | vueTui() 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
| Example | Description |
|---|---|
basic-template | Vue SFC with <template> syntax |
basic-jsx | Same app in TSX |
coding-agent | AI coding agent with LLM streaming and interactive UI |
flappy-bird | Physics-based terminal game with reactive state and borders |
scroll-box | Bounded 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.