For output formatting tools, the strongest matches are textualize/rich (Rich is a comprehensive Python library that provides rich), willmcgugan/rich (Rich is a comprehensive Python terminal formatting library that) and shikijs/shiki (Shiki is a syntax highlighting engine that produces ANSI). jakubonderka/php-console-highlighter and chalk/chalk round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.
Hand-picked terminal output formatter repositories ranked by stars and activity. Compare the top tools and find the right one for your CLI.
Rich is a comprehensive library for building sophisticated command-line interfaces and terminal applications. It provides a robust console formatting engine and a layout framework that enables developers to render rich text, syntax-highlighted code, and complex data structures directly in the terminal. By utilizing a recursive constraint-based layout engine, the library allows for the creation of hierarchical grids, panels, and trees that maintain their structure even as terminal dimensions change. What distinguishes the library is its ability to manage persistent, real-time terminal interfac
Rich is a comprehensive Python library that provides rich text styling, syntax highlighting, tables, progress bars, and markdown rendering for terminal applications, making it an ideal fit for this search.
Rich is a Python terminal formatting library and user interface framework. It provides tools for rendering rich text, colors, and complex layouts within a terminal environment, including specialized formatters for markdown and source code syntax highlighting. The library distinguishes itself through high-level UI components such as tables with unicode borders, hierarchical tree views for nested data structures, and a system for building structured terminal user interfaces. It also includes a debugging visualizer for pretty-printing complex data and formatting error tracebacks. The capability
Rich is a comprehensive Python terminal formatting library that provides rich text styling, syntax highlighting, table and grid layouts, progress bars, markdown rendering, and data pretty printing.
Shiki is a syntax highlighting engine that generates color-coded HTML or ANSI output from source code. It functions as a static code highlighter, utilizing standard grammar definitions to parse text and apply accurate visual styling for documentation and terminal displays. The engine distinguishes itself by using a TextMate grammar parser to interpret text patterns, ensuring that code displays match the visual appearance of professional editors. It operates through an isomorphic runtime that supports both browser and server environments, utilizing WebAssembly for consistent execution and pre-
Shiki is a syntax highlighting engine that produces ANSI output for terminal displays, fitting the required syntax highlighting feature well even though it is primarily focused on code coloring rather than full-featured terminal UI layout.
PHP-Console-Highlighter is a syntax highlighter and console code formatter designed to apply color-coding to PHP source code for display in terminal environments. It functions as a utility to transform plain PHP text into visually structured code for command line interfaces. The tool enables terminal-based code review and provides formatted output for PHP static analysis tools and command line applications. It uses regex-based tokenization and ANSI sequence color mapping to translate syntax tokens into colored text.
This repository provides syntax highlighting for PHP code in terminal environments, fulfilling the code highlighting aspect of your search even though it lacks other text styling and layout features.
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 capabiliti
Chalk is a popular terminal styling library for Node.js that provides rich text formatting and color support detection, though it focuses purely on color and styling rather than higher-level features like markdown rendering or tables.
blessed-contrib is a terminal user interface framework and a Node.js console widget library designed for building data-driven command line interfaces. It serves as an ASCII data visualization toolkit and a dashboard framework for organizing grid-based layouts and interactive elements within a console. The project provides a collection of reusable terminal components, including a command line image renderer and tools for text-based graphic rendering. It specifically enables the creation of terminal dashboards through a system for positioning multiple widgets across rows and columns and a mecha
blessed-contrib is a Node.js terminal user interface and grid layout library that helps build rich console dashboards, though it focuses more on data visualization and widget components than general text pretty printing.
Ora is a terminal spinner library and Node.js CLI component used to integrate animated loading indicators and task-outcome symbols into JavaScript-based terminal applications. It functions as a progress visualizer that signals the status of command-line operations through animated sequences of characters. The library provides promise-based spinner wrapping, allowing animations to start and resolve automatically based on the outcome of asynchronous tasks. It replaces active animations with specific success, failure, warning, or info symbols to communicate the final result of a process. The to
Ora is a JavaScript library for adding animated terminal spinners and loading indicators, cleanly fitting the progress-bar aspect of your search for terminal output styling tools.
This project is a command-line text viewer designed to enhance terminal output through automatic syntax highlighting and integrated file management. It functions as a replacement for standard system pagers, providing a readable interface for large text streams, source code, and markup files by applying color-coded formatting directly to the terminal output. The utility distinguishes itself through deep integration with version control systems, allowing users to inspect repository status and historical file changes with visual markers displayed in the output margin. It employs heuristic-based
This command-line text viewer provides automatic syntax highlighting and rich color-coded terminal output as a pager, making it a strong fit for styling terminal views even though it lacks layout and data-printing features.
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
This Go library provides rich text styling and layout capabilities for the terminal, though you will need to pair it with other tools for markdown and syntax highlighting.
This repository provides animated progress bars and spinners for the command line, directly addressing the progress-bar styling requirement even though it lacks broader layout and syntax-highlighting features.
🎨 Terminal color rendering library, support 8/16 colors, 256 colors, RGB color rendering output, support Print/Sprintf methods, compatible with Windows. GO CLI 控制台颜色渲染工具库,支持16色,256色,RGB色彩渲染输出,使用类似于 Print/Sprintf,兼容并支持 Windows 环境的色彩渲染
This Go library provides terminal color and styling capabilities, making it a fitting building block for rich text output although it does not cover layout or data rendering features.
Table print is a Ruby console table formatter and data inspection utility that transforms collections of structured objects into aligned terminal tables. It functions as a development aid for debugging by formatting object attributes into readable text tables, traversing nested object relations, and displaying associated child records directly within parent table rows. The library includes options for table column customization, allowing users to adjust individual column widths, define custom headers, apply data formatting rules, and use cell value transformers. It also provides persistent c
This Ruby library formats and prints tabular data in the terminal, making it a relevant tool for structuring text data although it lacks the broader styling, markdown, and progress bar features.
Cli-table is a command-line utility and Node.js library for rendering structured, Unicode-bordered tables with custom widths and alignment in terminal applications. It functions as a table formatting tool designed to style headers, pad cells, and truncate text output for command-line tools. The library supports custom box-drawing characters and corner pieces assembled dynamically around cell content to form structured grid layouts. It handles column-width-based cell wrapping by calculating character lengths to split and wrap multi-line text within fixed terminal bounds, alongside ANSI-style h
automattic/cli-table is a JavaScript library specifically designed for rendering pretty unicode tables and grid layouts in the terminal, though it lacks the wider styling and progress bar features.
| Repository | Stars | Sprache | Lizenz | Letzter Push |
|---|---|---|---|---|
| textualize/rich | 56.6K | Python | MIT | |
| willmcgugan/rich | 56.6K | Python | MIT | |
| shikijs/shiki | 12.9K | TypeScript | mit | |
| jakubonderka/php-console-highlighter | 6.2K | PHP | MIT | |
| chalk/chalk | 23.3K | JavaScript | MIT | |
| yaronn/blessed-contrib | 15.7K | JavaScript | MIT | |
| sindresorhus/ora | 9.7K | JavaScript | MIT | |
| sharkdp/bat | 59.3K | Rust | Apache-2.0 | |
| charmbracelet/lipgloss | 10.6K | Go | mit | |
| rsalmei/alive-progress | 6.2K | Python | mit |