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

@bcts/lifehash-cli

v1.0.0-alpha.17

Published

A command-line tool for generating LifeHash visual hash images as PNG files.

Readme

Blockchain Commons LifeHash CLI (TypeScript)

Disclaimer: This package is under active development and APIs may change.

Introduction

@bcts/lifehash-cli is a command line tool for generating LifeHash images as PNG files. LifeHash is a beautiful method of hash visualization based on Conway's Game of Life.

Features:

  • Generate LifeHash PNG images from any input string
  • Support for all 5 LifeHash versions (version1, version2, detailed, fiducial, grayscaleFiducial)
  • Configurable module (pixel) size for image scaling
  • Automatic random input generation if none provided
  • Cross-platform (Node.js/Bun)

Installation

# Install globally
bun add -g @bcts/lifehash-cli

# Or run directly with bunx
bunx @bcts/lifehash-cli --help

Usage

Generate a LifeHash

# Generate a version2 (default), 32x32 pixel LifeHash from the string "Hello"
lifehash Hello

# Output: Hello.png

Specify Version

# Generate a version1 LifeHash (deprecated HSB colors)
lifehash -v version1 Hello

# Generate a detailed (64x64) LifeHash
lifehash -v detailed Hello

# Generate a fiducial LifeHash (for machine vision)
lifehash -v fiducial Hello

# Generate a grayscale fiducial LifeHash
lifehash -v grayscaleFiducial Hello

Module Size (Scaling)

# Generate a 256x256 image (32x32 with module size 8)
lifehash -m 8 Hello

# Generate a 512x512 detailed image (64x64 with module size 8)
lifehash -v detailed -m 8 Hello

Output Path

# Save to a specific directory
lifehash -p ./output Hello

# Output: ./output/Hello.png

Random Input

# Generate with a random input of the form "XXX-XXX"
lifehash

# Output: ABC-DEF.png (random letters)

Command Line Reference

Usage: lifehash [options] [input]

Arguments:
  input                    Input string to hash (default: random XXX-XXX)

Options:
  -v, --version <version>  LifeHash version: version1, version2, detailed, fiducial, grayscaleFiducial (default: "version2")
  -m, --module <size>      Size of each module ("pixel") (default: 1)
  -p, --path <path>        Output directory path (default: current directory)
  -h, --help               Display help
  -V, --version            Display version number

LifeHash Versions

| Version | Size | Description | |---------|------|-------------| | version1 | 32x32 | Original version using HSB color space (deprecated) | | version2 | 32x32 | Default version using CMYK-safe colors | | detailed | 64x64 | Higher resolution version | | fiducial | 64x64 | Optimized for machine vision applications | | grayscaleFiducial | 64x64 | Grayscale version for machine vision |

C++ Reference Implementation

This TypeScript implementation is based on bc-lifehash-cli.