go-tui is a declarative terminal UI framework for Go.
It lets developers define terminal interfaces in .gsx templates using HTML-like syntax and Tailwind-style classes. The compiler generates type-safe Go source, while the runtime handles flexbox layout, reactive state, and rendering.
This is free and open source software.
Key Features
- Declarative .gsx templates for terminal interfaces
- HTML-like elements with Tailwind-style utility classes
- Compiles templates to type-safe Go source
- Pure Go flexbox layout engine without CGO
- Reactive state with automatic re-rendering
- Keyboard and mouse event handling
- Modal dialogs, focus management, refs, and watchers
- Double-buffered renderer with diff-based updates
- Inline mode for embedding widgets in shell sessions
- Language server, formatter, and editor support
Website: github.com/grindlemire/go-tui
Support:
Developer: grindlemire
License: MIT License
go-tui is written in Go. Learn Go with our recommended free books and free tutorials.
Related Software
| Go TUI Frameworks | |
|---|---|
| termui | Golang terminal dashboard |
| Bubble Tea | Fun, functional and stateful way to build terminal apps |
| tview | Terminal UI library with rich, interactive widgets |
| gocui | Minimalist Go package aimed at creating Console User Interfaces. |
| Tcell | Low-level Go package for portable terminal screen handling and input |
| PTerm | Go library for styled output, progress displays, and interactive prompts |
| Huh? | Go library for elegant, accessible interactive forms and prompts |
| Cobra | Library for creating powerful modern CLI applications |
| Bubbles | Reusable components for composing polished Bubble Tea applications |
| go-tui | Declarative toolkit for building interactive terminal applications |
| cview | Terminal-based user interface toolkit (fork of tview) |
| gotui | Modern Go library for creating rich interactive terminal interfaces |
| Phoenix | High-performance toolkit for building responsive terminal interfaces |
| Lip Gloss | Style definitions for nice terminal layouts |
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.