QR Code · Micro QR · Zig · WebAssembly

Zymbol

QR codes, from one Zig library.

Encode, decode and render QR Code and Micro QR. Use the native Zig library or its TypeScript package powered by WebAssembly.

THE MODULE GRID
ISO/IEC 18004:2024Zig v1.0.2 / npm v1.0.0

Two symbol formats.

The same library supports standard QR codes and the smaller Micro QR format.

From text to modules.

Zymbol handles the steps between your input and the finished symbol.

Encode

Text and binary input, with numeric, alphanumeric, byte and Kanji modes. The library selects a version or uses the one you specify.

Error correction

Reed–Solomon correction adds redundancy so a reader can recover data when some modules are damaged. The available level depends on the symbol.

Render

Export SVG, PNG or raw pixels. Set the module scale, colors and quiet zone while keeping the square grid intact.

One implementation. Two runtimes.

Native Zig for applications and libraries. WebAssembly for browsers and JavaScript.

Zig

zig
const zymbol = @import("zymbol");

var png = try zymbol.render.pngText(
    allocator, "https://example.com", .{},
);
defer png.deinit();
Zig guide

JavaScript / TypeScript

typescript
import { createZymbol } from '@zymbol/qr';

const qr = await createZymbol();
const symbol = qr.encode('https://example.com');
const svg = qr.renderSvg(symbol);
JavaScript guide

Built against the standard.

Conformance work covers ISO/IEC 18004:2024, including module placement, masks, encoding modes and correction behavior.

The test suite also includes ZXing-cpp interoperability cases, fuzzing, portability checks and benchmarks. Image detection and print-quality grading are outside the library's scope.

Read about testing

Try it in your browser.

Create a symbol, adjust its appearance and export it as SVG or PNG. Your input is processed locally.

Open the generator