git404hub

what is gocui fr?

jroimartin/gocui — explained in plain English

Analysis updated 2026-06-24

10,558GoAudience · developerComplexity · 2/5Setup · easy

tl;dr

Gocui is a minimal Go library for building text-based interfaces that run inside a terminal, letting you create panels, input areas, and keyboard shortcuts in a terminal app the way tools like htop or vim do.

vibe map

mindmap
  root((gocui))
    What it does
      Terminal UI
      Text-based panels
      Keyboard bindings
    Features
      View overlapping
      Mouse support
      Colored text
    Use Cases
      CLI dashboards
      Input forms
      Dev tools
    Setup
      go get command
      Go package docs

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Build a terminal dashboard with multiple panels that display live data using familiar Go reader and writer patterns

VIBE 2

Add a structured terminal UI to a Go CLI tool so users can navigate views with keyboard shortcuts

VIBE 3

Create a text-based app with overlapping panels, mouse support, and colored text that runs anywhere in the terminal

what's the stack?

Go

how it stacks up fr

jroimartin/gocuikubernetes/komposetylertreat/comcast
Stars10,55810,52410,509
LanguageGoGoGo
Setup difficultyeasyeasyeasy
Complexity2/52/52/5
Audiencedeveloperops devopsdeveloper

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · easy time til it works · 30min

in plain english

Gocui is a Go library for building text-based user interfaces that run inside a terminal window. Instead of building a graphical desktop application, you use gocui to create panels, input areas, and layouts that display as text in a terminal, similar to tools like htop or vim that have their own visual layout inside the command line. The library is designed to be minimal. You define views, which are the individual rectangular panes that make up your interface, and each view works like a standard Go reader and writer, so you can send text to it and read input from it using familiar patterns. Views can overlap each other, the layout can be changed while the program is running, and the library handles concurrent updates safely. Other features listed in the README include mouse support, colored text, keyboard bindings that can apply either to the whole application or to a specific view, and an edition mode that can be customized. The library includes example programs in its repository showing common patterns, and full documentation is available on the Go package documentation website. Installation is a single go get command, as it follows the standard Go package workflow. The README includes a short working example that creates a GUI with one view displaying "Hello world" and a Ctrl+C keybinding to quit. Gocui is aimed at Go developers who want to add a structured terminal interface to their programs without pulling in a large dependency. The README is brief, and the project does not describe any limitations or known issues beyond what is implied by the feature list.

prompts (copy fr)

prompt 1
Show me how to build a terminal UI with gocui that has two side-by-side panels, one for a list of items and one for a detail view.
prompt 2
Write a gocui app in Go that has an input box at the bottom and a scrollable output panel above it, with Enter to submit text.
prompt 3
How do I add mouse click support and per-view keyboard bindings to a gocui terminal application?
prompt 4
Create a gocui dashboard that reads from a Go channel and updates a panel with new lines as they arrive without blocking the main thread.

Frequently asked questions

what is gocui fr?

Gocui is a minimal Go library for building text-based interfaces that run inside a terminal, letting you create panels, input areas, and keyboard shortcuts in a terminal app the way tools like htop or vim do.

What language is gocui written in?

Mainly Go. The stack also includes Go.

How hard is gocui to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is gocui for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.