# k0kubun/pp

Colored pretty printer for Go language

Repository: https://github.com/k0kubun/pp
Canonical: https://ross.abutalabs.com/products/pp
Homepage: https://pkg.go.dev/github.com/k0kubun/pp/v3
Language: Go
License: MIT
License Family: permissive
Topics: go, pretty-printer
Last push: 2026-08-01T23:33:20+00:00

## Health v2 (maintenance only)
Score: 78/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 43, longevity 100
- inputs: {"age_days": 4293, "days_push": 32, "days_rel": 222, "gap_med": 99.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2052, forks 109 (observed 2026-08-28T04:06:09.656271+00:00)

## What it is
A Go library that provides a colored pretty printer for Go data structures, with fmt-like API functions such as Print, Println, Sprint, and Fprintf. It supports customizable color schemes, per-instance configuration, and works on Windows.

## Use cases
- pretty print Go data structures for debugging
- print maps and structs with colors in the terminal
- replace fmt.Println with a more readable debug printer
- customize syntax highlighting colors for printed output
- print only exported fields or omit empty fields

## When to avoid
- you need structured machine-readable output like JSON rather than human-readable terminal output
- you need a general-purpose logging framework with levels and sinks

## Facets
- artifact type: library
- maturity: stable
- function: developer-tools, logging
- domain: developer-tools
- platform: go, cross-platform
- tags: pretty-printer, debugging, syntax-highlighting, colored-output, command-line

## Member repositories
- k0kubun/pp (main) score 78

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:09.656271+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:57:26.199147+00:00, confidence not recorded.
  - readme: https://github.com/k0kubun/pp (fetched 2026-08-28T04:06:09.656271+00:00, sha a8739523c586)
  - homepage: https://pkg.go.dev/github.com/k0kubun/pp/v3 (fetched 2026-08-29T10:37:40.413725+00:00, sha 88d114316e34)
  - site_page: https://pkg.go.dev/about (fetched 2026-08-29T10:37:40.416654+00:00, sha 757852027879)
  - site_page: https://go.dev/project (fetched 2026-08-29T10:37:40.418722+00:00, sha d5ca00bb378b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
