# onevcat/Rainbow

Delightful console output for Swift developers.

Repository: https://github.com/onevcat/Rainbow
Canonical: https://ross.abutalabs.com/products/onevcat-rainbow
Language: Swift
License: MIT
License Family: permissive
Topics: swift, console, log, output, ansi
Last push: 2026-08-10T11:28:56+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 38, longevity 100
- inputs: {"age_days": 3907, "days_push": 23, "days_rel": 257, "gap_med": 172.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1943, forks 111 (observed 2026-08-28T04:05:57.568107+00:00)

## What it is
Rainbow is a Swift library that adds text color, background color, and style to console and command line output via convenient String extensions. It supports ANSI escape codes across Apple platforms, Linux, and Windows, with SPM integration.

## Use cases
- colorize terminal output in a Swift CLI tool
- add colored log messages to a cross-platform Swift app
- print styled text with bold, underline, or blinking effects
- use 8-bit, 24-bit, hex, or HSL colors in console output
- build a command-line tool with readable colored status messages

## When to choose
- you are writing a Swift command-line or server-side tool and want easy ANSI color output
- you need cross-platform terminal styling on macOS, Linux, and Windows
- you prefer a lightweight String-extension API with SPM support

## When to avoid
- you need structured logging with levels, sinks, or file output rather than simple styling
- your target output is not a terminal (e.g., GUI apps or web)
- you are not working in Swift

## Facets
- artifact type: library
- maturity: stable
- function: logging, developer-tools, cli
- domain: developer-tools, cross-platform
- platform: windows
- tags: ansi-colors, console-output, string-extension, terminal, swift-package-manager, command-line, macos, linux, swift

## Member repositories
- onevcat/Rainbow (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:57.568107+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:02.540189+00:00, confidence not recorded.
  - readme: https://github.com/onevcat/Rainbow (fetched 2026-08-28T04:05:57.568107+00:00, sha 345d5df1f2e4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
