qmetrics.net

Chalk

Terminal string styling library for JavaScript

TerminalsDesktop/CLI app

Chalk adds ANSI colors and text styles to strings in Node.js CLI tools. It offers a chainable API with automatic color-level detection.

Overview

Chalk is a JavaScript package for coloring and styling text printed to terminals. It targets command-line scripts, build tools, and libraries that want readable log output without hand-writing escape codes.

The API chains modifiers, foreground and background colors, and underline colors. You can nest styles, compose custom themes, and pass multiple arguments that are joined with spaces. It detects how much color the terminal supports, from basic 16 colors through 256-color and truecolor RGB or hex values.

A separate stderr instance mirrors stdout detection rules for streams that log errors differently. Level can be set globally or on a new instance, and environment variables or flags can force color on or off. Chrome’s developer console is noted as supporting ANSI escapes since a recent release.

The package ships with no runtime dependencies and does not patch String.prototype. It exposes name lists for modifiers and colors, which helps when wrapping or validating user input.

Key features

  • Chainable ANSI styling API
  • 16, 256, and truecolor support
  • Auto-detects terminal color level
  • Nested and composable themes
  • Separate chalkStderr instance
  • Hex, RGB, and ansi256 helpers
  • No String.prototype extension
  • Zero package dependencies

Use cases

  • Coloring CLI script output
  • Highlighting errors in terminal logs
  • Theming developer tool messages
  • Validating user-chosen style names
  • Formatting console output in Node

Tags

Similar software

Oh My Zsh

Community zsh configuration framework with plugins

Oh My Zsh manages zsh setup with bundled plugins, themes, and an installer driven by curl, wget, or fetch.

★ 190.9k⟳ yesterdayMIT
TerminalsDesktop/CLI app

Gemini CLI

Terminal AI agent for enterprise Gemini Code Assist

Gemini CLI is an open-source command-line agent for querying and editing codebases, running shell workflows, and connecting MCP tools under Gemini Code Assist on Google Cloud.

★ 109.2k⟳ 2 days agoApache-2.0
AI Assisted CodingDesktop/CLI app

Terminal

Modern tabbed terminal for Windows command-line users

Windows Terminal is a desktop terminal application for Windows with tabs, theming, and rich text. The same codebase includes the classic console host and shared rendering components.

★ 105.5k⟳ 2 days agoMIT
TerminalsDesktop/CLI app

fzf

General-purpose command-line fuzzy finder

Fzf filters lists interactively in the terminal using fuzzy matching. It ships as a single binary with shell and editor integrations.

★ 84.5k⟳ 3 days agoMIT
TerminalsDesktop/CLI app

Lazygit

Terminal user interface for everyday Git workflows

Lazygit wraps common Git operations in a keyboard-driven terminal UI. You can stage partial changes, rebase, cherry-pick, and inspect history without memorizing fragile command sequences.

★ 84.1k⟳ 5 days agoMIT

Tabby

Configurable cross-platform terminal with SSH and serial

Tabby is a terminal emulator for local shells, SSH, Telnet, and serial links on Windows, macOS, and Linux. It adds splits, tabs, themes, and integrated connection management.

★ 75.6k⟳ 4 days agoMIT
TerminalsDesktop/CLI app
Open Source Alternative to:Termius