# c-bata/go-prompt

Building powerful interactive prompts in Go, inspired by python-prompt-toolkit.

Repository: https://github.com/c-bata/go-prompt
Canonical: https://ross.abutalabs.com/products/go-prompt
Homepage: https://godoc.org/github.com/c-bata/go-prompt
Language: Go
License: MIT
License Family: permissive
Topics: vt100, terminal, prompt, interactive, command-line, cli
Last push: 2025-08-12T09:07:32+00:00

## Health v2 (maintenance only)
Score: 48/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 36, release rhythm 35, longevity 100
- inputs: {"age_days": 3306, "days_push": 386, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5488, forks 374 (observed 2026-08-28T04:09:19.750521+00:00)

## What it is
A Go library for building powerful interactive command-line prompts, inspired by python-prompt-toolkit. It provides autocomplete, syntax highlighting, and key bindings for building cross-platform interactive CLI tools.

## Use cases
- build an interactive shell with autocomplete in Go
- add tab-completion to a CLI tool
- create a REPL for a domain-specific language
- build an interactive kubernetes or docker client
- prompt users with suggestions and descriptions in the terminal

## When to choose
- you are writing a Go CLI that needs an interactive prompt with completion
- you want python-prompt-toolkit-like behavior in Go
- you need cross-platform terminal input handling with VT100 support

## When to avoid
- you only need simple one-line input without completion
- you are building a GUI or web application
- you need a full TUI framework with windows and panels

## Facets
- artifact type: library
- maturity: maintenance
- function: cli, developer-tools
- domain: developer-tools
- platform: go, cross-platform, cli
- tags: interactive-prompt, autocomplete, terminal-ui, vt100, prompt-toolkit, command-line

## Member repositories
- c-bata/go-prompt (main) score 48

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:19.750521+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:56:21.960630+00:00, confidence not recorded.
  - readme: https://github.com/c-bata/go-prompt (fetched 2026-08-28T04:09:19.750521+00:00, sha a452d6cd732a)
  - homepage: https://godoc.org/github.com/c-bata/go-prompt (fetched 2026-08-29T08:51:39.226143+00:00, sha 6a019d033561)
  - site_page: https://pkg.go.dev/about (fetched 2026-08-29T08:51:39.239566+00:00, sha 757852027879)
  - site_page: https://go.dev/about (fetched 2026-08-29T08:51:39.241409+00:00, sha 8b6453863a90)
  - site_page: https://pkg.go.dev/github.com/c-bata/go-prompt (fetched 2026-08-29T08:51:39.236595+00:00, sha 8c10a4ed7e73)
  - site_page: https://go.dev/project (fetched 2026-08-29T08:51:39.243216+00:00, sha d5ca00bb378b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
