Lunatui

Moonlit terminal UIs in Rust

A Rust library for building terminal user interfaces.

Install with Cargo
$ cargo add lunatui

Speed Test

Measured frame time. Lower is faster.

Median time per frame · release build
80 × 2460 µs
200 × 60249 µs

Each result is the median of five runs of 240 frames. Timing covers widget paint, diffing, ANSI encoding, and a counting sink write; terminal rendering and model updates are outside the measurement. Method and full results

5 runsper screen size

Technical details

How Lunatui draws the night

Input & runtime

  • Keyboard, mouse, and bracketed-paste input
  • Focus management and hit testing
  • Event-driven frame scheduling with animation
Source: project overview

Widgets & themes

  • Calendar, BigText, and Sparkline widgets
  • Theme tokens and terminal color capabilities
  • Unicode grapheme and width handling
Source: widget crate

Performance method

  • Apple M5 Max · macOS arm64 · release build
  • 240 frames per run; median of five runs
  • Headless counting sink; no terminal latency included
Source: full report

Docs

Get started, customize, and build beautiful TUIs.

Read the documentation →

Independent systems / The maker

Moonbase2090

Moonbase2090 builds Lunatui. The source is available under the MIT License, copyright Moonbase 2090 LLC.

Visit Moonbase 2090 ↗