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

@rune-ascii/cli

v0.2.0

Published

CLI for generating ASCII art animations from video

Readme

@rune-ascii/cli

CLI for generating ASCII art animations from video files. Converts any video into a .rune.json file that can be played with the rune-ascii React component.

Installation

You can run it directly with npx (no install needed):

npx @rune-ascii/cli generate ./video.mp4

Or install it globally:

npm install -g @rune-ascii/cli

Requirements

The CLI requires two system dependencies:

  • ffmpeg — for extracting video frames
  • ImageMagick — for pixel analysis

The CLI checks for them on startup and tells you how to install them if they're missing.

macOS

brew install ffmpeg imagemagick

Ubuntu / Debian

sudo apt install ffmpeg imagemagick

Usage

npx @rune-ascii/cli generate <video-file> [options]

Options

| Flag | Default | Description | | ------------------ | ---------------------- | ------------------------------ | | --name | filename | Animation name | | --fps | 30 | Frames per second | | --columns | 150 | Width in characters | | --threshold-low | 5 | Luminance floor (0–255) | | --threshold-high | 224 | Luminance ceiling (0–255) | | --chars | " -=+*%#0oOxX@$" | Character ramp (light to dark) | | --font-ratio | 0.6 | Character aspect ratio (charWidth/lineHeight) | | --no-colored | — | Disable per-character color | | --output | current dir | Output directory |

Example

npx @rune-ascii/cli generate ./wave.mov \
  --name wave \
  --fps 30 \
  --columns 120 \
  --colored \
  --output ./public/animations

How it works

Video file (.mp4, .mov, .mkv, .avi, .webm)
  → ffmpeg extracts frames, scaling to target columns and applying
    font-ratio height correction in a single pass
  → ImageMagick dumps every pixel's RGB values
  → Each pixel's luminance is mapped to an ASCII character
  → All frames are bundled into a single .rune.json file

The character mapping uses a ramp like " .~-_=+*%#0oOxX@$" — spaces for the brightest areas, dense characters for the darkest. A font ratio (default 0.6) compensates for the fact that monospace characters are taller than they are wide — the ratio should match charWidth / lineHeight of the rendering font (0.6 is correct for web rendering with lineHeight: 1).

The .rune.json format

Every animation is a single JSON file containing all frames:

{
  "version": 1,
  "meta": {
    "name": "earth",
    "fps": 30,
    "columns": 90,
    "rows": 40,
    "frameCount": 154,
    "colored": true,
    "generatedWith": {
      "thresholdLow": 5,
      "thresholdHigh": 235,
      "chars": " .~-_=+*%#0oOxX@$",
      "fontRatio": 0.6
    }
  },
  "frames": [
    {
      "rows": [["  @@XXxooo000oOxX@@  ", ["", "", "f9f276", "f8ee6c", "..."]]]
    }
  ]
}

Each frame is an array of rows. Each row is a tuple: the ASCII text string and an array of hex color codes (1 per character, empty string for default color).

Related packages

License

MIT