Go-TUI
A framework for building declarative terminal UIs in Go
Details
- External ID
- 47278869
- Source
- HN
- Company
- —
- Product
- Go-TUI
- Website domain
- go-tui.dev
- Launched
- March 6, 2026
- Cohort
- —
- Upvotes
- 7
- Upvotes percentile
- 0.4108241082410824
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:26 p.m.
- Updated at
- Sept. 7, 2026, 9:26 p.m.
Description
I've been building go-tui (https://go-tui.dev), a terminal UI framework for Go inspired by the templ framework for the web (https://templ.guide/). The syntax should be familiar to templ users and is quite different from other terminal frameworks like bubbletea. Instead of imperative widget manipulation or bubbletea's elm architecture, you write HTML-like syntax and Tailwind-style classes that can intermingle with regular Go code in a new .gsx filetype. Then you compile these files to type-safe Go using `tui generate`. At runtime there's a flexbox layout engine based on yoga that handles positioning and a double-buffered renderer that diffs output to minimize terminal writes.Here are some other features in the framework:- It supports reactive state with State[T]. You change a value and the framework redraws for you. You can also forego reactivity and simply use pure components if you would like.- You can render out a single frame to the terminal scrollback if you don't care about UIs and just want to place a box, table, or other styled component into your stdout. It's super handy and avoids the headache of dealing with the ansi escape sequences directly.- It supports an inline mode that lets you embed an interactive widget in your shell session instead of taking over the full screen. With it you can build things like custom streaming chat interfaces directly in the terminal.- I built full editor support for the new filetype. I published a VS Code and Open-VSX extension with completion, hover, and go-to-definition. Just search for "go-tui" in the marketplace to find them. The repo also includes a tree-sitter grammar for Neovim/Helix, and an LSP that proxies Go features through gopls so the files are easy to work with.There are roughly 20 examples in the repo covering everything from basic components to a dashboard with live metrics and sparklines. I also built an example wrapper for claude code if you wanted to build your own AI chat interface.Docs & guides: https://go-tui.devRepo: https://github.com/grindlemire/go-tuiI'd love feedback on the project!
Enrichment
- Theme
- coding agents and developer utilities
- Vertical
- Horizontal
- Function
- Dev tools
- Audience
- Developer
- AI stance
- Not AI
- Project type
- Hobby / open-source project
- Normalized one-liner
- declarative terminal ui framework for go
- Manually corrected
- False
Could you build this?
Yes Go-TUI is a terminal UI library with a template preprocessor and flexbox layout engine that can be built in Go using terminal escape sequences and standard TUI paradigms.
Discussion
1 comment analyzed.
Competitors
Other products that read as similar to this one — 83 launches clear the similarity bar, closest 8 shown.
Attention rank: #54 of 84 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 123 days after the earliest competitor.
- Giggles · hn · 2026-03-03 · 23 upvotes · similarity 0.56
- Nocterm · hn · 2026-02-04 · 5 upvotes · similarity 0.56
- Gottp · hn · 2026-02-11 · 5 upvotes · similarity 0.55
- Limoni TUI Engine · ph · 2026-09-14 · 2 upvotes · similarity 0.51
- Gotui · hn · 2025-12-11 · 49 upvotes · similarity 0.49
- A stateful UI runtime for reactive web apps in Go · hn · 2026-04-14 · 14 upvotes · similarity 0.46
- PNANA · hn · 2026-01-28 · 11 upvotes · similarity 0.44
- TUI for managing XDG default applications · hn · 2026-01-25 · 138 upvotes · similarity 0.44
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a dev tools tool for Sales yet.