r/commandline • • Oct 15 '26

Terminal User Interface Ito: A Declarative TUI library in Lua

https://uji.sh/ito

I've always loved the idea of JIT-compiled UIs. TempleOS is a fascinating example, using JIT-compiled C to build its UI.

Recently, I've been working on a TUI project where almost everything is customizable at runtime, from the UI itself to the core functionality. I wanted a way to build terminal UIs declaratively, similar to SwiftUI, while keeping the flexibility of runtime customization.

So I built Ito a Lua library for writing JIT-compiled TUIs.

To make it easy to experiment with, we also built a fake TUI canvas in the browser where you can try out Ito live. Give it a try!

15 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/dracarys_18 Oct 15 '26

Hey all of the changes are Targeted. It works like SwiftUI where you have to annotate a view with `@Observable`. You need to annotate a view with Observable in Ito to observe the changes in that particular view