npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

asciiclaw

v0.2.0

Published

Convert images to ASCII art. CLI tool for the OpenClaw ecosystem.

Readme

asciiclaw 🦀

npm

Convert images to ASCII art in the terminal.

asciiclaw takes any PNG, JPG, WebP, or GIF and renders it as ASCII art directly in your terminal. Auto-fits to your terminal size. Three character ramps, manual width/height override, invert mode, and file output.

What It Does

  • converts PNG, JPG, WebP, and GIF to ASCII art
  • auto-detects terminal size: no flags needed for a full-screen render
  • three character ramps: classic, blocks, dense
  • color output with --color: each character is colored with the original pixel color
  • manual width and height override
  • invert mode for light-on-dark terminals
  • write output to file with --output
  • pipe-friendly: output goes to stdout by default

Requirements

  • Node 22+

For development: pnpm

Install

asciiclaw on npm

npm install -g asciiclaw

Or clone and build from source:

git clone https://github.com/psandis/asciiclaw.git
cd asciiclaw
pnpm install
pnpm build

Quick Start

ascii images/cat1.jpg           # auto terminal size, black and white
ascii images/cat1.jpg --color   # same but with original image colors

No flags needed for a full-screen render. Use --color to render with the original pixel colors from the image. You can also use the full command name asciiclaw.

Demo

ascii images/cat1.jpg --width 65 --height 32
@@@@@@@@@@@@@@@@@%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@%%@%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@%%@%%@@@@@@@@@@@%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@%@%**#%@%%%%%%%%%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@%@*+++#%@%@@@@@@@@%%#%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@%*++++*#%%%%%%%%#*++*%@%@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@%*=+***+=+++++*+++++*%@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@%@%*+****+-==+==**+==+%@%@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@%#******+===+****+=#@%@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@%@%*+**::**++**+****#%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@%#*+++++****=-+*+*%@%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@%#***#+++++**++*#@@@%%@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@%@%#####++*#**+++*%%%@@%%@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@%####*****++++++**#%%@@%%@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@%#****+++===++++++++*#%%%@%%@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@%#****++++++++++++++***#%%@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@%#************++++++*++***#%@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@%#****+++*+****+++++++*+***#%@@@@@@@@@@@@@@@@%%%%
@@@@@@@@@@@@@@@@@%#*#****++*+++++=++**+**+**#%%@@@@@@@@@@@@@@@@%%
@@@@@@@@@@@@@@@@%@%****#**++**++=++++++*+****%@%@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@%@%***++++==+++++++**+*+**+*%@@@@@@@@%%%%@%@@%@@
@@@@@@@@@@@@@@@@@@@@#*++*###**++++++*+**+***#%@@@@@@@@@@%%%%%%%%%
@@@@@@@@@@@@@@@@@@@@%*=-**+++++==++*+++*+**+*%@%@@@@@@@@@@@@@@@@%
@@@@@@@@@@@@@@@@@@%@%*==++++**+=++*++++++++++#@%%%%%@%%%%%@@@@@@@
@@@@@@@@@@@@@@@@@@@@%#***+++++++*+*++==++++++#@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@%@%#+**+***+=****++++++++++***********#%@@@@@@@
@@@@@@@@@@@@@@@@@@@@%*****+**--++**++++++++++=========++=#@%@@@@@
@@@@@@@@@@@@@@@@@%%#*+****#*=-=+===+=+++++++=++++++***###%@@@@@@@
@@@@@@@@@@@@@@@%%%#***++***+++***==+++++***##%%%%%%%%@@@@@@@@@@@@
@@@@@@@@@@@@@@@@%%%#********###%%#%%%%%%%%@@@@@@@@@@%%%%%%@@@@@@@
@@@@@@@@@@@@@@@@@@@%%%###%%%@@@@@@@@@@@@@@%%%%%%%%%@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@%%@@@@@@@@%%%%%%%%%%%%%%%%@@@@@@@@@@@@@@@@@@@@@@

CLI Options

ascii <image> [options]
asciiclaw <image> [options]

Run ascii --help at any time to see the full option list in your terminal.

| Option | Short | Default | Description | |--------|-------|---------|-------------| | --width <number> | -w | terminal columns | Output width in characters. Each character = one pixel column. | | --height <number> | -H | derived from aspect ratio | Output height in characters. Each character = one pixel row. | | --ramp <name> | -r | classic | Character ramp: classic, blocks, or dense. Controls which characters represent brightness levels. | | --invert | -i | off | Invert brightness mapping. Dark pixels become light characters and vice versa. Use for images with dark backgrounds. | | --color | -c | off | Enable color output. Each character is colored with the original RGB value of the corresponding pixel. | | --output <file> | -o | stdout | Write ASCII output to a file instead of printing to the terminal. | | --version | -V | | Print the version number and exit. | | --help | -h | | Show all available options and exit. |

Sizing

Each pixel in the resized image maps to exactly one character. The output dimensions control how many pixels the image is scaled to.

| Mode | Command | Behavior | |------|---------|----------| | Auto | ascii image.jpg | Width = terminal columns, height = aspect ratio, capped at terminal rows | | Width only | ascii image.jpg --width 80 | Height derived from aspect ratio, capped at terminal rows | | Height only | ascii image.jpg --height 40 | Width derived from aspect ratio, capped at terminal columns | | Both | ascii image.jpg --width 80 --height 40 | Exact dimensions, image stretched to fit |

Character Aspect Ratio

Terminal characters are approximately 2x taller than wide in pixels. Without correction, a square image at --width 80 would produce 80 rows and look twice as tall. The auto-calculated height divides by 2, so a square image at --width 80 produces 40 rows and looks visually square in the terminal. When you set --height manually this correction is not applied.

Ramps

| Ramp | Characters | Best for | |------|-----------|----------| | classic | @%#*+=-:. | general use, photos | | blocks | █▓▒░ | bold, high contrast | | dense | full printable ASCII set | maximum detail |

Dark pixels map to dense characters (@, %, #). Bright pixels map to light characters (., space). Use --invert to flip this for images with dark backgrounds.

File Structure

asciiclaw/
├── src/
│   ├── index.ts              # CLI entry point
│   ├── convert.ts            # image-to-ASCII core
│   └── ramps.ts              # character ramp definitions
├── tests/
│   ├── images/
│   │   └── gradient.png      # synthetic test fixture
│   └── convert.test.ts
├── images/
│   ├── cat1.jpg
│   └── dog-puppy.png
├── scripts/
│   └── generate-fixtures.mjs
├── assets/
│   ├── asciiclaw.png         # header image
│   ├── cat1-ascii.png
│   └── cat1-original.png
├── .gitignore
├── .node-version
├── LICENSE
├── README.md
├── biome.json
├── package.json
├── pnpm-lock.yaml
├── tsup.config.ts
└── tsconfig.json

Development

git clone https://github.com/psandis/asciiclaw.git
cd asciiclaw
pnpm install
pnpm build
pnpm test
pnpm lint
ascii --help

Testing

pnpm test

5 tests covering output line count, line width, ramp character validation, invert mode, and error handling on missing files.

Related

  • 🦀 Feedclaw: RSS/Atom feed reader and AI digest builder
  • 🦀 Dustclaw: Find out what is eating your disk space
  • 🦀 Driftclaw: Deployment drift detection across environments
  • 🦀 Dietclaw: Codebase health monitor
  • 🦀 Mymailclaw: Email scanner, categorizer, and cleaner
  • 🦀 Wirewatch: Network traffic monitor with AI anomaly detection
  • 🦀 OpenClaw: The open source AI assistant

License

See MIT