# chzyer/readline

Readline is a pure go(golang) implementation for GNU-Readline kind library

Repository: https://github.com/chzyer/readline
Canonical: https://ross.abutalabs.com/products/readline
Language: Go
License: MIT
License Family: permissive
Topics: readline-library, readline, golang, go
Last push: 2025-06-20T03:33:30+00:00

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

## Adoption (not part of the score)
Stars 2308, forks 304 (observed 2026-08-28T04:06:35.938858+00:00)

## What it is
A pure Go implementation of a GNU-Readline-style library providing line editing for interactive command-line programs. It supports keyboard shortcuts, history persistence, tab completion, and custom prompts across platforms.

## Use cases
- add readline-style line editing to a Go CLI
- implement tab completion in an interactive shell written in Go
- persist command history in a REPL
- build an interactive prompt with keyboard shortcuts
- replace cgo readline dependency with pure Go

## When to choose
- you need readline-like input editing in a Go program without cgo
- you want cross-platform line editing, history, and completion out of the box

## When to avoid
- you need a full-featured shell framework rather than a line-editing library
- your project is not written in Go

## Facets
- artifact type: library
- maturity: stable
- function: cli, developer-tools, terminal-ui
- domain: developer-tools
- platform: go, cross-platform, cli
- tags: readline, line-editing, interactive-terminal, history, tab-completion, command-line

## Member repositories
- chzyer/readline (main) score 35

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:35.938858+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-30T02:39:36.533349+00:00, confidence not recorded.
  - readme: https://github.com/chzyer/readline (fetched 2026-08-28T04:06:35.938858+00:00, sha 032c231e6bc8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
