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

glyphbyte

v0.2.0

Published

One drawn glyph is one byte. Read hand-drawn glyph rows from photos on the device, render rows to draw from, and resolve the bytes on nostr as event id and pubkey prefixes.

Readme

glyphbyte

One drawn glyph is one byte. This package is the dependency-free JavaScript implementation of GlyphByte: read a hand-drawn row of glyphs from a photo on the device, render rows to draw from, and resolve the bytes on nostr as event id and pubkey prefixes. The specification with test vectors is in the repository under spec/.

Format v2 is the default from 0.2.0: each glyph is a square frame holding one of 16 upright icons (the first hex digit) and up to four corner dots (the second: top-left 8, top-right 4, bottom-right 2, bottom-left 1). Format 1, the first alphabet of rotated, filled pictograms, still reads: give readImage both models and it tells the formats apart per photo (result.format, and every candidate carries its own format); loadShapes(1) draws v1 rows. Versions 0.1.x read format 1 only.

import { readImage, toGray, loadBundledModels, drawRow, loadShapes, lookup } from 'glyphbyte';

const models = await loadBundledModels();               // {1, 2}; Node. In a browser pass weights to loadWeights()
const gray = toGray(imageData.data, width, height);     // from a canvas
const result = readImage(gray, width, height, models);  // { best, format, sequences, reads, warnings, detection }

drawRow(canvas, await loadShapes(), [0xe8, 0xed, 0x37, 0x98, 0xc6, 0xff]);      // a v2 row to copy from
drawRow(canvas, await loadShapes(1), [0xe8, 0xed, 0x37, 0x98, 0xc6, 0xff]);     // the same bytes in format 1
const hits = await lookup(result.sequences.map(s => s.hex), { relay: 'wss://wheat.oslim.dev' });

The same code, bundled into one HTML file, is the GlyphByte napplet (NIP-5D). License: CC BY-SA 4.0 (code, alphabet, icons and specification).