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

cvdplate

v0.2.0

Published

Generate Ishihara-style pseudoisochromatic color-vision test plates — a digit hidden in a dot field that collapses under protanopia, deuteranopia, or tritanopia. Reproducible from a seed. Built on the OpticQuiz engine (Machado 2009 + CIEDE2000).

Readme

cvdplate

Generate Ishihara-style pseudoisochromatic color-vision test plates. A digit is hidden in a field of colored dots so it reads to normal vision but collapses under protanopia, deuteranopia, or tritanopia. The JS companion to the ishihara Python package.

npm install cvdplate
const cvdplate = require("cvdplate");

const png = cvdplate.plate("7", { type: "deutan", size: 480, seed: 42 });
require("fs").writeFileSync("plate-7.png", png);   // a 7 that vanishes for deuteranopes

API

  • plate(number, opts?) → a PNG Buffer.
    • number — the digit(s) to hide, e.g. "7" or "29" (0–9).
    • opts.type"protan" | "deutan" | "tritan" (default "deutan").
    • opts.size — plate size in px (default 480).
    • opts.seed — integer; same seed → identical plate (default 1).
  • pickPair(type){ figure, background, normal, sim } — the color pair chosen for that deficiency, with its normal and simulated CIEDE2000 differences.

How the colors are chosen

The figure/background pair isn't guessed — it's searched with opticquiz-cvd's deltaE and simulate: a pair with a large normal CIEDE2000 difference and a small difference after simulating the target deficiency (Machado, Oliveira & Fernandes 2009). So the "hiding" is measured. Method, open access: https://doi.org/10.5281/zenodo.21310578

Not a clinical instrument

A demonstration/screening aid. On-screen color is not calibrated, so this is not a diagnostic Ishihara test. ishihara (Python) generates plates from a seed with no dependencies; this ports the idea to Node.

Licence

MIT.