lukeed/kleur
The fastest Node.js library for formatting terminal text with ANSI colors~! observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2976
- days_rel: n/a
- days_push: 1183
- n_releases_24m: 0
Adoption not part of the score
1696 stars · 52 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
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
library · maturity stable
cli developer-tools developer-tools cli ansi-colors terminal-text zero-dependency treeshakable command-line nodejs
2 sources
- readme: https://github.com/lukeed/kleur · fetched 2026-08-28 · 6301c9aa980b
- registry_npm: https://registry.npmjs.org/kleur · fetched 2026-08-29 · fb7183ae533e
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| lukeed/kleur | main | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem