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

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

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectAboutHow we rankPressMCP server
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
Marak avatar

Marak/colors.js

0
View on GitHub↗
5,171 stars·444 forks·JavaScript·4 views https://github.com/Marak/colors.js↗

Colors.js

colors.js is a Node.js terminal color library and console text styling tool. It serves as an ANSI escape code wrapper, providing a high-level API to apply foreground and background colors, styles, and decorative patterns to console output.

The library includes a terminal output formatter capable of creating specialized visual effects, such as rainbow and zebra patterns. It employs a mechanism to automatically detect terminal color support or allow for manual overrides of visual styling.

The tool covers a broad range of text formatting, including text emphasis attributes like bold, italic, underline, and strikethrough. These capabilities are used for terminal output styling and console log visualization to organize information within command line interfaces.

Features

  • Terminal Text Coloring - Provides a comprehensive utility for applying colors and styles to terminal text to improve readability.
  • Output Style Customization - Offers general controls for managing colors and formatting styles of console output.
  • ANSI Sequence Generators - Provides a mechanism to generate formatted ANSI escape strings for controlling terminal text attributes and colors.
  • Node.js Color Libraries - A comprehensive library for adding colors, styles, and decorative patterns to Node.js console output.
  • Node.js Terminal Styling - Provides a dedicated API for managing ANSI escape codes within a Node.js environment.
  • Foreground and Background Colors - Enables changing both foreground and background colors using standard and bright color palettes.
  • Text Emphasis Styles - Supports text emphasis attributes including bold, italic, underline, and strikethrough.
  • Text Styling Utilities - Provides tools for applying visual effects like bold, italic, and colors to text elements.
  • Text Color Patterns - Calculates mathematical color offsets to create visual effects like rainbow and zebra-striped text.
  • Console Log Styling - Allows visual categorization of system logs and errors through color indices and formatting.
  • Terminal Environment Detection - Implements automatic detection of terminal capabilities and supported color standards via environment variables.
  • Command Line Interface Design - Provides the styling primitives necessary for designing visually distinct terminal user interfaces.
  • Decorative Text Effects - Creates specialized visual text effects, including rainbow and zebra patterns.
  • Terminal Output Formatters - Processes and displays data with terminal-aware formatting, including specialized visual effects.
  • CLI Frameworks - Console color styling.

Star history

Star history chart for marak/colors.jsStar history chart for marak/colors.js

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

Open-source alternatives to Colors.js

Similar open-source projects, ranked by how many features they share with Colors.js.
  • 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
  • pterm/ptermpterm avatar

    pterm/pterm

    5,470View on GitHub↗

    pterm is a Go terminal UI library used to build rich command-line interfaces. It provides toolsets for terminal data visualization, operation progress tracking, interactive user input, and structured logging. The library distinguishes itself through a comprehensive set of visual tools, including a framework for interactive terminal prompts such as selection menus and confirmation dialogs, and a specialized system for rendering bar charts, heatmaps, and tree structures. It also includes a structured terminal logger capable of producing leveled, colorful system messages. The project covers bro

    Goanimationansi-colorsbeautify
    View on GitHub↗5,470
  • arthursonzogni/ftxuiArthurSonzogni avatar

    ArthurSonzogni/FTXUI

    9,686View on GitHub↗

    FTXUI is a C++ terminal user interface library and cross-platform console framework used for building interactive command line applications. It functions as a declarative terminal layout engine and a component-based UI toolkit that enables the creation of responsive interfaces. The library is distinguished by its terminal graphics and animation capabilities, allowing for the rendering of custom shapes, data plots, and smooth visual transitions using easing functions. It provides a comprehensive set of interactive widgets and a layout system utilizing flexbox and grid containers that adapt to

    C++arthursonzogniasciiascii-art
    View on GitHub↗9,686
  • cronvel/terminal-kitcronvel avatar

    cronvel/terminal-kit

    3,366View on GitHub↗

    Terminal-kit is a Node.js toolkit for building command-line applications and console user interfaces. It provides a comprehensive suite of utilities for console text styling, terminal graphics rendering, input parsing, and interactive interface construction. The library features a cell-based text grid model, a component document tree for hierarchical layout of interactive widgets, and off-screen pixel buffering for multi-layered image composition and manipulation. It handles direct escape-sequence output control and raw-mode input parsing to manage display regions and capture user interaction

    JavaScript
    View on GitHub↗3,366
See all 30 alternatives to Colors.js→

Frequently asked questions

What does marak/colors.js do?

colors.js is a Node.js terminal color library and console text styling tool. It serves as an ANSI escape code wrapper, providing a high-level API to apply foreground and background colors, styles, and decorative patterns to console output.

What are the main features of marak/colors.js?

The main features of marak/colors.js are: Terminal Text Coloring, Output Style Customization, ANSI Sequence Generators, Node.js Color Libraries, Node.js Terminal Styling, Foreground and Background Colors, Text Emphasis Styles, Text Styling Utilities.

What are some open-source alternatives to marak/colors.js?

Open-source alternatives to marak/colors.js include: fatih/color — This is an ANSI terminal color library and console output manager used for applying colors and text attributes to… pterm/pterm — pterm is a Go terminal UI library used to build rich command-line interfaces. It provides toolsets for terminal data… cronvel/terminal-kit — Terminal-kit is a Node.js toolkit for building command-line applications and console user interfaces. It provides a… arthursonzogni/ftxui — FTXUI is a C++ terminal user interface library and cross-platform console framework used for building interactive… chalk/chalk — Chalk is a Node.js console formatter and terminal styling library used to add colors and text modifiers to command… yargs/yargs — yargs is a command-line interface framework and argument parser for Node.js. It translates raw command-line strings…