Barcode.Ruby gem — Easy 2 Steps

WASM barcode library — Sinatra REST API

Ruby + Sinatra + WASM
1 Create barcode
qr = BarcodePaoWasm::QRCode.new
2 Draw!
qr.draw(code, 300)
# Step 1: Create barcode (WASM)
qr = BarcodePaoWasm::QRCode.new
qr.set_output_format("png")
# Step 2: Draw!
result = qr.draw(code, 300)

Preview

PNG
Enter data and it will render automatically