awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
chalk avatar

chalk/chalk

0
View on GitHub↗
23,262 stars·1,000 forks·JavaScript·MIT·41 views

Chalk

Chalk is a Node.js console formatter and terminal styling library used to add colors and text modifiers to command line output. It functions as a tool for formatting strings with foreground colors, background tints, and text styles using ANSI escape sequences.

The library includes a terminal color support detector that automatically determines the color depth and capabilities of the current environment. It features an ANSI color downsampler that converts RGB, Hex, or 256-color values to the nearest compatible format based on the detected terminal capabilities.

The project provides capabilities for terminal text formatting, including the creation of custom color themes and the validation of supported modifier and color names.

Features

  • Terminal Text Styling - Provides a comprehensive suite for adding colors and text modifiers to command line output.
  • Console Formatters - Provides a specialized utility for formatting Node.js console strings with colors and styles.
  • Terminal Escape Sequences - Provides the core mechanism for wrapping text in ANSI escape sequences to control terminal styling.
  • Terminal Color Schemes - Automatically determines the color depth and capabilities of the current terminal environment.
  • Terminal Environment Detection - Identifies terminal capabilities to ensure styles degrade gracefully across different environments.
  • Color Format Normalizers - Converts complex color values into standardized ANSI formats for terminal display.
  • ANSI Downsamplers - Converts Hex and RGB color values to the closest compatible ANSI format.
  • Terminal Color Formatting - Handles the conversion of various color formats into ANSI codes compatible with terminal emulators.
  • Capability Detection - Automatically detects terminal color depth to ensure compatible styling across different environments.
  • Color Themes - Allows the creation of reusable style presets by combining colors and modifiers into variables.
  • Fluent Style APIs - Implements a chainable, proxy-based API for intuitively applying multiple text styles.
  • Terminal User Interfaces - Enables the creation of visually structured terminal interfaces through consistent styling patterns.
  • CLI Frameworks - CLI string styling tool.
  • Command Line Interfaces - Library for styling terminal strings with colors.

Star history

Star history chart for chalk/chalkStar history chart for chalk/chalk

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Chalk

These projects share indexed features with Chalk. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • charmbracelet/lipglosscharmbracelet avatar

    charmbracelet/lipgloss

    10,591View on GitHub↗

    This project is a framework for composing terminal interfaces through declarative styling and a grid-based layout engine. It provides a comprehensive toolkit for building responsive command-line applications by managing ANSI escape sequences, color profiles, and text rendering to ensure consistent visual output across different terminal environments. The library distinguishes itself through its ability to automatically detect terminal capabilities and background themes, allowing it to adjust color schemes and downsample profiles for optimal readability. It utilizes a layered composition model

    Gocligogolang
    View on GitHub↗10,591
  • anomalyco/opentuianomalyco avatar

    anomalyco/opentui

    12,131View on GitHub↗

    Opentui is a terminal user interface framework for building interactive command line applications. It provides a component-based system featuring a flexbox layout engine, a virtual node component tree, and a low-level 2D cell array renderer. The project is distinguished by a sophisticated keyboard binding engine that maps complex multi-stroke sequences and chords to named commands using prioritized, reactive layers. It also implements a plugin architecture that allows external modules to inject custom UI components into designated layout slots and extend input logic at runtime. Its capabilit

    TypeScript
    View on GitHub↗12,131
  • crossterm-rs/crosstermcrossterm-rs avatar

    crossterm-rs/crossterm

    4,098View on GitHub↗

    Crossterm is a cross-platform Rust library for terminal manipulation, providing a low-level interface for controlling terminal state, cursor movement, and text styling. It acts as a cross-platform TTY interface that handles raw mode, alternate screen buffers, and terminal window metadata across different operating systems. The library includes an ANSI text styling engine for applying RGB colors and text attributes to console output, as well as a terminal input event handler for capturing keyboard presses, mouse movements, and terminal resize events in real time. It also provides system clipbo

    Rustcolorconsolecross-platform
    View on GitHub↗4,098
  • fatih/colorfatih avatar

    fatih/color

    7,883View on GitHub↗

    This is an ANSI terminal color library and console output manager used for applying colors and text attributes to command line interface output. It functions as a terminal text styler and RGB color formatter, generating the escape codes necessary for foreground and background styling. The project supports 24-bit high-color RGB mapping for precise color rendering in compatible terminal emulators. It enables the creation of colorized text fragments that can be embedded into larger blocks of text or applied as global styles that persist across subsequent output streams. The library covers broad

    Goansicolorcoloring
    View on GitHub↗7,883
Compare all 30 related projects→

Frequently asked questions

What does chalk/chalk do?

Chalk is a Node.js console formatter and terminal styling library used to add colors and text modifiers to command line output. It functions as a tool for formatting strings with foreground colors, background tints, and text styles using ANSI escape sequences.

What are the main features of chalk/chalk?

The main features of chalk/chalk are: Terminal Text Styling, Console Formatters, Terminal Escape Sequences, Terminal Color Schemes, Terminal Environment Detection, Color Format Normalizers, ANSI Downsamplers, Terminal Color Formatting.

Which projects share features with chalk/chalk?

Projects with overlapping indexed features include: charmbracelet/lipgloss — This project is a framework for composing terminal interfaces through declarative styling and a grid-based layout… anomalyco/opentui — Opentui is a terminal user interface framework for building interactive command line applications. It provides a… crossterm-rs/crossterm — Crossterm is a cross-platform Rust library for terminal manipulation, providing a low-level interface for controlling… fatih/color — This is an ANSI terminal color library and console output manager used for applying colors and text attributes to… symfony/console — Console is a PHP CLI framework used for building interactive terminal applications. It functions as a command line… gizak/termui — Termui is a Go terminal user interface library used for building interactive dashboards and visual layouts within a…