Profile
Back to NewsBack
Hacker News 1 min
Reader Mode
Show HN: Ito – Build Terminal UIs in Lua

Show HN: Ito – Build Terminal UIs in Lua

15 hours ago

ITO / AN INTERACTIVE WORKSHOP

Make something with Lua.

Build your own terminal UI.

Your earlier drafts are still available.

Start here
main.lua
Something needs a look.
Preview
Getting your workspace ready…
A few things to try+

The same Lua

Start with require("ito") and return a function that builds a view. Use ito.state(value) for values that change.

Compose with VStack, HStack, Text, and the controls in ito.md.

Views and modifiers

Use :spacing(1), :padding(2), :grow(), :bold(), and :dim() to arrange and style your views.

Try your changes

Your preview updates as you edit. If an edit has an error, the last working preview stays visible.

Try Input flow for keyboard navigation, editing, and cancellation. Use the expand icon for fullscreen. Open ito.md for a guide you can give your LLM.

Chat with me