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

react-ascii-media

v1.1.1

Published

Real-time video & image to full-color RGB ASCII art converter. WebGL-accelerated React components with 60fps performance.

Readme

react-ascii-media

WebGL-accelerated React components for real-time video & image to full-color RGB ASCII art conversion. Renders at 60fps with GPU shaders.

Features

  • CodeVideo — live video to ASCII with WebGL shaders, 60fps
  • CodeImage — static image to ASCII with GPU acceleration
  • 5 color modes: RGB, Cyberpunk, Matrix Green, CRT Amber, Monochrome
  • 10+ glyph sets: standard, blocks, braille, matrix, math, stars, cards, detailed, alphanumeric, binary
  • Custom density sequences (use any characters)
  • Visual filters: brightness, contrast, saturation
  • Delta-encoding for CPU-efficient partial re-renders
  • Optional custom player controls
  • No external CSS or font dependencies

Install

npm install react-ascii-media

Usage

import { CodeVideo, CodeImage } from 'react-ascii-media';

function VideoDemo() {
  return (
    <CodeVideo
      src="https://example.com/video.mp4"
      fontSize={7}
      colorMode="rgb"
      densityPreset="standard"
      customControls
      autoPlay
      loop
      muted
      className="w-full rounded-xl"
    />
  );
}

function ImageDemo() {
  return (
    <CodeImage
      src="https://example.com/image.jpg"
      fontSize={7}
      colorMode="cyberpunk"
      densityPreset="blocks"
      className="w-full rounded-xl"
    />
  );
}

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | fontSize | number | 7 | Glyph size (px). Smaller = more detail | | colorMode | 'rgb' \| 'green' \| 'amber' \| 'mono' \| 'cyberpunk' | 'rgb' | Color palette | | densityPreset | 'standard' \| 'blocks' \| 'binary' \| 'matrix' \| 'detailed' \| 'math' \| 'braille' \| 'stars' \| 'cards' \| 'alphanumeric' | 'standard' | Glyph set | | customDensity | string | '' | Custom character sequence (overrides densityPreset) | | brightness | number | 1.15 | Pre-processing brightness (0.5–2.0) | | contrast | number | 1.1 | Contrast modifier (0.5–2.0) | | saturation | number | 1.25 | Saturation scalar (0.0–2.5) | | asciiOpacity | number | 1.0 | ASCII layer opacity (0.0–1.0) | | videoOpacity / imageOpacity | number | 0.0 | Original media opacity (0.0–1.0) for comparison overlays | | customControls | boolean | false | Show custom video player controls (CodeVideo only) |

Browser Support

Works in any browser with WebGL support (Chrome, Firefox, Safari 15+, Edge). Falls back to Canvas 2D if WebGL is unavailable.

Development

git clone https://github.com/srsergi0/react-ascii-media.git
cd react-ascii-media
npm install
npm run dev

Builds

npm run build        # Library (dist-lib/)
npm run build:demo   # Demo site (dist/)

License

Apache-2.0