OpenTUI is a library for building terminal user interfaces with a native core written in Zig and TypeScript bindings.
The library addresses the need for high-performance, reliable terminal UI development by providing a component-based architecture with flexible layout capabilities. Its approach combines a native Zig core that exposes a C ABI for language interoperability with TypeScript bindings for JavaScript developers. The core emphasizes correctness, stability, and performance, and the project includes reconcilers for popular frameworks like React and SolidJS, allowing developers to use familiar declarative patterns when building terminal applications.
Developers should choose this tool if they need a production-grade terminal UI framework with strong performance characteristics and the flexibility to work in TypeScript or other languages via the C ABI. The project suits complex terminal applications that benefit from a component model and sophisticated layout system. The monorepo structure provides specialized packages for different use cases, including SSH serving capabilities for remote terminal applications and QR code rendering. Building the packages requires Zig to be installed on the system.
The project maintains a substantial base of adopters who report issues from real-world use rather than the core team generating most open issues. Maintainers typically respond to new issues and pull requests within a day. Work in the issue tracker centers on core functionality, bug fixes, and feature development.