# lukeed/kleur

The fastest Node.js library for formatting terminal text with ANSI colors~!

Repository: https://github.com/lukeed/kleur
Canonical: https://ross.abutalabs.com/products/kleur
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2023-06-07T07:24:18+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2976, "days_push": 1183, "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 1696, forks 52 (observed 2026-08-28T04:05:23.937326+00:00)

## What it is
Kleur is a tiny, dependency-free Node.js library for formatting terminal text with ANSI colors and styles. It supports chained and nested color methods, conditional color detection, and is fully treeshakable.

## Use cases
- colorize CLI output in Node.js
- add ANSI colors to terminal logs
- format console messages with bold, underline, and background colors
- style terminal text without heavy dependencies
- conditionally disable colors in non-TTY output
- build colorful command-line tool output

## When to choose
- you need the smallest, fastest ANSI color library for Node.js
- you want zero dependencies and treeshakable imports
- you need chained/nested color styling similar to Chalk's API
- bundle size and load time matter for your CLI

## When to avoid
- you need browser/DOM text styling rather than terminal output
- you need 256-color or truecolor support beyond basic ANSI styles
- you want a plugin ecosystem or extensive color-detection features like Chalk

## Facets
- artifact type: library
- maturity: stable
- function: cli, developer-tools
- domain: developer-tools
- platform: cli
- tags: ansi-colors, terminal-text, zero-dependency, treeshakable, command-line, nodejs

## Member repositories
- lukeed/kleur (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:23.937326+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:37:54.419995+00:00, confidence not recorded.
  - readme: https://github.com/lukeed/kleur (fetched 2026-08-28T04:05:23.937326+00:00, sha 6301c9aa980b)
  - registry_npm: https://registry.npmjs.org/kleur (fetched 2026-08-29T11:12:58.762167+00:00, sha fb7183ae533e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
