qrcodefyi
v0.1.0
Published
TypeScript API client for QRCodeFYI -- QR code types, versions, encoding modes, error correction, and standards. Zero dependencies.
Downloads
85
Maintainers
Readme
qrcodefyi
TypeScript API client for QRCodeFYI -- the comprehensive QR code reference covering QR code types (Model 1, Model 2, Micro QR, rMQR), 40 versions, 4 encoding modes, 4 error correction levels, ISO/IEC 18004 standards, and real-world use cases. Zero dependencies, uses native fetch.
Explore QR codes at qrcodefyi.com -- Types | Versions | Glossary | API Docs
Install
npm install qrcodefyiWorks in Node.js, Deno, Bun, and browsers (ESM).
Quick Start
import { QRCodeFYI } from "qrcodefyi";
const api = new QRCodeFYI();
// Search QR code types, versions, encodings
const results = await api.search("micro qr");
// Get QR code type detail
const model2 = await api.qrType("model-2");
console.log(model2.error_correction_levels); // ["L", "M", "Q", "H"]
// Get version detail with data capacities
const v10 = await api.version(10);
console.log(v10.numeric_capacity);
// Compare two QR code types
const comparison = await api.compare("model-2", "micro-qr");API Methods
| Method | Description |
|--------|-------------|
| search(query) | Search types, versions, encodings, glossary |
| glossaryTerm(slug) | Get glossary term definition |
| qrType(slug) | QR code type detail |
| version(version) | QR code version detail by number |
| component(slug) | QR code component detail |
| encoding(slug) | Encoding mode detail |
| standard(slug) | Standard detail |
| useCase(slug) | Use case detail |
| compare(slugA, slugB) | Compare two QR code types |
| random() | Random QR code type |
| openapi() | OpenAPI 3.1.0 specification |
TypeScript Types
import type {
SearchResult, QRTypeDetail, VersionDetail, ComponentDetail,
EncodingDetail, StandardDetail, UseCaseDetail, GlossaryTerm, CompareResult,
} from "qrcodefyi";Also Available
| Language | Package | |----------|---------| | Python | qrcodefyi on PyPI | | TypeScript | This package |
Code FYI Family
Part of the FYIPedia open-source developer tools ecosystem -- automatic identification and data capture technologies.
| Package | npm | Description | |---------|-----|-------------| | barcodefyi | npm | Barcode symbologies, standards -- barcodefyi.com | | qrcodefyi | npm | QR code types, versions, encoding -- qrcodefyi.com | | nfcfyi | npm | NFC chips, NDEF, standards -- nfcfyi.com | | blefyi | npm | BLE profiles, beacons, chips -- blefyi.com | | rfidfyi | npm | RFID tags, readers, frequencies -- rfidfyi.com | | smartcardfyi | npm | Smart cards, EMV, platforms -- smartcardfyi.com |
License
MIT
