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

@dotprotocol/qr

v0.3.0

Published

QR-DOT encoding: pack DOTs into scannable physical objects. Binary, steganographic, and nested modes.

Readme

@dotprotocol/qr

Physical DOT — encode DOTs into QR codes and PNG steganography. The Falooda Protocol.

npm

Install

npm install @dotprotocol/qr

Quick start

import { encodeBinary, decodeBinary, selectQRSpec } from '@dotprotocol/qr';
import QRCode from 'qrcode'; // any QR library

// Pack up to 19 DOTs into a single QR code
const dots = [dot1, dot2, dot3];
const spec  = selectQRSpec(dots.length, 'binary');
const bytes = encodeBinary(dots, spec);

// Render with any QR library
await QRCode.toFile('dots.png', Buffer.from(bytes));

// Decode scanned QR
const result = decodeBinary(scannedBytes);
if (result.valid) {
  console.log(`${result.dots.length} DOTs recovered`);
}

Capacity

| Mode | DOTs per code | Notes | |------|--------------|-------| | Binary | up to 19 | Standard QR — scan with any reader | | Steganographic | up to 5 | Hidden in PNG pixel data | | Nested | unlimited | Chain of QR codes |

19 DOTs × 153 bytes = 2,907 bytes. Standard QR capacity is 2,953 bytes (error correction M).

API

Binary mode

import { encodeBinary, decodeBinary, selectQRSpec, QR_CAPACITY } from '@dotprotocol/qr';

// Encode
const spec  = selectQRSpec(dots.length, 'binary');
const bytes = encodeBinary(dots, spec);

// Decode
const result = decodeBinary(bytes);
// { valid: boolean, dots: Uint8Array[], count: number }

// Constants
QR_CAPACITY.maxBytesPerCode  // 2953
QR_CAPACITY.dotsPerCode      // 19
QR_CAPACITY.bytesPerDOT      // 153

Steganographic mode

Hide DOTs in PNG pixel data — imperceptible to the eye.

import { encodeSteganographic, decodeSteganographic } from '@dotprotocol/qr';

const hostImage  = fs.readFileSync('photo.png');
const withDOTs   = encodeSteganographic(dots, hostImage);
fs.writeFileSync('photo-with-dots.png', withDOTs);

// Recover
const result = decodeSteganographic(fs.readFileSync('photo-with-dots.png'));
// { valid: boolean, dots: Uint8Array[] }

Nested mode

Chain of QR codes — for more than 19 DOTs in physical form.

import { encodeNested, decodeNested } from '@dotprotocol/qr';

// Returns array of QR payloads — one per physical code
const codes = encodeNested(manyDots);
// codes[0], codes[1], ... → render each as a separate QR

// Decode — provide all scanned codes
const result = decodeNested(codes);

Verification

import { verifyPhysicalDOTs } from '@dotprotocol/qr';

const { valid, verified, failed } = await verifyPhysicalDOTs(dots);
// valid: boolean (all passed)
// verified: number (count that passed)
// failed: number (count that failed)

The Falooda Protocol

DOT was designed for people without internet. A single printed QR code IS the message — signed, chained, verifiable with a phone that's never been online. The decode logic runs in 3KB of JavaScript.

Sender prints QR code ──► recipient scans ──► instant cryptographic verification
                                         ──► no server, no internet, no trust required

License

MIT