MCPcopy Index your code
hub / github.com/Rich-Harris/headless-qr

github.com/Rich-Harris/headless-qr @v1.0.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.3 ↗ · + Follow
37 symbols 72 edges 3 files 28 documented · 76%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

headless-qr

A simple, modern QR code generator. Adapted from https://github.com/kazuhikoarase/qrcode-generator but without all the junk that was necessary 10 years ago.

Usage

import { qr } from 'headless-qr';

// generate an n x n array of booleans,
// where `true` is a dark pixel
const modules = qr('https://example.com');

// specify version and error correction
const modules = qr('https://example.com', {
    version: 40, // 1 - 40, will select the best version if unspecified
    correction: 'Q' // L, M, Q or H
});

Core symbols most depended-on inside this repo

is_dark
called by 21
src/qr.js
get_length
called by 12
src/qr.js
get_length_in_bits
called by 9
src/qr.js
get_bch_digit
called by 8
src/qr.js
put
called by 8
src/qr.js
get_at
called by 7
src/qr.js
setup_position_probe_patter
called by 3
src/qr.js
make
called by 2
src/qr.js

Shape

Function 23
Method 10
Class 4

Languages

TypeScript100%

Modules by API surface

src/qr.js37 symbols

For agents

$ claude mcp add headless-qr \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact