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

@bitbonsai/crtify

v0.1.2

Published

Convert images to CRT phosphor terminal aesthetic

Readme


Examples

Install

bun i -g @bitbonsai/crtify

CLI

# Single file
crtify photo.jpg

# Batch with glob
crtify "images/*.png" --outdir output/

# Pick a phosphor preset
crtify photo.jpg --preset amber

# Watch mode
crtify photo.jpg --watch

Output files are saved as <name>-crt.webp alongside the original (or in --outdir).

Options

--preset <name>      Phosphor preset: green (default), amber, white
--scanlines <0-1>    Scanline opacity (default: 0.3)
--spacing <n>        Scanline spacing in px, scales with resolution (default: 3)
--bloom <0-1>        Bloom/glow strength (default: 0.3)
--vignette <0-1>     Vignette strength (default: 1)
--noise <0-1>        Noise amount (default: 0.09)
--brightness <n>     Brightness multiplier (default: 0.84)
--contrast <n>       Contrast multiplier (default: 1.4)
--phosphor <0-1>     Phosphor subpixel detail (default: 0, off)
--green <hex>        Primary phosphor color (default: #33ff33)
--outdir <dir>       Output directory for batch mode
--watch              Re-process on file change

API

import { crtify, crtifyFile } from "@bitbonsai/crtify";

// Buffer in, Buffer out
const webpBuffer = await crtify("photo.jpg", {
  preset: "green",
});

// File to file
await crtifyFile("photo.jpg", "output.webp", {
  preset: "amber",
  scanlineOpacity: 0.5,
  phosphorDetail: 0.2,
});

Presets

| Preset | Color | |--------|-------| | green | Classic green phosphor (#33ff33) | | amber | Warm amber terminal (#ffb000) | | white | Monochrome white (#e0e0e0) |

How it works

  1. Convert to greyscale, apply brightness/contrast
  2. Map luminance through a gamma-corrected phosphor color LUT
  3. Add bloom (blurred screen layer, screen-blended)
  4. Overlay dual scanline layers with drift and jitter (exclusion blend)
  5. Apply vignette darkening toward edges
  6. Add film grain noise (soft-light blend)
  7. Optionally apply RGB phosphor subpixel triads

Scanline spacing scales automatically with image resolution so the effect looks consistent across sizes.

Requirements

  • Bun runtime
  • Sharp (installed automatically)

License

MIT