# muesli/termenv

Advanced ANSI style & color support for your terminal applications

Repository: https://github.com/muesli/termenv
Canonical: https://ross.abutalabs.com/products/termenv
Language: Go
License: MIT
License Family: permissive
Topics: ansi, colors, tui, styling, golang, terminal, console
Last push: 2025-11-21T08:05:07+00:00

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

## Adoption (not part of the score)
Stars 2020, forks 93 (observed 2026-08-28T04:06:06.322376+00:00)

## What it is
A Go library providing advanced ANSI styling and color support for terminal applications. It detects terminal color capabilities and theme, then converts and applies colors safely without manual escape-sequence handling.

## Use cases
- colorize terminal output in Go
- detect terminal color support
- truecolor RGB output in CLI apps
- detect light or dark terminal theme
- style CLI output with nested ANSI styles
- respect NO_COLOR environment variable

## When to choose
- building Go CLI or TUI apps that need portable colored output
- you need automatic color profile detection and degradation
- you want terminal theme (light/dark) awareness

## When to avoid
- you need full TUI widgets rather than styling primitives
- your project is not in Go
- you only need simple static color codes without capability detection

## Facets
- artifact type: library
- maturity: active
- function: cli, developer-tools, terminal-ui
- domain: developer-tools, cross-platform
- platform: go, cli, cross-platform
- tags: ansi, colors, styling, tui, truecolor, terminal-capability-detection, command-line

## Member repositories
- muesli/termenv (main) score 47

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:06.322376+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:00:17.105599+00:00, confidence not recorded.
  - readme: https://github.com/muesli/termenv (fetched 2026-08-28T04:06:06.322376+00:00, sha 03322e682ba4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
