YOU ARE VIEWING ONE ITEM FROM THE AICRIER FEED

Vercel Labs launches tui for native terminal apps

AICrier tracks AI developer news across Product Hunt, GitHub, Hacker News, YouTube, X, arXiv, and more. This page keeps the article you opened front and center while giving you a path into the live feed.

// WHAT AICRIER DOES

7+

TRACKED FEEDS

24/7

SCRAPED FEED

Short summaries, external links, screenshots, relevance scoring, tags, and featured picks for AI builders.

Vercel Labs launches tui for native terminal apps
OPEN LINK ↗
// 2h agoOPENSOURCE RELEASE

Vercel Labs launches tui for native terminal apps

Vercel Labs open-sourced tui, a zero-dependency TypeScript library for immediate-mode terminal UIs that runs on Node.js 24+ and compiles via scriptc into ~2 MB native binaries starting in under 2 ms. Designed for both humans and AI agents, a single line exposes any running app as an MCP server with structured snapshots, component actions, and permission hooks.

// ANALYSIS

TypeScript terminal UIs have long forced an awkward choice between Ink's heavy Node.js runtime and rewriting in Rust or Go, and tui makes a compelling case that compiling TypeScript natively with scriptc can close that gap. Even more interesting than the raw speed is its MCP-first architecture, which turns interactive CLI tools into structured, controllable interfaces for coding agents instead of brittle PTY scraping.

  • –Immediate-mode ergonomics with native performance: Apps run directly on Node.js 24+ during development and compile via scriptc into standalone ~1.7–2.2 MB binaries, hitting ~1.7 ms start-to-first-frame and ~3.6 MB peak memory in Vercel's Apple Silicon benchmarks versus 94 ms and 101 MB on Node.js 24.
  • –One-line MCP integration for agents: Passing agentServer from tui/agent exposes a local-socket MCP server with snapshot and act tools, letting agents read live component trees and trigger named actions while developers enforce guardrails via allow callbacks and secret/hidden visibility flags.
  • –Batteries-included primitives and headless testing: Apache-2.0 licensed with zero runtime dependencies, tui ships core widgets (Table, Listbox, Tabs, Dialog, Input, Textarea, Markdown), inline prompts, shaders, charts, springs, Unicode 17 width handling, and createTestApp for terminal-free automated verification.
  • –Crowding the post-Ink TypeScript TUI space: Unlike OpenTUI's Bun/Zig engine or Ink's React-plus-Yoga reconciler, tui pairs a pure view(frame) loop with Vercel Labs' own scriptc compiler—delivering a tiny distribution footprint at the cost of tying native builds to a young toolchain.
  • –Early experimental caveats: Both tui (v0.2.0) and scriptc are explicitly marked Vercel Labs experiments with API changes expected before 1.0, and compiling native executables requires clang and a linker on the build machine.
// TAGS
tuiscriptcclidevtoolframeworkmcpagentopen-source

DISCOVERED

2h ago

2026-12-05

PUBLISHED

2h ago

2026-12-05

RELEVANCE

7/ 10

AUTHOR

ctatedev