# Chalk

> Terminal string styling for Node.js: colours, backgrounds and text styles

Source: https://talira.ai/catalog/chalk-pf0cyh21
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / terminal ui](https://talira.ai/categories/libraries/terminal-ui), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Licence: MIT[^2]
- Pricing: Free and open source[^2]
- Pricing notes: Free and open source.
- Free tier: yes[^2]
- API: yes[^1]
- Supports: [FORCE_COLOR](https://talira.ai/standards/force-color.md)[^3]
- Backed by: [Sindre Sorhus](https://talira.ai/orgs/sindresorhus.md)

Chalk styles strings for the terminal in Node.js with a chainable API: colours, background colours and modifiers such as bold and underline, nested as deep as needed. It auto-detects the terminal's colour support, supports 256 colours and Truecolor, has no dependencies and doesn't extend String.prototype.

## Links

- GitHub: https://github.com/chalk/chalk

## Problems it solves

- Print coloured and bold text to the terminal from my Node.js CLI
- Style console output in Node and fall back when the terminal has no colour support
- Highlight errors in red and successes in green in my JavaScript command-line tool output

## Features

- Chainable and nestable styles
- 256-colour and Truecolor support
- Auto-detects colour support
- No dependencies

## Limitations

- Chalk 5 and later are ESM only; CommonJS projects stay on Chalk 4[^1]

## Capabilities

- Has an API: plan not known

## Trust

Overall: 0.55 out of 1.
Signals: maintenance 0.48, adoption 0.87, momentum 0.65, community 0.73, backing 0.30, extensibility 0.20.

- last commit 38 days ago
- 4 commits in the last 90 days
- latest release v6.0.1 2 months ago
- 23.3k GitHub stars
- 67 contributors
- accepts sponsorship (Github, Github, Open Collective)
- backed by Sindre Sorhus

## Alternatives

- [colors.js](https://talira.ai/catalog/colors-js-e1vy93vd.md): Colours and styles for Node.js console output (npm package colors)
- [strip-ansi](https://talira.ai/catalog/strip-ansi-rvjxg9c5.md): Strip ANSI escape codes from a string
- [Ink](https://talira.ai/catalog/ink-zhdj57js.md): React for interactive command-line apps

## Sources

[^1]: https://github.com/chalk/chalk (checked 26 Nov 2026)
[^2]: https://github.com/chalk/chalk/blob/main/license (checked 26 Nov 2026)
[^3]: https://github.com/chalk/chalk/blob/main/readme.md (checked 29 Nov 2026)
