cli-table3

Pretty unicode tables for the command line, drop-in API-compatible with the original cli-table

Library
npm
v0.6.5
635 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
41 /100 Fair
Development Activity 8
Maintenance 20
Community 48
Maturity 60
Momentum 28

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
64 /100 Good
Architecture 62
Code Quality 68
Innovation 55
Learning Curve 70

cli-table3 renders unicode-aided tables for Node.js command-line scripts, letting you print aligned, bordered, and colorized tabular data straight to a terminal. It is a maintained continuation of the original cli-table and cli-table2 packages, preserving full API compatibility while adding cell/row spanning, vertical alignment, word wrapping, and more robust handling of ANSI color codes inside cells.

Because the table itself is just an Array subclass, building one feels like ordinary JavaScript: push rows, splice them, or unshift a new one, then call .toString() to get terminal-ready output. Horizontal, vertical, and cross-tables are all supported out of the box, and custom border characters or per-cell styling let you match any CLI’s visual style.

What You Get

  • Horizontal, vertical, and cross-table layouts from the same API
  • Column and row spanning for merged cells
  • Per-cell styling: border characters, colors, and padding
  • Vertical alignment (top, bottom, center) and word wrapping on word boundaries
  • Truncation of cell text that safely accounts for embedded ANSI color codes
  • Full backwards compatibility with the original cli-table API

Common Use Cases

  • Printing command output (npm/yarn-style dependency lists, status reports) as aligned tables
  • Building admin/debug CLIs that need to display database rows or API responses legibly
  • Rendering comparison or summary tables in build/test tool output
  • Adding colorized, bordered output to internal developer tooling scripts

Under The Hood

Architecture - The table itself (src/table.js) extends the native Array, so pushing/splicing rows is just array manipulation; rendering runs through a LayoutManager (src/layout-manager.js) that computes column widths, resolves row/col spans, and merges border characters, before handing each cell to Cell (src/cell.js) for width-aware wrapping, padding, and truncation, and finally joining rows into the printed string. Tech Stack - Plain CommonJS JavaScript with two runtime dependencies: ansis for ANSI color styling and string-width for correct-width Unicode/wide-character measurement; builds and lints via ESLint, Prettier, and a Jest test/lint runner, with Yarn as the package manager. Code Quality - The test/ directory carries the full original cli-table test suite (original-cli-table-index-tests.js) plus dedicated suites per feature (colors, layout, cells, utils), giving strong regression coverage for a project of this size; code favors small, single-purpose modules over abstraction layers. API Design - The Array-subclass model keeps the day-to-day API tiny (new Table(opts), .push(), .toString()), which combined with strict backward compatibility with the original cli-table means most consumers reach working output within a few lines and existing cli-table users can drop it in without code changes.

Used by 19 apps in this directory

TypeScript
100%
Other

Activepieces

AI Assistants · Automation · Mcp

24,756

Open-source AI automation platform that converts 280+ workflow integrations into MCP servers for LLMs, with no-code builders and TypeScript extensibility.

View details
92
Repo Health
85
Technical
64
Dependency
Built with
TypeScript 100%
Updated 4 days ago
TypeScript
95%
MIT

Actual

Invoicing Finance

29,186

Local-first personal finance with envelope budgeting, end-to-end encryption, and multi-device sync — no subscription required.

View details
93
Repo Health
85
Technical
73
Dependency
Built with
TypeScript 95%
Updated 4 days ago
TypeScript
49%
MPL 2.0

Artillery

Developer Tools · Devops

9,083

Cloud-scale load testing and functional testing for APIs, WebSockets, gRPC, and headless browsers, distributed across AWS Lambda or Fargate with zero infrastructure to manage.

View details
89
Repo Health
73
Technical
68
Dependency
Built with
TypeScript 49%
JavaScript 48%
Updated 1 weeks ago
TypeScript
50%
Other

Dify

AI Development · Design Tools · Developer Tools

157,364

Visual LLM workflow platform with RAG pipelines, agent capabilities, and model management for building production AI applications.

View details
92
Repo Health
85
Technical
66
Dependency
Built with
TypeScript 50%
Python 47%
Updated 4 days ago
TypeScript
99%
MIT

GraphQL Hive

Developer Tools · Devops · Monitoring

484

Open-source GraphQL schema registry and observability platform with breaking change detection, federation support, and CI/CD integration for teams of any size.

View details
90
Repo Health
81
Technical
69
Dependency
Built with
TypeScript 99%
Updated 4 days ago
TypeScript
98%
Other

Kibana

Analytics · Monitoring

21,301

Your open source window into the Elastic Stack — query, visualize, and act on data stored in Elasticsearch with real-time dashboards, AI-assisted search, and automated alerting.

View details
98
Repo Health
87
Technical
63
Dependency
Built with
TypeScript 98%
Updated 4 days ago
TypeScript
42%
MIT

MentraOS

AI Development · Developer Tools

2,370

The open source operating system and SDK that lets developers build one app and run it across smart glasses from Even Realities, Vuzix, Mentra Live, and more.

View details
92
Repo Health
77
Technical
66
Dependency
Built with
TypeScript 42%
Java 20%
Kotlin 13%
Updated 4 days ago
TypeScript
96%
AGPL 3.0

Midday

Invoicing Finance · Productivity

15,042

All-in-one AI-powered business operations platform for freelancers and solo entrepreneurs to manage invoicing, time tracking, banking, and financial intelligence.

View details
53
Repo Health
78
Technical
67
Dependency
Built with
TypeScript 96%
Updated 3 months ago
TypeScript
92%
Other

n8n

Automation · No Code Platforms

206,147

Code when you need it, UI when you don't — the workflow automation platform built for technical teams who refuse to choose.

View details
95
Repo Health
87
Technical
65
Dependency
Built with
TypeScript 92%
Updated 4 days ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers