talira

Bubble Tea

A Go framework for building terminal apps, based on The Elm Architecture

open sourceMITfree

Bubble Tea is Charm's Go framework for building terminal user interfaces, based on The Elm Architecture: a model, an update function that handles messages, and a view. It suits simple and complex terminal apps, inline, full-window or a mix of both, and has a high-performance cell-based renderer, colour downsampling, declarative views, keyboard and mouse handling and native clipboard support. Charm's Bubbles (ready-made components) and Lip Gloss (styling) are commonly used with it.

Problems it solves

  • build an interactive terminal UI in Go
  • make a full-screen TUI app with keyboard and mouse input in Go
  • structure a terminal app's state with an Elm-style update loop

Features

  • The Elm Architecture: model, update, view
  • inline, full-window or mixed apps
  • cell-based renderer
  • colour downsampling
  • keyboard and mouse handling
  • native clipboard support

Alternatives

The same job

These do what Bubble Tea does.

  1. Ink React for interactive command-line apps
  2. Ratatui A Rust library for building fast, lightweight, rich terminal user interfaces
  3. Textual Build cross-platform user interfaces with a simple Python API, in the terminal or a web browser

Compare Bubble Tea with the top 3