Tears is a Rust framework for building terminal user interface (TUI) applications using The Elm Architecture (TEA). Built on Ratatui, it offers a type-safe and functional approach to managing application state, messages, updates, views, and side effects.
The framework takes an async-first approach with commands and subscriptions for handling terminal events, timers, operating system signals, and custom event sources. Optional features add WebSocket communication and HTTP querying and mutation.
This is free and open source software.
Key Features
- Uses The Elm Architecture for predictable application structure and state management.
- Async-first design with commands for performing side effects.
- Subscriptions handle terminal events, timers, signals, and custom event sources.
- Pure update logic makes applications straightforward to test.
- Built on Ratatui and provides access to its widget ecosystem.
- Leverages Rust’s type system for safer TUI development.
- Optional WebSocket support for real-time bidirectional communication.
- Optional HTTP support with querying, mutations, caching, and invalidation.
Website: github.com/akiomik/tears
Support:
Developer: Akiomi Kamakura
License: Apache License 2.0
Tears is written in Rust. Learn Rust with our recommended free books and free tutorials.
Related Software
| Rust TUI Frameworks | |
|---|---|
| Ratatui | Simple and flexible way to create text-based user interfaces in the terminal |
| Crossterm | Terminal manipulation library |
| iocraft | Craft CLIs, TUIs, and text-based IO |
| tui-realm | Component-driven Rust toolkit built around an Elm-style architecture |
| Zaz | Terminal manipulation library |
| tui-input | Library supporting multiple backends |
| AppCUI-rs | Fast cross-platform Rust library for rich terminal applications |
| R3BL TUI | Async Rust workspace for responsive, interactive terminal applications |
| Revue | Vue-inspired toolkit for building reactive terminal interfaces |
| Tears | Declarative Rust library for composing polished terminal interfaces |
| Reratui | Modern reactive Rust library for dynamic terminal applications |
Read our verdict in the software roundup.
Explore our carefully curated directory of recommended free and open source software, covering every major software category.The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more. Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form. |


Please read our Comment Policy before commenting.