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

@sachinthapa572/gh-ascii

v0.1.0

Published

Turn any GitHub handle into a neofetch-style ASCII profile card in your terminal. Avatar → ASCII art + live GitHub stats.

Readme

@sachinthapa572/gh-ascii

Turn any GitHub handle into a neofetch-style ASCII profile card in your terminal. Your avatar is converted to ASCII art and your stats (uptime, languages, repos, stars, commits, followers, contact info) are pulled live from the GitHub API — same rendering pipeline as the gh-ascii web app.

Install

# use without installing
npx @sachinthapa572/gh-ascii <handle>

# or install globally
npm install -g @sachinthapa572/gh-ascii
gh-ascii <handle>

Usage

gh-ascii torvalds
                      ─ torvalds@github ──────────────────────────
   ..::::..            . Uptime: ........................ 18 years, 3 months
 .::::::::::::.        . Location: ......................... Finland
.:::::::::::::::       . Company: .......................... Linux Foundation
.:::::::::::::::       . Languages: ........................ C, Shell, Makefile
.:::::::::::::::       . Email: ............................. [email protected]
.:::::::::::::        . Website: ........................... http://kernel.org
 '::::::::::'           . GitHub: ........................... github.com/torvalds
   '::::::'
                        ─ Contact ─────────────────────────────
                        . Repos: ............ 7 | . Stars: ...... 145230
                        . Commits: ....... 4096 | . Followers: ... 213840

Options

| Flag | Description | | ----------------------- | ------------------------------------------------------ | | <handle> | GitHub username (required) | | --theme <dark\|light> | Color theme (default: dark) | | --cols <n> | ASCII resolution, 40..160 (default: 64) | | --no-color | Disable ANSI colors | | --no-cutout | Skip ML background removal (faster, no model download) | | --side-by-side | Force portrait + stats side by side | | --stacked | Force stats below the portrait | | -h, --help | Show help | | -v, --version | Print version |

When you run gh-ascii with no handle in an interactive terminal, it prompts for one. In non-interactive contexts (piped output, CI), all decoration is skipped and only the card is printed, so gh-ascii <handle> > card.txt and gh-ascii <handle> | cat keep working cleanly.

Environment

Set GITHUB_TOKEN to raise the API rate limit (unauthenticated requests are capped at 60/hour).

How it works

The avatar → ASCII pipeline is borrowed from the best open-source converters (chafa, AAlib, Acerola's ASCII shader, jp2a):

  • ML background removal (ONNX portrait matting) isolates the subject. Use --no-cutout to skip it for a fast, offline-friendly render.
  • Measured glyph metrics — every printable ASCII glyph's real ink coverage per cell quadrant, baked into src/glyphs.ts.
  • AAlib-style structure matching + chafa-style fill/structure split + damped Floyd–Steinberg dithering on the density residual.
  • Acerola-style edge voting — Sobel directions per subcell; a / \ | - contour glyph overrides only when 3 of 4 subcells agree.

Development

vp install     # install dependencies
vp test        # run unit tests
vp check       # format, lint, type-check
vp pack        # build the CLI to dist/