bubbletea
Installation
SKILL.md
Bubble Tea TUI (Go)
Bubble Tea is a Go framework for building terminal user interfaces based on The Elm Architecture: immutable Model, pure Update function that returns a new model and a Cmd, and a pure View function that renders a string. Async work (HTTP, timers, I/O) is dispatched as tea.Cmd values that return tea.Msg values, which are delivered back to Update.
github.com/charmbracelet/bubbletea- core runtime (v1 stable; use/v2for v2)github.com/charmbracelet/bubbles- ready-made components (spinner, textinput, list, table, viewport, progress, paginator, help, key, textarea, stopwatch, timer, filepicker)github.com/charmbracelet/lipgloss- styling (colors, borders, padding, layout)
This skill targets the v1 API on github.com/charmbracelet/bubbletea because that is still the most widely deployed module path. A short migration note at the end covers v2 (github.com/charmbracelet/bubbletea/v2).
1. Minimal program
package main
import (
"fmt"
"os"