Getting started
Choose the runtime that fits your project. Both packages use the same Zig implementation.
JavaScript / TypeScript
terminal
npm install @zymbol/qrtypescript
import { createZymbol } from '@zymbol/qr';
const zymbol = await createZymbol();
const symbol = zymbol.encode('https://example.com');
const svg = zymbol.renderSvg(symbol);The library loads WebAssembly once during initialization. Encoding and rendering are synchronous afterward.
JavaScript usageZig
Requires Zig 0.17.0.
terminal
zig fetch --save https://github.com/ekkolon/zymbol/archive/refs/tags/v1.0.2.tar.gzzig
const zymbol_dep = b.dependency("zymbol", .{
.target = target,
.optimize = optimize,
});
exe.root_module.addImport("zymbol", zymbol_dep.module("zymbol"));