# charmbracelet/fang

The CLI starter kit

Repository: https://github.com/charmbracelet/fang
Canonical: https://ross.abutalabs.com/products/fang
Language: Go
License: MIT
License Family: permissive
Last push: 2026-05-04T12:11:18+00:00

## Health v2 (maintenance only)
Score: 71/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 80, release rhythm 74, longevity 46
- inputs: {"age_days": 649, "days_push": 121, "days_rel": 175, "gap_med": 9, "n_releases_24m": 10}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1942, forks 45 (observed 2026-08-28T04:05:57.462777+00:00)

## What it is
Fang is a Go library that wraps Cobra CLI applications with batteries-included styling and features. It provides styled help and error output, automatic version flags, shell completions, and manpage generation with minimal setup.

## Use cases
- add styled help output to my cobra cli
- generate shell completions for a go command-line tool
- auto-generate manpages for my cli app
- add a --version flag to my go cli
- make cli error messages look nicer
- theme my command-line tool's help pages

## When to avoid
- you don't use Cobra for your CLI
- you need fine-grained control over help rendering or a non-Cobra framework

## Facets
- artifact type: library
- maturity: experimental
- function: cli, developer-tools, templating, documentation
- domain: developer-tools
- platform: go, cross-platform, cli
- tags: cobra, shell-completions, manpages, theming, cli-styling, command-line

## Member repositories
- charmbracelet/fang (main) score 71

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:57.462777+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-30T03:08:03.721259+00:00, confidence not recorded.
  - readme: https://github.com/charmbracelet/fang (fetched 2026-08-28T04:05:57.462777+00:00, sha b747ba30f4f7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
