A TypeScript library that renders Mermaid diagrams to themeable SVG or ASCII/Unicode text, with no DOM dependencies.
ahmadawais/chartli
A CLI that renders terminal charts (ASCII, sparklines, bars, columns, heatmaps, braille, SVG) from plain numeric text input.
- Stars
- 805
- Forks
- 47
- Open issues
- 0
- Last commit
- 7 months ago
What is it?
chartli is a command-line tool that turns numeric text data into charts you can view directly in a terminal. It reads from a file or stdin, so it fits into shell pipelines where numbers come from scripts, logs or other commands.
The tool supports several chart types: ASCII line charts, sparklines, horizontal bars, vertical columns, heatmaps, Unicode block charts, braille plots, and SVG output. Options control width and height, SVG mode (circles or lines), axis titles, tick and series labels, and inline data labels. A --first-column-x flag treats the first numeric column as x-axis labels, which suits data keyed by day, month or year.
chartli can be run without installing via npx, installed globally from npm, or added as an agent skill.
Key features
- 01Renders ASCII, sparkline, bar, column, heatmap, Unicode, braille and SVG charts.
- 02Reads numeric data from a file or from stdin.
- 03Supports axis titles, custom tick labels and series labels.
- 04Can print raw values on or near plotted data.
- 05Treats the first numeric column as x-axis labels for time-based data.
Use cases
- Quickly visualizing numbers from a shell pipeline or log output without opening a spreadsheet.
- Adding small charts to terminal-based reports or CI output.
- Generating SVG charts from data files for documentation.
Quick start
- 1
Run instantly without installing
npx chartli --help - 2
Or install globally
npm i -g chartli - 3
Render a chart from stdin or a file
npx chartli
Things to know
- The registry metadata lists no license, although the README states Apache-2.0.
- Several README examples use pnpm and sample data files, so they require cloning the repository.
Topics
FAQ
- What is chartli?
- A CLI that renders terminal charts (ASCII, sparklines, bars, columns, heatmaps, braille, SVG) from plain numeric text input. chartli is a command-line tool that turns numeric text data into charts you can view directly in a terminal. It reads from a file or stdin, so it fits into shell pipelines where numbers come from scripts, logs or other commands.
- Is chartli free to use? What license does it have?
- chartli has no declared license. Its code is public, but without a license you have no explicit permission to reuse it; ask the author before relying on it.
- Is chartli still maintained?
- No commits for 6+ months. The last commit to chartli was on Mar 11, 2026.
- What can I use chartli for?
- Quickly visualizing numbers from a shell pipeline or log output without opening a spreadsheet. Adding small charts to terminal-based reports or CI output. Generating SVG charts from data files for documentation.
- How do I install chartli?
- Run instantly without installing: npx chartli --help Or install globally: npm i -g chartli Render a chart from stdin or a file: npx chartli
- Where can I get chartli?
- The source code and installation instructions are on GitHub: https://github.com/ahmadawais/chartli
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A declarative engine that generates and renders SVG infographics from a text syntax, designed for AI-driven generation and streaming output.
A small, synchronous renderer that turns Mermaid diagram text into SVG with no runtime dependencies.
A Rust charting library that renders 29 chart types as SVG or PNG/JPEG/WebP/AVIF, with no browser required.
An open source AI coding agent that runs in your terminal, with a desktop app and two built-in agents for building and planning changes.
An agentic coding tool from Anthropic that runs in your terminal, reads your codebase, and handles coding tasks and git workflows via natural language.